# REST Resource: projects.locations.configurations

- [Resource: Configuration](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#Configuration)
  - [JSON representation](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#Configuration.SCHEMA_REPRESENTATION)
- [LicenseType](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#LicenseType)
- [BillingInfo](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#BillingInfo)
  - [JSON representation](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#BillingInfo.SCHEMA_REPRESENTATION)
- [UserCountBillingInfo](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#UserCountBillingInfo)
  - [JSON representation](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#UserCountBillingInfo.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#State)
- [Methods](https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#METHODS_SUMMARY)

## Resource: Configuration

Configuration for a Google SPLA product

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "product": string, "licenseType": enum (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#LicenseType`), "currentBillingInfo": { object (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#BillingInfo`) }, "nextBillingInfo": { object (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#BillingInfo`) }, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "state": enum (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#State`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. name of resource |
| `displayName` | `string` Required. User given name. |
| `product` | `string` Required. Name field (with URL) of the Product offered for SPLA. |
| `licenseType` | ``enum (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#LicenseType`)`` Required. LicenseType to be applied for billing |
| `currentBillingInfo` | ``object (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#BillingInfo`)`` Required. Billing information applicable till end of the current month. |
| `nextBillingInfo` | ``object (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#BillingInfo`)`` Required. Billing information applicable for next month. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Create time stamp Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Update time stamp Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `labels` | `map (key: string, value: string)` Optional. Labels as key value pairs An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `state` | ``enum (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#State`)`` Output only. State of the configuration. |

## LicenseType

Different types of licenses that are supported.

| Enums ||
|---|---|
| `LICENSE_TYPE_UNSPECIFIED` | unspecified. |
| `LICENSE_TYPE_PER_MONTH_PER_USER` | Billing will be based on number of users listed per month. |
| `LICENSE_TYPE_BRING_YOUR_OWN_LICENSE` | Bring your own license. |

## BillingInfo

Billing Information.

| JSON representation |
|---|
| ``` { "startTime": string, "endTime": string, // Union field `current_billing_info` can be only one of the following: "userCountBilling": { object (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#UserCountBillingInfo`) } // End of list of possible types for union field `current_billing_info`. } ``` |

| Fields ||
|---|---|
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. When the billing starts. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `endTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. When the billing ends. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| Union field `current_billing_info`. Billing information, depending on the license type. `current_billing_info` can be only one of the following: ||
| `userCountBilling` | ``object (`https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations#UserCountBillingInfo`)`` This type of billing uses user count for computing total charge. |

## UserCountBillingInfo

This approach uses total unique user count for billing.

| JSON representation |
|---|
| ``` { "userCount": integer } ``` |

| Fields ||
|---|---|
| `userCount` | `integer` Required. Number of users to bill for. |

## State

State of the configuration.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The Status of the configuration is unspecified |
| `STATE_ACTIVE` | Configuration is in active state. |
| `STATE_SUSPENDED` | Configuration is in deactivated state. |
| `STATE_DELETED` | Configuration is in deleted state. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/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` | Creates a new Configuration in a given project and location. |
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/deactivate` | Deactivates the given configuration. |
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/delete` | Deletes a single Configuration. |
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/get` | Gets details of a single Configuration. |
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/list` | Lists Configurations in a given project and location. |
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/patch` | Updates the parameters of a single Configuration. |
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/queryLicenseUsage` | License Usage information for a Configuration. |
| ### `https://docs.cloud.google.com/compute/docs/licensemanager/rest/v1/projects.locations.configurations/reactivate` | Reactivates the given configuration. |