Namespace Google.Apis.CloudSupport.v2beta
Classes
CaseClassificationsResource
The "caseClassifications" collection of methods.
CaseClassificationsResource.SearchRequest
Retrieve valid classifications to be used when creating a support case. The classications are hierarchical,
with each classification containing all levels of the hierarchy, separated by " > "
. For example
"Technical Issue > Compute > Compute Engine"
. Classification IDs returned by
caseClassifications.search
are guaranteed to be valid for at least six months. If a given classification
is deactivated, it immediately stops being returned. After six months, case.create
requests using the
classification ID will fail. Here is an example of calling this endpoint using cURL:
shell curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"'
CasesResource
The "cases" collection of methods.
CasesResource.AttachmentsResource
The "attachments" collection of methods.
CasesResource.AttachmentsResource.ListRequest
Retrieve all attachments associated with a support case. Here is an example of calling this endpoint using cURL:
shell case="projects/some-project/cases/23598314" curl \ --header "Authorization: Bearer
$(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case/attachments"
CasesResource.CloseRequest
Close the specified case. 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)" \ "https://cloudsupport.googleapis.com/v2/$case:close"
CasesResource.CommentsResource
The "comments" collection of methods.
CasesResource.CommentsResource.CreateRequest
Add a new comment to the specified Case. The comment object must have the following fields set: body. Here is an example of calling this endpoint using cURL:
shell
case="projects/some-project/cases/43591344" curl \ --request POST \ --header "Authorization: Bearer
$(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "body": "This
is a test comment." }' \ "https://cloudsupport.googleapis.com/v2/$case/comments"
CasesResource.CommentsResource.ListRequest
Retrieve all comments associated with the Case object. Here is an example of calling this endpoint using cURL:
shell case="projects/cloud-support-qa-premium/cases/43595344" curl \ --header "Authorization:
Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case/comments"
CasesResource.CreateRequest
Create 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"
CasesResource.EscalateRequest
Escalate 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"
CasesResource.GetRequest
Retrieve 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"
CasesResource.ListRequest
Retrieve all cases under the specified parent. Note: Listing cases under an organization returns only the
cases directly parented by that organization. To retrieve all cases under an organization, including cases
parented by projects under that organization, use cases.search
. 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"
CasesResource.PatchRequest
Update 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"
CasesResource.SearchRequest
Search 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"
CloudSupportBaseServiceRequest<TResponse>
A base abstract class for CloudSupport requests.
CloudSupportService
The CloudSupport Service.
CloudSupportService.Scope
Available OAuth 2.0 scopes for use with the Google Cloud Support API.
CloudSupportService.ScopeConstants
Available OAuth 2.0 scope constants for use with the Google Cloud Support API.
MediaResource
The "media" collection of methods.
MediaResource.DownloadRequest
Download a file attachment on a case. Note: HTTP requests must append "?alt=media" to the URL. Here is an example of calling this endpoint using cURL:
shell
name="projects/some-project/cases/43594844/attachments/0674M00000WijAnZAJ" curl \ --header "Authorization:
Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$name:download?alt=media"
MediaResource.UploadMediaUpload
Upload media upload which supports resumable upload.
MediaResource.UploadRequest
Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename. Here is an example of calling this endpoint using cURL:
shell echo "This text is in a file
I'm uploading using CSAPI." \ > "./example_file.txt" case="projects/some-project/cases/43594844" curl
\ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --data-binary @"./example_file.txt" \
"https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.filename=uploaded_via_curl.txt"
Enums
CloudSupportBaseServiceRequest<TResponse>.AltEnum
Data format for response.
CloudSupportBaseServiceRequest<TResponse>.XgafvEnum
V1 error format.
MediaResource.UploadMediaUpload.AltEnum
Data format for response.
MediaResource.UploadMediaUpload.XgafvEnum
V1 error format.