# Security Posture API

Defines, assesses, and monitors the overall status of your security in Google Cloud. You can use security postures to evaluate your current cloud security against defined benchmarks and help maintain the level of security that your organization requires.

- [REST Resource: v1.organizations.locations.operations](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest#v1.organizations.locations.operations)
- [REST Resource: v1.organizations.locations.postureDeployments](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest#v1.organizations.locations.postureDeployments)
- [REST Resource: v1.organizations.locations.postureTemplates](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest#v1.organizations.locations.postureTemplates)
- [REST Resource: v1.organizations.locations.postures](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest#v1.organizations.locations.postures)
- [REST Resource: v1.organizations.locations.reports](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest#v1.organizations.locations.reports)

## Service: securityposture.googleapis.com

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

- <https://securityposture.googleapis.com/$discovery/rest?version=v1>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://securityposture.googleapis.com`

## REST Resource: [v1.organizations.locations.operations](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.operations/cancel` | `POST /v1/{name=organizations/*/locations/*/operations/**}:cancel` Starts asynchronous cancellation on a long-running operation. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.operations/delete` | `DELETE /v1/{name=organizations/*/locations/*/operations/**}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.operations/get` | `GET /v1/{name=organizations/*/locations/*/operations/*}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.operations/list` | `GET /v1/{name=organizations/*/locations/*/operations}` Lists operations that match the specified filter in the request. |

## REST Resource: [v1.organizations.locations.postureDeployments](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments/create` | `POST /v1/{parent=organizations/*/locations/*}/postureDeployments` Creates a new `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments#PostureDeployment` in a given project and location. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments/delete` | `DELETE /v1/{name=organizations/*/locations/*/postureDeployments/*}` Deletes a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments#PostureDeployment`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments/get` | `GET /v1/{name=organizations/*/locations/*/postureDeployments/*}` Gets details for a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments#PostureDeployment`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments/list` | `GET /v1/{parent=organizations/*/locations/*}/postureDeployments` Lists every `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments#PostureDeployment` in a project and location. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments/patch` | `PATCH /v1/{postureDeployment.name=organizations/*/locations/*/postureDeployments/*}` Updates an existing `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureDeployments#PostureDeployment`. |

## REST Resource: [v1.organizations.locations.postureTemplates](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postureTemplates/get` | `GET /v1/{name=organizations/*/locations/*/postureTemplates/*}` 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` | `GET /v1/{parent=organizations/*/locations/*}/postureTemplates` 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. |

## REST Resource: [v1.organizations.locations.postures](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures/create` | `POST /v1/{parent=organizations/*/locations/*}/postures` Creates a new `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures#Posture`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures/delete` | `DELETE /v1/{name=organizations/*/locations/*/postures/*}` Deletes all revisions of a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures#Posture`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures/extract` | `POST /v1/{parent=organizations/*/locations/*}/postures:extract` Extracts existing policies from an organization, folder, or project, and applies them to another organization, folder, or project as a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures#Posture`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures/get` | `GET /v1/{name=organizations/*/locations/*/postures/*}` Gets a single revision of a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures#Posture`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures/list` | `GET /v1/{parent=organizations/*/locations/*}/postures` Lists the most recent revisions of all `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures#Posture` resources in a specified organization and location. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures/listRevisions` | `GET /v1/{name=organizations/*/locations/*/postures/*}:listRevisions` Lists all revisions of a single `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures#Posture`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures/patch` | `PATCH /v1/{posture.name=organizations/*/locations/*/postures/*}` Updates a revision of an existing `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.postures#Posture`. |

## REST Resource: [v1.organizations.locations.reports](https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.reports)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.reports/createIaCValidationReport` | `POST /v1/{parent=organizations/*/locations/*}/reports:createIaCValidationReport` Validates a specified infrastructure-as-code (IaC) configuration, and creates a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.reports#Report` with the validation results. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.reports/get` | `GET /v1/{name=organizations/*/locations/*/reports/*}` Gets details for a `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.reports#Report`. |
| `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.reports/list` | `GET /v1/{parent=organizations/*/locations/*}/reports` Lists every `https://docs.cloud.google.com/security-command-center/docs/reference/securityposture/rest/v1/organizations.locations.reports#Report` in a given organization and location. |