TopLevelDomainsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

WebSiteManagementClient's

<xref:top_level_domains> attribute.

Inheritance
builtins.object
TopLevelDomainsOperations

Constructor

TopLevelDomainsOperations(*args, **kwargs)

Methods

get

Get details of a top-level domain.

Description for Get details of a top-level domain.

list

Get all top-level domains supported for registration.

Description for Get all top-level domains supported for registration.

list_agreements

Gets all legal agreements that user needs to accept before purchasing a domain.

Description for Gets all legal agreements that user needs to accept before purchasing a domain.

get

Get details of a top-level domain.

Description for Get details of a top-level domain.

get(name: str, **kwargs: Any) -> TopLevelDomain

Parameters

Name Description
name
Required
str

Name of the top-level domain. Required.

Returns

Type Description

TopLevelDomain or the result of cls(response)

Exceptions

Type Description

list

Get all top-level domains supported for registration.

Description for Get all top-level domains supported for registration.

list(**kwargs: Any) -> Iterable[TopLevelDomain]

Returns

Type Description

An iterator like instance of either TopLevelDomain or the result of cls(response)

Exceptions

Type Description

list_agreements

Gets all legal agreements that user needs to accept before purchasing a domain.

Description for Gets all legal agreements that user needs to accept before purchasing a domain.

list_agreements(name: str, agreement_option: _models.TopLevelDomainAgreementOption, *, content_type: str = 'application/json', **kwargs: Any) -> Iterable['_models.TldLegalAgreement']

Parameters

Name Description
name
Required
str

Name of the top-level domain. Required.

agreement_option
Required

Domain agreement options. Is either a TopLevelDomainAgreementOption type or a IO[bytes] type. Required.

Returns

Type Description

An iterator like instance of either TldLegalAgreement or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.web.v2023_01_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\web\\v2023_01_01\\models\\__init__.py'>