dns / Client / create_hosted_zone
create_hosted_zone
- dns.Client.create_hosted_zone(**kwargs)
ゾーンの作成を行います。
リクエストボディにてゾーンの作成に必要な情報を入力し、それにもとづいてゾーンが作成されます。
作成したゾーンのドメインをユーザーが所持している場合、認証なしでゾーンが作成されます。
作成したゾーンのドメインをユーザーが所持していない場合、ゾーン作成前に認証が行われるため、Unauthorizedエラーが発生します。 Unauthorized発生の場合、エラーメッセージにある認証情報をレジストラまたはDNSに設定し、再度本APIを実行してください。
認証に失敗した場合は、ゾーンは作成されずエラーが返されます。
See also: NIFCLOUD API Documentation
Request Syntax
response = client.create_hosted_zone( CallerReference='string', Name='string', RequestHostedZoneConfig={ 'Comment': 'string' } )
- Parameters:
CallerReference (string) –
Name (string) – [REQUIRED]
RequestHostedZoneConfig (dict) –
Comment (string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'ChangeInfo': { 'Id': 'string', 'Status': 'string', 'SubmittedAt': 'string' }, 'DelegationSet': { 'NameServers': [ 'string', ] }, 'HostedZone': { 'CallerReference': 'string', 'Config': { 'Comment': 'string' }, 'Id': 'string', 'Name': 'string', 'ResourceRecordSetCount': 123 } }
Response Structure
(dict) –
ChangeInfo (dict) –
Id (string) –
Status (string) –
SubmittedAt (string) –
DelegationSet (dict) –
NameServers (list) –
(string) –
HostedZone (dict) –
CallerReference (string) –
Config (dict) –
Comment (string) –
Id (string) –
Name (string) –
ResourceRecordSetCount (integer) –