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 and exists for backward compatibility.
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 and exists for backward compatibility.
registry_get_subscription_legacyexecA 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_legacyexecAfter 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 and exists for backward compatibility.

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 and exists for backward compatibility.

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

Lifecycle Methods

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 
;