plans
Creates, updates, deletes, gets or lists a plans resource.
Overview​
| Name | plans |
| Type | Resource |
| Id | ovh.cloud_container_registry.plans |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string | Plan ID |
name | string | Plan name |
code | string | Plan code from catalog |
created_at | string (date-time) | Plan creation date (wire: createdAt) |
features | object | Features of the plan |
registry_limits | object | Container registry limits (wire: registryLimits) |
updated_at | string (date-time) | Plan last update date (wire: updatedAt) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | registry_id, service_name | Show the actual plan of the registry. | |
update | update | registry_id, service_name, plan_id | Update the plan of a registry. |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
registry_id | string | RegistryID (wire: registryID) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
SELECT examples​
- get
Show the actual plan of the registry.
SELECT
id,
name,
code,
created_at,
features,
registry_limits,
updated_at
FROM ovh.cloud_container_registry.plans
WHERE registry_id = '{{ registry_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;
UPDATE examples​
- update
Update the plan of a registry.
UPDATE ovh.cloud_container_registry.plans
SET
plan_id = '{{ plan_id }}'
WHERE
registry_id = '{{ registry_id }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
AND plan_id = '{{ plan_id }}' --required;