creation_rules
Creates, updates, deletes, gets or lists a creation_rules resource.
Overview​
| Name | creation_rules |
| Type | Resource |
| Id | ovh.new_account.creation_rules |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
name | object | Describe all rules for a given field |
address | object | Describe all rules for a given field |
area | object | Describe all rules for a given field |
birth_city | object | Describe all rules for a given field (wire: birthCity) |
birth_day | object | Describe all rules for a given field (wire: birthDay) |
city | object | Describe all rules for a given field |
company_national_identification_number | object | Describe all rules for a given field (wire: companyNationalIdentificationNumber) |
corporation_type | object | Describe all rules for a given field (wire: corporationType) |
country | object | Describe all rules for a given field |
email | object | Describe all rules for a given field |
fax | object | Describe all rules for a given field |
firstname | object | Describe all rules for a given field |
italian_sdi | object | Describe all rules for a given field (wire: italianSDI) |
language | object | Describe all rules for a given field |
legalform | object | Describe all rules for a given field |
national_identification_number | object | Describe all rules for a given field (wire: nationalIdentificationNumber) |
organisation | object | Describe all rules for a given field |
ovh_company | object | Describe all rules for a given field (wire: ovhCompany) |
ovh_subsidiary | object | Describe all rules for a given field (wire: ovhSubsidiary) |
phone | object | Describe all rules for a given field |
phone_country | object | Describe all rules for a given field (wire: phoneCountry) |
phone_type | object | Describe all rules for a given field (wire: phoneType) |
purpose_of_purchase | object | Describe all rules for a given field (wire: purposeOfPurchase) |
sex | object | Describe all rules for a given field |
spare_email | object | Describe all rules for a given field (wire: spareEmail) |
vat | object | Describe all rules for a given field |
zip | object | Describe all rules for a given field |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | country, legalform, ovh_company, ovh_subsidiary | Give all the rules to follow in order to create an OVH identifier |
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"}}) |
country | string | |
legalform | string | |
ovh_company | string | (wire: ovhCompany) |
ovh_subsidiary | string | (wire: ovhSubsidiary) |
SELECT examples​
- get
Give all the rules to follow in order to create an OVH identifier
SELECT
name,
address,
area,
birth_city,
birth_day,
city,
company_national_identification_number,
corporation_type,
country,
email,
fax,
firstname,
italian_sdi,
language,
legalform,
national_identification_number,
organisation,
ovh_company,
ovh_subsidiary,
phone,
phone_country,
phone_type,
purpose_of_purchase,
sex,
spare_email,
vat,
zip
FROM ovh.new_account.creation_rules
WHERE country = '{{ country }}' -- required
AND legalform = '{{ legalform }}' -- required
AND ovh_company = '{{ ovh_company }}' -- required
AND ovh_subsidiary = '{{ ovh_subsidiary }}' -- required
;