Service Usage API
Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service…
Developer tools#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.
Endpoints 9
operations
- POSTStarts asynchronous cancellation on a long-running operation
/v1/:name:cancelStarts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the… - DELETEDeletes a long-running operation
/v1/:nameDeletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If… - GETLists operations that match the specified filter in the request
/v1/operations?filter=string&name=string&pageSize=0&pageToken=string&returnPartialSuccess=trueLists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.
services
- GETReturns the service configuration and enabled state for a given service.
/v1/:nameReturns the service configuration and enabled state for a given service. - POSTEnable multiple services on a project
/v1/:parent/services:batchEnableEnable 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… - GETReturns the service configurations and enabled states for a given list of services.
/v1/:parent/services:batchGet?names=stringReturns the service configurations and enabled states for a given list of services. - POSTDisable a service so that it can no longer be used with a project
/v1/:name:disableDisable 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.… - POSTEnable a service so that it can be used with a project.
/v1/:name:enableEnable a service so that it can be used with a project. - GETList all services available to the specified project, and the current state of those services with respect to the…
/v1/:parent/services?filter=string&pageSize=0&pageToken=stringList all services available to the specified project, and the current state of those services with respect to the project. The list includes all public…
API details
- Base URL
https://serviceusage.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 3 scopes
An API key in the key query parameter - Operations
- 9 operations on 8 pathsGET 4POST 4DELETE 1
- Main resources
- services 6operations 3
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Service Usage API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Service Usage API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 3 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Starts asynchronous cancellation on a long-running operation” (POST /v1/:name:cancel), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Service Usage API?
Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service… It is listed under Developer tools and has 9 endpoints.
Who publishes the Service Usage API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Service Usage API?
Requests go to https://serviceusage.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Service Usage API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 3 scopes; an API key in the key query parameter.
How many endpoints does the Service Usage API have?
9 operations on 8 paths (4 GET, 4 POST, 1 DELETE). The largest groups are services, operations.
Is forking the Service Usage API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.