Method: cases.attachments.list

List all the attachments associated with a support case.

EXAMPLES:

cURL:

case="projects/some-project/cases/23598314"
curl \
  --header "Authorization: Bearer $(gcloud auth print-access-token)" \
  "https://cloudsupport.googleapis.com/v2/$case/attachments"

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()
    .attachments()
    .list(parent="projects/some-project/cases/43595344")
)
print(request.execute())

HTTP request

GET https://cloudsupport.googleapis.com/v2beta/{parent=*/*/cases/*}/attachments

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the case for which attachments should be listed.

Query parameters

Parameters
pageSize

integer

The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100.

pageToken

string

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 attachments.list endpoint.

If successful, the response body contains data with the following structure:

JSON representation
{
  "attachments": [
    {
      object (Attachment)
    }
  ],
  "nextPageToken": string
}
Fields
attachments[]

object (Attachment)

The list of attachments associated with a case.

nextPageToken

string

A token to retrieve the next page of results. Set this in the pageToken field of subsequent cases.attachments.list requests. If unspecified, there are no more results to retrieve.

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.