Skip to main content

comments

Overview

Namecomments
TypeResource
Idgoogle.cloudsupport.comments

Fields

NameDatatypeDescription
namestringOutput only. The resource name for the comment.
plainTextBodystringOutput only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped.
bodystringThe full comment body. Maximum of 12800 characters. This can contain rich text syntax.
createTimestringOutput only. The time when this comment was created.
creatorobjectAn object containing information about the effective user and authenticated principal responsible for an action.

Methods

NameAccessible byRequired ParamsDescription
listSELECTparent, parentTypeRetrieve all comments associated with the Case object. Here is an example of calling this endpoint using cURL: shell case="projects/cloud-support-qa-premium/cases/43595344" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case/comments"
createINSERTparent, parentTypeAdd a new comment to the specified Case. The comment object must have the following fields set: body. Here is an example of calling this endpoint using cURL: shell case="projects/some-project/cases/43591344" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "body": "This is a test comment." }' \ "https://cloudsupport.googleapis.com/v2/$case/comments"
_listEXECparent, parentTypeRetrieve all comments associated with the Case object. Here is an example of calling this endpoint using cURL: shell case="projects/cloud-support-qa-premium/cases/43595344" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case/comments"