Skip to main content

subscriptions

Creates, updates, deletes, gets or lists a subscriptions resource.

Overview

Namesubscriptions
TypeResource
Iddigitalocean.container_registry.subscriptions

Fields

The following fields are returned by SELECT queries:

The response will be a JSON object with a key called subscription containing information about your subscription.

NameDatatypeDescription
created_atstring (date-time)The time at which the subscription was created. (example: 2020-01-23T21:19:12Z)
tierobject
updated_atstring (date-time)The time at which the subscription was last updated. (example: 2020-11-05T15:53:24Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
registries_get_subscriptionselectA subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to /v2/registries/subscription. It is similar to GET /v2/registry/subscription.
registries_update_subscriptioninsertAfter creating your registry, you can switch to a different subscription tier to better suit your needs. To do this, send a POST request to /v2/registries/subscription. It is similar to POST /v2/registry/subscription.
registry_get_subscription_legacyexecNote: This endpoint is deprecated. Please use the /v2/registries endpoint instead.

A subscription is automatically created when you configure your
container registry. To get information about your subscription, send a GET
request to /v2/registry/subscription.
registry_update_subscription_legacyexecNote: This endpoint is deprecated. Please use the /v2/registries endpoint instead.

After creating your registry, you can switch to a different
subscription tier to better suit your needs. To do this, send a POST request
to /v2/registry/subscription.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

SELECT examples

A subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to /v2/registries/subscription. It is similar to GET /v2/registry/subscription.

SELECT
created_at,
tier,
updated_at
FROM digitalocean.container_registry.subscriptions
;

INSERT examples

After creating your registry, you can switch to a different subscription tier to better suit your needs. To do this, send a POST request to /v2/registries/subscription. It is similar to POST /v2/registry/subscription.

INSERT INTO digitalocean.container_registry.subscriptions (
tier_slug
)
SELECT
'{{ tier_slug }}'
RETURNING
subscription
;

Lifecycle Methods

Note: This endpoint is deprecated. Please use the /v2/registries endpoint instead.

A subscription is automatically created when you configure your
container registry. To get information about your subscription, send a GET
request to /v2/registry/subscription.

EXEC digitalocean.container_registry.subscriptions.registry_get_subscription_legacy

;