Skip to main content

zone_dyn_host_logins

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

Overview​

Namezone_dyn_host_logins
TypeResource
Idovh.domain.zone_dyn_host_logins

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
loginstringLogin name
sub_domainstringLogin sub-domain (wire: subDomain)
zonestringLogin zone

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlogin, zone_nameReturns a DynHost login: its name and the subdomain it can update.
listselectzone_namelogin, sub_domain, x_pagination_modeReturns the DynHost logins of the zone. Can be filtered by login and subdomain.
createinsertzone_name, login_suffix, password, sub_domainCreates a login named from the zone name and a suffix. The subdomain * allows all subdomains.
updateupdatelogin, zone_nameUpdates the subdomain a DynHost login is allowed to update.
deletedeletelogin, zone_nameDeletes a DynHost login from the zone.
change_passwordexeclogin, zoneName, passwordSets a new password for a DynHost login.

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"}})
loginstringLogin
zoneNamestringZone name
zone_namestringZone name (wire: zoneName)
loginstringFilter the value of login property (ilike)
sub_domainstringFilter the value of subDomain property (ilike) (wire: subDomain)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Returns a DynHost login: its name and the subdomain it can update.

SELECT
login,
sub_domain,
zone
FROM ovh.domain.zone_dyn_host_logins
WHERE login = '{{ login }}' -- required
AND zone_name = '{{ zone_name }}' -- required
;

INSERT examples​

Creates a login named from the zone name and a suffix. The subdomain * allows all subdomains.

INSERT INTO ovh.domain.zone_dyn_host_logins (
login_suffix,
password,
sub_domain,
zone_name
)
SELECT
'{{ login_suffix }}' /* required */,
'{{ password }}' /* required */,
'{{ sub_domain }}' /* required */,
'{{ zone_name }}'
RETURNING
login,
sub_domain,
zone
;

UPDATE examples​

Updates the subdomain a DynHost login is allowed to update.

UPDATE ovh.domain.zone_dyn_host_logins
SET
sub_domain = '{{ sub_domain }}'
WHERE
login = '{{ login }}' --required
AND zone_name = '{{ zone_name }}' --required;

DELETE examples​

Deletes a DynHost login from the zone.

DELETE FROM ovh.domain.zone_dyn_host_logins
WHERE login = '{{ login }}' --required
AND zone_name = '{{ zone_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Sets a new password for a DynHost login.

EXEC ovh.domain.zone_dyn_host_logins.change_password
@login='{{ login }}' --required,
@zoneName='{{ zoneName }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;