Skip to main content

services

Creates, updates, deletes, gets or lists a services resource.

Overview

Nameservices
TypeResource
Idgoogle.serviceusage.services

Fields

NameDatatypeDescription
servicesarrayThe requested Service states.

Methods

NameAccessible byRequired ParamsDescription
batch_getSELECTparent, parentTypeReturns the service configurations and enabled states for a given list of services.
getSELECTnameReturns the service configuration and enabled state for a given service.
batch_enableEXECparent, parentTypeEnable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. To enable a single service, use the EnableService method instead.
disableEXECnameDisable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a FAILED_PRECONDITION status if the target service is not currently enabled.

SELECT examples

Returns the service configuration and enabled state for a given service.

SELECT
services
FROM google.serviceusage.services
WHERE name = '{{ name }}';