Skip to main content

rules

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

Overview​

Namerules
TypeResource
Idovh.new_account.rules

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertGive all the rules to follow in order to create and update 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"}})

INSERT examples​

Give all the rules to follow in order to create and update an OVH identifier

INSERT INTO ovh.new_account.rules (
action,
address,
area,
birth_city,
birth_day,
city,
company_national_identification_number,
corporation_type,
country,
einvoicing_billing_address,
email,
fax,
firstname,
italian_sdi,
language,
legalform,
name,
national_identification_number,
organisation,
ovh_company,
ovh_subsidiary,
phone,
phone_country,
phone_type,
purpose_of_purchase,
sex,
spare_email,
vat,
zip
)
SELECT
'{{ action }}',
'{{ address }}',
'{{ area }}',
'{{ birth_city }}',
'{{ birth_day }}',
'{{ city }}',
'{{ company_national_identification_number }}',
'{{ corporation_type }}',
'{{ country }}',
'{{ einvoicing_billing_address }}',
'{{ email }}',
'{{ fax }}',
'{{ firstname }}',
'{{ italian_sdi }}',
'{{ language }}',
'{{ legalform }}',
'{{ name }}',
'{{ national_identification_number }}',
'{{ organisation }}',
'{{ ovh_company }}',
'{{ ovh_subsidiary }}',
'{{ phone }}',
'{{ phone_country }}',
'{{ phone_type }}',
'{{ purpose_of_purchase }}',
'{{ sex }}',
'{{ spare_email }}',
'{{ vat }}',
'{{ zip }}'
RETURNING
field_name,
default_value,
examples,
in,
mandatory,
max_length,
min_length,
prefix,
regular_expression
;