# REST Resource: organizations.locations.postureTemplates

- [Resource: PostureTemplate](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#PostureTemplate)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#PostureTemplate.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#State)
- [Methods](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#METHODS_SUMMARY)

## Resource: PostureTemplate

The details of a posture template.

| JSON representation |
|---|
| ``` { "name": string, "revisionId": string, "description": string, "state": enum (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#State`), "policySets": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/PolicySet`) } ], "categories": [ enum (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Category`) ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The name of the posture template, in the format `organizations/{organization}/locations/global/postureTemplates/{posture_template}`. |
| `revisionId` | `string` Output only. A string that identifies the revision of the posture template. |
| `description` | `string` Output only. A description of the posture template. |
| `state` | ``enum (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#State`)`` Output only. The state of the posture template at the specified `revisionId`. |
| `policySets[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/PolicySet`)`` Output only. The `PolicySet` resources that the posture template includes. |
| `categories[]` | ``enum (`https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/Category`)`` Output only. The categories that the posture template belongs to, as determined by the Security Posture API. |

## State

The state of a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#PostureTemplate`.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Default value. This value is unused. |
| `ACTIVE` | The posture template follows the latest controls and standards. |
| `DEPRECATED` | The posture template uses outdated controls and standards. We recommend that you use a newer revision of the posture template. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates/get` | Gets a single revision of a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#PostureTemplate`. |
| ### `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates/list` | Lists every `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates#PostureTemplate` in a given organization and location. |