api_revisions
Creates, updates, deletes, gets or lists an api_revisions resource.
Overview​
| Name | api_revisions |
| Type | Resource |
| Id | ovh.account.api_revisions |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
available_revisions | array | Available API revisions to transition to (wire: availableRevisions) |
current_state | object | Current state of the API revision (wire: currentState) |
target_spec | object | Target specification for the API revision (wire: targetSpec) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | Get the current and available API revisions (Alpha version) | ||
update | update | target_spec | Update the current API revision (Alpha version) |
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"}}) |
SELECT examples​
- get
Get the current and available API revisions (Alpha version)
SELECT
available_revisions,
current_state,
target_spec
FROM ovh.account.api_revisions
;
UPDATE examples​
- update
Update the current API revision (Alpha version)
UPDATE ovh.account.api_revisions
SET
target_spec = '{{ target_spec }}'
WHERE
target_spec = '{{ target_spec }}' --required
RETURNING
available_revisions,
current_state,
target_spec;