v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13183063.3 KB
supportEventSubscriptions

Creates a support event subscription for an organization. EXAMPLES: cURL: shell parent="organizations/123456789" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "pub_sub_topic": "projects/my-project/topics/my-topic" }' \ "https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions" Python: python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().create( parent="organizations/123456789", body={ "pub_sub_topic": "projects/my-project/topics/my-topic" }, ) print(request.execute())

post/v2/{+parent}/supportEventSubscriptions

Path parameters

parentstring required

Required. The parent resource name where the support event subscription will be created. Format: organizations/{organization_id}

Request body

state'STATE_UNSPECIFIED' | 'WORKING' | 'FAILING' | 'DELETED'

Output only. The state of the subscription.

deleteTimestring google-datetime

Output only. The time at which the subscription was deleted.

purgeTimestring google-datetime

Output only. The time at which the subscription will be purged.

failureReason'FAILURE_REASON_UNSPECIFIED' | 'PERMISSION_DENIED' | 'TOPIC_NOT_FOUND' | 'OTHER'

Output only. Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value.

namestring

Identifier. The resource name of the support event subscription.

updateTimestring google-datetime

Output only. The time at which the subscription was last updated.

createTimestring google-datetime

Output only. The time at which the subscription was created.

pubSubTopicstring

Required. The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}

Response

Successful response