v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-139139155.5 KB
services

Disable 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.

post/v1/{+name}:disable

Path parameters

namestring required

Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be: projects/123/services/serviceusage.googleapis.com where 123 is the project number.

Request body

disableDependentServicesboolean

Indicates if services that are enabled and which depend on this service should also be disabled. If not set, an error will be generated if any enabled services depend on the service to be disabled. When set, the service, and any enabled services that depend on it, will be disabled together.

checkIfServiceHasUsage'CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED' | 'SKIP' | 'CHECK'

Defines the behavior for checking service usage when disabling a service.

Response

Successful response

All 9 operations