# License Manager API

License Manager is a tool to manage and track third-party licenses on Google Cloud.

- [REST Resource: v1.projects.locations](https://docs.cloud.google.com/compute/docs/licensemanager/rest#v1.projects.locations)
- [REST Resource: v1.projects.locations.configurations](https://docs.cloud.google.com/compute/docs/licensemanager/rest#v1.projects.locations.configurations)
- [REST Resource: v1.projects.locations.instances](https://docs.cloud.google.com/compute/docs/licensemanager/rest#v1.projects.locations.instances)
- [REST Resource: v1.projects.locations.operations](https://docs.cloud.google.com/compute/docs/licensemanager/rest#v1.projects.locations.operations)
- [REST Resource: v1.projects.locations.products](https://docs.cloud.google.com/compute/docs/licensemanager/rest#v1.projects.locations.products)

## Service: licensemanager.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### 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://licensemanager.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://licensemanager.googleapis.com`

## REST Resource: [v1.projects.locations](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations/get` | `GET /v1/{name=projects/*/locations/*}` Gets information about a location. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations/list` | `GET /v1/{name=projects/*}/locations` Lists information about the supported locations for this service. |

## REST Resource: [v1.projects.locations.configurations](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/aggregateUsage` | `GET /v1/{name=projects/*/locations/*/configurations/*}:aggregateUsage` Aggregates Usage per Instance for a Configuration. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/create` | `POST /v1/{parent=projects/*/locations/*}/configurations` Creates a new Configuration in a given project and location. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/deactivate` | `POST /v1/{name=projects/*/locations/*/configurations/*}:deactivate` Deactivates the given configuration. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/delete` | `DELETE /v1/{name=projects/*/locations/*/configurations/*}` Deletes a single Configuration. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/get` | `GET /v1/{name=projects/*/locations/*/configurations/*}` Gets details of a single Configuration. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/list` | `GET /v1/{parent=projects/*/locations/*}/configurations` Lists Configurations in a given project and location. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/patch` | `PATCH /v1/{configuration.name=projects/*/locations/*/configurations/*}` Updates the parameters of a single Configuration. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/queryLicenseUsage` | `GET /v1/{name=projects/*/locations/*/configurations/*}:queryLicenseUsage` License Usage information for a Configuration. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/reactivate` | `POST /v1/{name=projects/*/locations/*/configurations/*}:reactivate` Reactivates the given configuration. |

## REST Resource: [v1.projects.locations.instances](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.instances)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.instances/get` | `GET /v1/{name=projects/*/locations/*/instances/*}` Gets details of a single Instance. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.instances/list` | `GET /v1/{parent=projects/*/locations/*}/instances` Lists Instances in a given project and location. |

## REST Resource: [v1.projects.locations.operations](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.operations)

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

## REST Resource: [v1.projects.locations.products](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.products)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.products/get` | `GET /v1/{name=projects/*/locations/*/products/*}` Gets details of a single Product. |
| `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.products/list` | `GET /v1/{parent=projects/*/locations/*}/products` Lists Products in a given project and location. |