- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Updates an existing PostureDeployment
.
To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture deployment:
- Call
postureDeployments.get
to get the current version of the deployment. - Update the fields in the deployment as needed.
- Call
postureDeployments.patch
to update the deployment. Ensure that your request includes theetag
value from thepostureDeployments.get
response.
Important: If you omit the etag
when you call postureDeployments.patch
, then the updated deployment unconditionally overwrites the existing deployment.
HTTP request
PATCH https://securityposture.googleapis.com/v1/{postureDeployment.name=organizations/*/locations/*/postureDeployments/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
posture |
Required. Identifier. The name of the posture deployment, 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: |
Request body
The request body contains an instance of PostureDeployment
.
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.postureDeployments.update
For more information, see the IAM documentation.