- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Updates a revision of an existing Posture.
If the posture revision that you update is currently deployed, then a new revision of the posture is created.
To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture:
- Call
postures.getto get the current version of the posture. - Update the fields in the posture as needed.
- Call
postures.patchto update the posture. Ensure that your request includes theetagvalue from thepostures.getresponse.
Important: If you omit the etag when you call postures.patch, then the updated posture unconditionally overwrites the existing posture.
HTTP request
PATCH https://securityposture.googleapis.com/v1/{posture.name=organizations/*/locations/*/postures/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
posture.name |
Required. Identifier. The name of the posture, in the format |
Query parameters
| Parameters | |
|---|---|
updateMask |
Required. The fields in the You can update only the following fields: This is a comma-separated list of fully qualified names of fields. Example: |
revisionId |
Required. The revision ID of the posture to update. If the posture revision that you update is currently deployed, then a new revision of the posture is created. |
Request body
The request body contains an instance of Posture.
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name resource:
securityposture.postures.update
For more information, see the IAM documentation.