upgrade_managed_cms
Creates, updates, deletes, gets or lists a upgrade_managed_cms resource.
Overview​
| Name | upgrade_managed_cms |
| Type | Resource |
| Id | ovh.order.upgrade_managed_cms |
Fields​
The following fields are returned by SELECT queries:
- get
- list_by_service_name
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
operation | object | Upgrade operation |
order | object | Order placed |
Representation of a generic product
| Name | Datatype | Description |
|---|---|---|
product_name | string | Name of the product (wire: productName) |
plan_code | string | Product offer identifier (wire: planCode) |
prices | array | Prices of the product offer |
product_type | string | Product type (cloud_service, delivery, deposit, domain, implementation_services, saas_license, shipping, storage) (wire: productType) |
| Name | Datatype | Description |
|---|---|---|
value | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | plan_code, quantity, service_name | Get a provisional order for the selected upgrade of your service (Beta version) | |
list_by_service_name | select | service_name | Retrieve available offers to upgrade your service to (Beta version) | |
list | select | List available services (Beta version) | ||
create | insert | plan_code, service_name, quantity | Perform the requested upgrade of your service (Beta 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"}}) |
plan_code | string | Plan code of the offer you want to upgrade to (wire: planCode) |
quantity | integer | Quantity you want to upgrade to |
service_name | string | The internal ID of your managed CMS (wire: serviceName) |
SELECT examples​
- get
- list_by_service_name
- list
Get a provisional order for the selected upgrade of your service (Beta version)
SELECT
operation,
order
FROM ovh.order.upgrade_managed_cms
WHERE plan_code = '{{ plan_code }}' -- required
AND quantity = '{{ quantity }}' -- required
AND service_name = '{{ service_name }}' -- required
;
Retrieve available offers to upgrade your service to (Beta version)
SELECT
product_name,
plan_code,
prices,
product_type
FROM ovh.order.upgrade_managed_cms
WHERE service_name = '{{ service_name }}' -- required
;
List available services (Beta version)
SELECT
value
FROM ovh.order.upgrade_managed_cms
;
INSERT examples​
- create
- Manifest
Perform the requested upgrade of your service (Beta version)
INSERT INTO ovh.order.upgrade_managed_cms (
auto_pay_with_preferred_payment_method,
quantity,
plan_code,
service_name
)
SELECT
{{ auto_pay_with_preferred_payment_method }},
{{ quantity }} /* required */,
'{{ plan_code }}',
'{{ service_name }}'
RETURNING
operation,
order
;
# Description fields are for documentation purposes
- name: upgrade_managed_cms
props:
- name: plan_code
value: "{{ plan_code }}"
description: Required parameter for the upgrade_managed_cms resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the upgrade_managed_cms resource.
- name: auto_pay_with_preferred_payment_method
value: {{ auto_pay_with_preferred_payment_method }}
description: |
Indicates that order will be automatically paid with preferred payment method
- name: quantity
value: {{ quantity }}
description: |
Quantity you want to upgrade to