Skip to main content

cases

Overview

Namecases
TypeResource
Idgoogle.cloudsupport.cases

Fields

NameDatatypeDescription
namestringThe resource name for the case.
descriptionstringA broad description of the issue.
createTimestringOutput only. The time this case was created.
escalatedbooleanWhether the case is currently escalated.
statestringOutput only. The current status of the support case.
prioritystringThe priority of this case.
creatorobjectAn object containing information about the effective user and authenticated principal responsible for an action.
timeZonestringThe timezone of the user who created the support case. It should be in a format IANA recognizes: https://www.iana.org/time-zones. There is no additional validation done by the API.
contactEmailstringA user-supplied email address to send case update notifications for. This should only be used in BYOID flows, where we cannot infer the user's email address directly from their EUCs.
testCasebooleanWhether this case was created for internal API testing and should not be acted on by the support team.
updateTimestringOutput only. The time this case was last updated.
subscriberEmailAddressesarrayThe email addresses to receive updates on this case.
classificationobjectA classification object with a product type and value.
languageCodestringThe language the user has requested to receive support in. This should be a BCP 47 language code (e.g., "en", "zh-CN", "zh-TW", "ja", "ko"). If no language or an unsupported language is specified, this field defaults to English (en). Language selection during case creation may affect your available support options. For a list of supported languages and their support working hours, see: https://cloud.google.com/support/docs/language-working-hours
displayNamestringThe short summary of the issue reported in this case.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnameRetrieve the specified case. Here is an example of calling this endpoint using cURL: shell case="projects/some-project/cases/16033687" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case"
createINSERTparent, parentTypeCreate a new case and associate it with a Google Cloud Resource. The case object must have the following fields set: display_name, description, classification, and priority. If you're just testing the API and don't want to route your case to an agent, set testCase=true. Here is an example of calling this endpoint using cURL: shell parent="projects/some-project" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "display_name": "Test case created by me.", "description": "a random test case, feel free to close", "classification": { "id": "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8" }, "time_zone": "-07:00", "subscriber_email_addresses": [ "foo@domain.com", "bar@domain.com" ], "testCase": true, "priority": "P3" }' \ "https://cloudsupport.googleapis.com/v2/$parent/cases"
escalateEXECnameEscalate a case. Escalating a case initiates the Google Cloud Support escalation management process. This operation is only available to certain Customer Care support services. Go to https://cloud.google.com/support and look for 'Technical support escalations' in the feature list to find out which support services let you perform escalations. Here is an example of calling this endpoint using cURL: shell case="projects/some-project/cases/43595344" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header "Content-Type: application/json" \ --data '{ "escalation": { "reason": "BUSINESS_IMPACT", "justification": "This is a test escalation." } }' \ "https://cloudsupport.googleapis.com/v2/$case:escalate"
patchEXECnameUpdate the specified case. Only a subset of fields can be updated. Here is an example of calling this endpoint using cURL: shell case="projects/some-project/cases/43595344" curl \ --request PATCH \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header "Content-Type: application/json" \ --data '{ "priority": "P1" }' \ "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
searchEXECparent, parentTypeSearch cases using the specified query. Here is an example of calling this endpoint using cURL: shell parent="projects/some-project" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$parent/cases:search"