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 ( |
| Fields | |
|---|---|
name |
Identifier. The policy name in the following format: |
displayName |
Optional. The policy display name. |
description |
Optional. The policy description. |
policyType |
Required. The policy type. Policy type is used to determine the domain of the policy. |
applyConditions[] |
Optional. Conditions for applying the policy. Condition accepts the |
createTime |
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: |
updateTime |
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: |
Union field uri. URI of the policy or the policy revision. uri can be only one of the following: |
|
policyUri |
Optional. URI of the policy. |
policyRevisionUri |
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 |
Required. The key of the parameter for the condition. |
conditionValue |
Required. The value of the parameter for the condition. |
Methods |
|
|---|---|
|
Creates a policy for an application template. |
|
Deletes a policy. |
|
Policy related APIs. |
|
Lists policies for an application template. |
|
Updates a policy. |