REST Resource: projects.locations.spaces.applicationTemplates.policies

Resource: Policy

A Policy is a resource within an Application Template that refers to a Policy that you author outside of Application Design Center and attach to an application template.

JSON representation
{
  "name": string,
  "displayName": string,
  "description": string,
  "policyType": enum (PolicyType),
  "applyConditions": [
    {
      object (ApplyCondition)
    }
  ],
  "createTime": string,
  "updateTime": string,

  // Union field uri can be only one of the following:
  "policyUri": string,
  "policyRevisionUri": string
  // End of list of possible types for union field uri.
}
Fields
name

string

Identifier. The policy name in the following format: projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate/policies/$policy

displayName

string

Optional. The policy display name.

description

string

Optional. The policy description.

policyType

enum (PolicyType)

Required. The policy type. Policy type is used to determine the domain of the policy.

applyConditions[]

object (ApplyCondition)

Optional. Conditions for applying the policy. Condition accepts the criticality and environment parameters from the application template.

createTime

string (Timestamp format)

Output only. The policy creation timestamp.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. The policy update timestamp.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

Union field uri. URI of the policy or the policy revision. uri can be only one of the following:
policyUri

string

Optional. URI of the policy.

policyRevisionUri

string

Optional. URI of the policy revision.

PolicyType

The policy type.

Enums
POLICY_TYPE_UNSPECIFIED Default.
COMPLIANCE_FRAMEWORK Compliance framework policy.

ApplyCondition

Condition for applying the policy. Accepts the criticality and environment parameters from the AppTemplate.

JSON representation
{
  "conditionKey": string,
  "conditionValue": string
}
Fields
conditionKey

string

Required. The key of the parameter for the condition.

conditionValue

string

Required. The value of the parameter for the condition.

Methods

create

Creates a policy for an application template.

delete

Deletes a policy.

get

Policy related APIs.

list

Lists policies for an application template.

patch

Updates a policy.