# Policy

- [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Policy#SCHEMA_REPRESENTATION)
- [ComplianceStandard](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Policy#ComplianceStandard)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Policy#ComplianceStandard.SCHEMA_REPRESENTATION)

The details of a policy, including the constraints that it includes.

| JSON representation |
|---|
| ``` { "policyId": string, "complianceStandards": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Policy#ComplianceStandard`) } ], "constraint": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Constraint`) }, "description": string } ``` |

| Fields ||
|---|---|
| `policyId` | `string` Required. A user-specified identifier for the policy. In a `PolicySet`, each policy must have a unique identifier. |
| `complianceStandards[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Policy#ComplianceStandard`)`` Optional. The compliance standards that the policy helps enforce. |
| `constraint` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Constraint`)`` Required. The constraints that the policy includes. |
| `description` | `string` Optional. A description of the policy. |

## ComplianceStandard

Information about a compliance standard that the policy helps enforce.

| JSON representation |
|---|
| ``` { "standard": string, "control": string } ``` |

| Fields ||
|---|---|
| `standard` | `string` Optional. The compliance standard that the policy helps enforce. For example, `NIST SP 800-53`. |
| `control` | `string` Optional. The control in the compliance standard that the policy helps enforce. For example, `AC-3`. |