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: 1. Call GetPosture to get the current version of the posture. 2. Update the fields in the posture as needed. 3. Call UpdatePosture to update the posture. Ensure that your request includes the etag value from the GetPosture response. Important: If you omit the etag when you call UpdatePosture, then the updated posture unconditionally overwrites the existing posture.
Request
- Base URL: https://securityposture.googleapis.com
- URL: https://securityposture.googleapis.com/v1/{+name}
- Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
Path parameters
Required. Identifier. The name of the posture, in the format organizations/{organization}/locations/global/postures/{posture_id}.
Query parameters
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.
Required. The fields in the Posture to update. You can update only the following fields: * Posture.description * Posture.policy_sets * Posture.state
Request body
Response
Successful response
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status - warning
deleted the
queryrequest parameterupdateMask - info
api operation id
securityposture.organizations.locations.postureDeployments.patchremoved and replaced withsecurityposture.organizations.locations.postures.patch - info
added the new optional
queryrequest parameterrevisionId
- breaking
- warning
deleted the
queryrequest parameterrevisionId - warning
removed the request property
- info
api operation id
securityposture.organizations.locations.postures.patchremoved and replaced withsecurityposture.organizations.locations.postureDeployments.patch - info
added the new optional
queryrequest parameterupdateMask - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request optional property
became read-only - info
added the new
CREATE_FAILEDenum value to the request property - info
added the new
CREATINGenum value to the request property - info
added the new
DELETE_FAILEDenum value to the request property - info
added the new
DELETINGenum value to the request property - info
added the new
UPDATE_FAILEDenum value to the request property - info
added the new
UPDATINGenum value to the request property - info
removed the enum value
DEPRECATEDof the request read-only propertystate - info
removed the enum value
DRAFTof the request read-only propertystate
- warning