Skip to content

Commit a4db779

Browse files
feat(domain): add CLI config for RegistrarApi methods (#5418)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent 019e26e commit a4db779

File tree

43 files changed

+7521
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7521
-4
lines changed

_typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Vertexes = "Vertexes"
1414
ba = "ba"
1515
Viw = "Viw"
1616
UE = "UE"
17+
gost = "gost"
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Check whether contacts are compatible with a domain or a TLD.
4+
If contacts are not compatible with either the domain or the TLD, the information that needs to be corrected is returned.
5+
6+
USAGE:
7+
scw domain contact check-compatibility [arg=value ...]
8+
9+
ARGS:
10+
[domains.{index}]
11+
[tlds.{index}]
12+
[owner-contact-id]
13+
[owner-contact.legal-form] (legal_form_unknown | individual | corporate | association | other)
14+
[owner-contact.firstname]
15+
[owner-contact.lastname]
16+
[owner-contact.company-name]
17+
[owner-contact.email]
18+
[owner-contact.email-alt]
19+
[owner-contact.phone-number]
20+
[owner-contact.fax-number]
21+
[owner-contact.address-line-1]
22+
[owner-contact.address-line-2]
23+
[owner-contact.zip]
24+
[owner-contact.city]
25+
[owner-contact.country]
26+
[owner-contact.vat-identification-code]
27+
[owner-contact.company-identification-code]
28+
[owner-contact.lang] (unknown_language_code | en_US | fr_FR | de_DE)
29+
[owner-contact.resale]
30+
[owner-contact.extension-fr.mode] (mode_unknown | individual | company_identification_code | duns | local | association | trademark | code_auth_afnic)
31+
[owner-contact.extension-fr.individual-info.whois-opt-in]
32+
[owner-contact.extension-fr.duns-info.duns-id]
33+
[owner-contact.extension-fr.duns-info.local-id]
34+
[owner-contact.extension-fr.association-info.publication-jo]
35+
[owner-contact.extension-fr.association-info.publication-jo-page]
36+
[owner-contact.extension-fr.trademark-info.trademark-inpi]
37+
[owner-contact.extension-fr.code-auth-afnic-info.code-auth-afnic]
38+
[owner-contact.extension-eu.european-citizenship]
39+
[owner-contact.whois-opt-in]
40+
[owner-contact.state]
41+
[owner-contact.extension-nl.legal-form] (legal_form_unknown | other | non_dutch_eu_company | non_dutch_legal_form_enterprise_subsidiary | limited_company | limited_company_in_formation | cooperative | limited_partnership | sole_company | european_economic_interest_group | religious_entity | partnership | public_company | mutual_benefit_company | residential | shipping_company | foundation | association | trading_partnership | natural_person)
42+
[owner-contact.extension-nl.legal-form-registration-number]
43+
[owner-contact.extension-it.pin] Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
44+
[owner-contact.questions.{index}.question]
45+
[owner-contact.questions.{index}.answer]
46+
[administrative-contact-id]
47+
[administrative-contact.legal-form] (legal_form_unknown | individual | corporate | association | other)
48+
[administrative-contact.firstname]
49+
[administrative-contact.lastname]
50+
[administrative-contact.company-name]
51+
[administrative-contact.email]
52+
[administrative-contact.email-alt]
53+
[administrative-contact.phone-number]
54+
[administrative-contact.fax-number]
55+
[administrative-contact.address-line-1]
56+
[administrative-contact.address-line-2]
57+
[administrative-contact.zip]
58+
[administrative-contact.city]
59+
[administrative-contact.country]
60+
[administrative-contact.vat-identification-code]
61+
[administrative-contact.company-identification-code]
62+
[administrative-contact.lang] (unknown_language_code | en_US | fr_FR | de_DE)
63+
[administrative-contact.resale]
64+
[administrative-contact.extension-fr.mode] (mode_unknown | individual | company_identification_code | duns | local | association | trademark | code_auth_afnic)
65+
[administrative-contact.extension-fr.individual-info.whois-opt-in]
66+
[administrative-contact.extension-fr.duns-info.duns-id]
67+
[administrative-contact.extension-fr.duns-info.local-id]
68+
[administrative-contact.extension-fr.association-info.publication-jo]
69+
[administrative-contact.extension-fr.association-info.publication-jo-page]
70+
[administrative-contact.extension-fr.trademark-info.trademark-inpi]
71+
[administrative-contact.extension-fr.code-auth-afnic-info.code-auth-afnic]
72+
[administrative-contact.extension-eu.european-citizenship]
73+
[administrative-contact.whois-opt-in]
74+
[administrative-contact.state]
75+
[administrative-contact.extension-nl.legal-form] (legal_form_unknown | other | non_dutch_eu_company | non_dutch_legal_form_enterprise_subsidiary | limited_company | limited_company_in_formation | cooperative | limited_partnership | sole_company | european_economic_interest_group | religious_entity | partnership | public_company | mutual_benefit_company | residential | shipping_company | foundation | association | trading_partnership | natural_person)
76+
[administrative-contact.extension-nl.legal-form-registration-number]
77+
[administrative-contact.extension-it.pin] Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
78+
[administrative-contact.questions.{index}.question]
79+
[administrative-contact.questions.{index}.answer]
80+
[technical-contact-id]
81+
[technical-contact.legal-form] (legal_form_unknown | individual | corporate | association | other)
82+
[technical-contact.firstname]
83+
[technical-contact.lastname]
84+
[technical-contact.company-name]
85+
[technical-contact.email]
86+
[technical-contact.email-alt]
87+
[technical-contact.phone-number]
88+
[technical-contact.fax-number]
89+
[technical-contact.address-line-1]
90+
[technical-contact.address-line-2]
91+
[technical-contact.zip]
92+
[technical-contact.city]
93+
[technical-contact.country]
94+
[technical-contact.vat-identification-code]
95+
[technical-contact.company-identification-code]
96+
[technical-contact.lang] (unknown_language_code | en_US | fr_FR | de_DE)
97+
[technical-contact.resale]
98+
[technical-contact.extension-fr.mode] (mode_unknown | individual | company_identification_code | duns | local | association | trademark | code_auth_afnic)
99+
[technical-contact.extension-fr.individual-info.whois-opt-in]
100+
[technical-contact.extension-fr.duns-info.duns-id]
101+
[technical-contact.extension-fr.duns-info.local-id]
102+
[technical-contact.extension-fr.association-info.publication-jo]
103+
[technical-contact.extension-fr.association-info.publication-jo-page]
104+
[technical-contact.extension-fr.trademark-info.trademark-inpi]
105+
[technical-contact.extension-fr.code-auth-afnic-info.code-auth-afnic]
106+
[technical-contact.extension-eu.european-citizenship]
107+
[technical-contact.whois-opt-in]
108+
[technical-contact.state]
109+
[technical-contact.extension-nl.legal-form] (legal_form_unknown | other | non_dutch_eu_company | non_dutch_legal_form_enterprise_subsidiary | limited_company | limited_company_in_formation | cooperative | limited_partnership | sole_company | european_economic_interest_group | religious_entity | partnership | public_company | mutual_benefit_company | residential | shipping_company | foundation | association | trading_partnership | natural_person)
110+
[technical-contact.extension-nl.legal-form-registration-number]
111+
[technical-contact.extension-it.pin] Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
112+
[technical-contact.questions.{index}.question]
113+
[technical-contact.questions.{index}.answer]
114+
115+
DEPRECATED ARGS:
116+
[owner-contact.extension-it.european-citizenship] This option is useless anymore
117+
[owner-contact.extension-it.tax-code] Tax_code is renamed to pin
118+
[administrative-contact.extension-it.european-citizenship] This option is useless anymore
119+
[administrative-contact.extension-it.tax-code] Tax_code is renamed to pin
120+
[technical-contact.extension-it.european-citizenship] This option is useless anymore
121+
[technical-contact.extension-it.tax-code] Tax_code is renamed to pin
122+
123+
FLAGS:
124+
-h, --help help for check-compatibility
125+
--list-sub-commands List all subcommands
126+
127+
GLOBAL FLAGS:
128+
-c, --config string The path to the config file
129+
-D, --debug Enable debug mode
130+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
131+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Retrieve a contact's details from the registrar using the given contact's ID.
4+
5+
USAGE:
6+
scw domain contact get [arg=value ...]
7+
8+
ARGS:
9+
contact-id
10+
11+
FLAGS:
12+
-h, --help help for get
13+
--list-sub-commands List all subcommands
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Retrieve the list of contacts and their associated domains and roles.
4+
You can filter the list by domain name.
5+
6+
USAGE:
7+
scw domain contact list [arg=value ...]
8+
9+
ARGS:
10+
[domain]
11+
[project-id]
12+
[role] (unknown_role | owner | administrative | technical)
13+
[email-status] (email_status_unknown | validated | not_validated | invalid_email)
14+
[organization-id]
15+
16+
FLAGS:
17+
-h, --help help for list
18+
--list-sub-commands List all subcommands
19+
20+
GLOBAL FLAGS:
21+
-c, --config string The path to the config file
22+
-D, --debug Enable debug mode
23+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
24+
-p, --profile string The config profile to use
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Edit the contact's information.
4+
5+
USAGE:
6+
scw domain contact update [arg=value ...]
7+
8+
ARGS:
9+
contact-id
10+
[email]
11+
[email-alt]
12+
[phone-number]
13+
[fax-number]
14+
[address-line-1]
15+
[address-line-2]
16+
[zip]
17+
[city]
18+
[country]
19+
[vat-identification-code]
20+
[company-identification-code]
21+
[lang] (unknown_language_code | en_US | fr_FR | de_DE)
22+
[resale]
23+
[extension-fr.mode] (mode_unknown | individual | company_identification_code | duns | local | association | trademark | code_auth_afnic)
24+
[extension-fr.individual-info.whois-opt-in]
25+
[extension-fr.duns-info.duns-id]
26+
[extension-fr.duns-info.local-id]
27+
[extension-fr.association-info.publication-jo]
28+
[extension-fr.association-info.publication-jo-page]
29+
[extension-fr.trademark-info.trademark-inpi]
30+
[extension-fr.code-auth-afnic-info.code-auth-afnic]
31+
[extension-eu.european-citizenship]
32+
[extension-nl.legal-form] (legal_form_unknown | other | non_dutch_eu_company | non_dutch_legal_form_enterprise_subsidiary | limited_company | limited_company_in_formation | cooperative | limited_partnership | sole_company | european_economic_interest_group | religious_entity | partnership | public_company | mutual_benefit_company | residential | shipping_company | foundation | association | trading_partnership | natural_person)
33+
[extension-nl.legal-form-registration-number]
34+
[extension-it.pin] Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
35+
[whois-opt-in]
36+
[state]
37+
[questions.{index}.question]
38+
[questions.{index}.answer]
39+
40+
DEPRECATED ARGS:
41+
[extension-it.european-citizenship] This option is useless anymore
42+
[extension-it.tax-code] Tax_code is renamed to pin
43+
44+
FLAGS:
45+
-h, --help help for update
46+
--list-sub-commands List all subcommands
47+
48+
GLOBAL FLAGS:
49+
-c, --config string The path to the config file
50+
-D, --debug Enable debug mode
51+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
52+
-p, --profile string The config profile to use
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Contact management.
4+
5+
USAGE:
6+
scw domain contact <command>
7+
8+
AVAILABLE COMMANDS:
9+
check-compatibility Check if contacts are compatible with a domain or a TLD
10+
get Get a contact
11+
list List contacts
12+
update Update contact
13+
14+
FLAGS:
15+
-h, --help help for contact
16+
--list-sub-commands List all subcommands
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
23+
24+
Use "scw domain contact [command] --help" for more information about a command.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Disable the `auto renew` feature for a domain. This means the domain will not be renewed before its expiry date.
4+
5+
USAGE:
6+
scw domain domain disable-auto-renew [arg=value ...]
7+
8+
ARGS:
9+
domain
10+
11+
FLAGS:
12+
-h, --help help for disable-auto-renew
13+
--list-sub-commands List all subcommands
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Disable DNSSEC for a domain.
4+
5+
USAGE:
6+
scw domain domain disable-dnssec [arg=value ...]
7+
8+
ARGS:
9+
domain
10+
11+
FLAGS:
12+
-h, --help help for disable-dnssec
13+
--list-sub-commands List all subcommands
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Enable the `auto renew` feature for a domain. This means the domain will be automatically renewed before its expiry date.
4+
5+
USAGE:
6+
scw domain domain enable-auto-renew [arg=value ...]
7+
8+
ARGS:
9+
domain
10+
11+
FLAGS:
12+
-h, --help help for enable-auto-renew
13+
--list-sub-commands List all subcommands
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)