- 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.get
to get the current version of the posture. - Update the fields in the posture as needed.
- Call
postures.patch
to update the posture. Ensure that your request includes theetag
value from thepostures.get
response.
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. |
Required. Identifier. The name of the posture, in the format |
Query parameters
Parameters | |
---|---|
update |
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: |
revision |
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.