Search for cases using a query.
EXAMPLES:
cURL:
parent="projects/some-project"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$parent/cases:search"
Python:
import googleapiclient.discovery
apiVersion = "v2"
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport",
version=apiVersion,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={apiVersion}",
)
request = supportApiService.cases().search(
parent="projects/some-project", query="state=OPEN"
)
print(request.execute())
HTTP request
GET https://cloudsupport.googleapis.com/v2/{parent=*/*}/cases:search
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
The name of the parent resource to search for cases under. |
Query parameters
Parameters | |
---|---|
query |
An expression used to filter cases. Expressions use the following fields separated by
You must specify either To search across To search only cases updated after a certain date, use Examples:
|
pageSize |
The maximum number of cases fetched with each request. The default page size is 10. |
pageToken |
A token identifying the page of results to return. If unspecified, the first page is retrieved. |
Request body
The request body must be empty.
Response body
The response message for the cases.search endpoint.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"cases": [
{
object ( |
Fields | |
---|---|
cases[] |
The list of cases associated with the parent after any filters have been applied. |
nextPageToken |
A token to retrieve the next page of results. Set this in the |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudsupport
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.