Skip to main content

resource_website_domains

Creates, updates, deletes, gets or lists a resource_website_domains resource.

Overview​

Nameresource_website_domains
TypeResource
Idovh.webhosting.resource_website_domains

Fields​

The following fields are returned by SELECT queries:

Webhosting Domain

NameDatatypeDescription
idstringUnique identifier of the domain
checksumstringComputed hash used to control concurrent modification requests. Here, it represents the current target specification value.
current_stateobjectCurrent state of the domain (wire: currentState)
current_tasksarrayOngoing asynchronous tasks related to the website's domain (wire: currentTasks)
resource_statusstringWebhosting Domain readiness in the system (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectname, website_idx_pagination_cursor, x_pagination_sizeReturns the domains linked to the website, with their path, CDN and firewall status. (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.

NameDatatypeDescription
api_hoststringThe 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"}})
namestringName
website_idstring (uuid)Website ID (wire: websiteId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the domains linked to the website, with their path, CDN and firewall status. (Beta version)

SELECT
id,
checksum,
current_state,
current_tasks,
resource_status
FROM ovh.webhosting.resource_website_domains
WHERE name = '{{ name }}' -- required
AND website_id = '{{ website_id }}' -- required
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
;