v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13124969.8 KB
projects

Creates a platform policy, and returns a copy of it. Returns NOT_FOUND if the project or platform doesn't exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the policy already exists, and INVALID_ARGUMENT if the policy contains a platform-specific policy that does not match the platform value specified in the URL.

post/v1/{+parent}/policies

Path parameters

parentstring required

Required. The parent of this platform policy.

Query parameters

policyIdstring

Required. The platform policy ID.

Request body

namestring

Output only. The relative resource name of the Binary Authorization platform policy, in the form of projects/*/platforms/*/policies/*.

updateTimestring google-datetime

Output only. Time when the policy was last updated.

descriptionstring

Optional. A description comment about the policy.

etagstring

Optional. Used to prevent updating the policy when another request has updated it since it was retrieved.

Response

Successful response