Skip to main content

policies

Overview

Namepolicies
TypeResource
Idgoogle.binaryauthorization.policies

Fields

NameDatatypeDescription
namestringOutput only. The relative resource name of the BinAuthz platform policy, in the form of projects/*/platforms/*/policies/*.
descriptionstringOptional. A description comment about the policy.
gkePolicyobjectA Binary Authorization policy for a GKE cluster. This is one type of policy that can occur as a PlatformPolicy.
updateTimestringOutput only. Time when the policy was last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTplatformsId, policiesId, projectsIdGets a platform policy. Returns NOT_FOUND if the policy doesn't exist.
listSELECTplatformsId, projectsIdLists platform policies owned by a project in the specified platform. Returns INVALID_ARGUMENT if the project or the platform doesn't exist.
createINSERTplatformsId, projectsIdCreates 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.
deleteDELETEplatformsId, policiesId, projectsIdDeletes a platform policy. Returns NOT_FOUND if the policy doesn't exist.
_listEXECplatformsId, projectsIdLists platform policies owned by a project in the specified platform. Returns INVALID_ARGUMENT if the project or the platform doesn't exist.
replace_platform_policyEXECplatformsId, policiesId, projectsIdReplaces a platform policy. Returns NOT_FOUND if the policy doesn't exist.