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/v2beta/cases:search
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
parent |
The name of the parent resource to search for cases under. |
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:
|
page |
The maximum number of cases fetched with each request. The default page size is 10. |
page |
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. |
next |
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.