indies
Creates, updates, deletes, gets or lists an indies resource.
Overview​
| Name | indies |
| Type | Resource |
| Id | ovh.hosting_web.indies |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
attached_domains | array | AttachedDomain IDs linked to this multidomain (wire: attachedDomains) |
home | string | Home directory |
login | string | Login of the multidomain independent user |
state | string | User status (off, rw) |
Hosting indys
| Name | Datatype | Description |
|---|---|---|
attached_domains | array | AttachedDomain IDs linked to this multidomain (wire: attachedDomains) |
home | string | Home directory |
login | string | Login of the multidomain independent user |
state | string | User status (off, rw) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | login, service_name | Get an independent user. Returns the home directory, state and attached domains of the independent multidomain user. | |
list | select | service_name | login, x_pagination_mode | List independent users. Returns the logins of the independent multidomain users of the hosting. Filter them by 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.
| 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"}}) |
login | string | Login of the multidomain independent user |
service_name | string | The internal name of your hosting (wire: serviceName) |
login | string | Filter the value of login property (like) |
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
Get an independent user. Returns the home directory, state and attached domains of the independent multidomain user.
SELECT
attached_domains,
home,
login,
state
FROM ovh.hosting_web.indies
WHERE login = '{{ login }}' -- required
AND service_name = '{{ service_name }}' -- required
;
List independent users. Returns the logins of the independent multidomain users of the hosting. Filter them by login.
SELECT
attached_domains,
home,
login,
state
FROM ovh.hosting_web.indies
WHERE service_name = '{{ service_name }}' -- required
AND login = '{{ login }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;