A token to retrieve the next page of results. Set this in thepageTokenfield of subsequentcases.comments.listrequests. If unspecified, there are no more results to retrieve.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-30 UTC."],[],[],null,["# Method: cases.comments.list\n\nList all the comments associated with a case.\n\nEXAMPLES:\n\ncURL: \n\n case=\"projects/some-project/cases/43595344\"\n curl \\\n --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n \"https://cloudsupport.googleapis.com/v2/$case/comments\"\n\nPython: \n\n import googleapiclient.discovery\n\n apiVersion = \"v2\"\n supportApiService = googleapiclient.discovery.build(\n serviceName=\"cloudsupport\",\n version=apiVersion,\n discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={apiVersion}\",\n )\n request = (\n supportApiService.cases()\n .comments()\n .list(parent=\"projects/some-project/cases/43595344\")\n )\n print(request.execute())\n\n### HTTP request\n\n`GET https://cloudsupport.googleapis.com/v2beta/{parent=*/*/cases/*}/comments`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe response message for the comments.list endpoint.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloudsupport`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]
List all the comments associated with a case.
EXAMPLES:
cURL:
Python:
HTTP request
GET https://cloudsupport.googleapis.com/v2beta/{parent=*/*/cases/*}/comments
The URL uses gRPC Transcoding syntax.
Path parameters
parent
string
Required. The name of the case for which to list comments.
Query parameters
pageSize
integer
The maximum number of comments to fetch. Defaults to 10.
pageToken
string
A token identifying the page of results to return. If unspecified, the first page is returned.
Request body
The request body must be empty.
Response body
The response message for the comments.list endpoint.
If successful, the response body contains data with the following structure:
comments[]
object (
Comment
)List of the comments associated with the case.
nextPageToken
string
A token to retrieve the next page of results. Set this in the
pageToken
field of subsequentcases.comments.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 .