Skip to main content

creation_rules

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

Overview​

Namecreation_rules
TypeResource
Idovh.new_account.creation_rules

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
nameobjectDescribe all rules for a given field
addressobjectDescribe all rules for a given field
areaobjectDescribe all rules for a given field
birth_cityobjectDescribe all rules for a given field (wire: birthCity)
birth_dayobjectDescribe all rules for a given field (wire: birthDay)
cityobjectDescribe all rules for a given field
company_national_identification_numberobjectDescribe all rules for a given field (wire: companyNationalIdentificationNumber)
corporation_typeobjectDescribe all rules for a given field (wire: corporationType)
countryobjectDescribe all rules for a given field
emailobjectDescribe all rules for a given field
faxobjectDescribe all rules for a given field
firstnameobjectDescribe all rules for a given field
italian_sdiobjectDescribe all rules for a given field (wire: italianSDI)
languageobjectDescribe all rules for a given field
legalformobjectDescribe all rules for a given field
national_identification_numberobjectDescribe all rules for a given field (wire: nationalIdentificationNumber)
organisationobjectDescribe all rules for a given field
ovh_companyobjectDescribe all rules for a given field (wire: ovhCompany)
ovh_subsidiaryobjectDescribe all rules for a given field (wire: ovhSubsidiary)
phoneobjectDescribe all rules for a given field
phone_countryobjectDescribe all rules for a given field (wire: phoneCountry)
phone_typeobjectDescribe all rules for a given field (wire: phoneType)
purpose_of_purchaseobjectDescribe all rules for a given field (wire: purposeOfPurchase)
sexobjectDescribe all rules for a given field
spare_emailobjectDescribe all rules for a given field (wire: spareEmail)
vatobjectDescribe all rules for a given field
zipobjectDescribe all rules for a given field

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcountry, legalform, ovh_company, ovh_subsidiaryGive 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.

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"}})
countrystring
legalformstring
ovh_companystring (wire: ovhCompany)
ovh_subsidiarystring (wire: ovhSubsidiary)

SELECT examples​

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
;