# SubscriptionConfig

- [JSON representation](https://docs.cloud.google.com/distributed-cloud/connected/latest/docs/reference/hardware/rest/v1alpha/SubscriptionConfig#SCHEMA_REPRESENTATION)
- [SubscriptionState](https://docs.cloud.google.com/distributed-cloud/connected/latest/docs/reference/hardware/rest/v1alpha/SubscriptionConfig#SubscriptionState)

A message to store a subscription configuration.

| JSON representation |
|---|
| ``` { "subscriptionId": string, "billingId": string, "state": enum (`https://docs.cloud.google.com/distributed-cloud/connected/latest/docs/reference/hardware/rest/v1alpha/SubscriptionConfig#SubscriptionState`), "startTime": string } ``` |

| Fields ||
|---|---|
| `subscriptionId` | `string` Output only. The unique identifier of the subscription. |
| `billingId` | `string` Output only. The Google Cloud Billing ID that the subscription is created under. |
| `state` | ``enum (`https://docs.cloud.google.com/distributed-cloud/connected/latest/docs/reference/hardware/rest/v1alpha/SubscriptionConfig#SubscriptionState`)`` Output only. The current state of the subscription. |
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The start time of the subscription. Uses RFC 3339, where generated output will always be Z-normalized and use 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"`. |

## SubscriptionState

Enum to represent the state of the subscription.

| Enums ||
|---|---|
| `SUBSCRIPTION_STATE_UNSPECIFIED` | State is unspecified. |
| `ACTIVE` | Active state means that the subscription has been created successfully and billing is happening. |
| `INACTIVE` | Inactive means that the subscription has been created successfully, but billing has not started yet. |
| `ERROR` | The subscription is in an erroneous state. |
| `FAILED_TO_RETRIEVE` | The subscription state failed to be retrieved. This may be a transient issue. The user should retry the request. |
| `COMPLETED` | The subscription has been completed, because it has reached the end date. |