Method: projects.locations.subscriptions.revoke

Revokes a given subscription.

HTTP request

POST https://analyticshub.googleapis.com/v1/{name=projects/*/locations/*/subscriptions/*}:revoke

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456

Request body

The request body contains data with the following structure:

JSON representation
{
  "revokeCommercial": boolean
}
Fields
revokeCommercial

boolean

Optional. If the subscription is commercial then this field must be set to true, otherwise a failure is thrown. This acts as a safety guard to avoid revoking commercial subscriptions accidentally.

Response body

If successful, the response body is empty.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/bigquery
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.