distribution_software
Creates, updates, deletes, gets or lists a distribution_software resource.
Overview​
| Name | distribution_software |
| Type | Resource |
| Id | ovh.vps.distribution_software |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | |
name | string | |
status | string | Available Status for a vps Software (deprecated, stable, testing) |
type | string | Available Type for a vps Software (database, environment, webserver) |
Available softwares on a Template
| Name | Datatype | Description |
|---|---|---|
id | integer | |
name | string | |
status | string | Available Status for a vps Software (deprecated, stable, testing) |
type | string | Available Type for a vps Software (database, environment, webserver) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | service_name, software_id | Returns the name, type and status of a software available for the distribution of the VPS. (Deprecated, will be removed) | |
list | select | service_name | x_pagination_mode | Returns the IDs of the software available for the distribution of the VPS. (Deprecated, will be removed) |
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"}}) |
service_name | string | Service name (wire: serviceName) |
software_id | integer | Software ID (wire: softwareId) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Returns the name, type and status of a software available for the distribution of the VPS. (Deprecated, will be removed)
SELECT
id,
name,
status,
type
FROM ovh.vps.distribution_software
WHERE service_name = '{{ service_name }}' -- required
AND software_id = '{{ software_id }}' -- required
;
Returns the IDs of the software available for the distribution of the VPS. (Deprecated, will be removed)
SELECT
id,
name,
status,
type
FROM ovh.vps.distribution_software
WHERE service_name = '{{ service_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;