Method: cases.attachments.list

Retrieve all attachments associated with a support case.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The resource name of Case object 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

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

The response message for the attachments.list endpoint.

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

object (Attachment)

The list of attachments associated with the given case.

nextPageToken

string

A token to retrieve the next page of results. This should be set 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.