Skip to main content

services

Overview

Nameservices
TypeResource
Idgoogle.serviceusage.services

Fields

NameDatatypeDescription
namestringThe resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
statestringWhether or not the service has been enabled for use by the consumer.
configobjectThe configuration of the service.
parentstringThe resource name of the consumer. A valid name would be: - projects/123

Methods

NameAccessible byRequired ParamsDescription
getSELECTnameReturns the service configuration and enabled state for a given service.
listSELECTparent, parentTypeList all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the servicemanagement.services.bind permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project. WARNING: If you need to query enabled services frequently or across an organization, you should use Cloud Asset Inventory API, which provides higher throughput and richer filtering capability.
_listEXECparent, parentTypeList all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the servicemanagement.services.bind permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project. WARNING: If you need to query enabled services frequently or across an organization, you should use Cloud Asset Inventory API, which provides higher throughput and richer filtering capability.
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.