Megosztás a következőn keresztül:


Domains - Create Or Update

A tartomány létrehozása vagy frissítése leírás.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}?api-version=2024-11-01

URI-paraméterek

Name In Kötelező Típus Description
domainName
path True

string

pattern: [a-zA-Z0-9][a-zA-Z0-9\.-]+

A tartomány neve.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

Annak az erőforráscsoportnak a neve, amelyhez az erőforrás tartozik.

subscriptionId
path True

string

Az Ön Azure előfizetési azonosítója. Ez egy GUID formátumú sztring (például 000000000-0000-0000-0000-0000000000).

api-version
query True

string

API-verzió

Kérelem törzse

Name Kötelező Típus Description
location True

string

Erőforrás helye.

properties.consent True

DomainPurchaseConsent

Jogi hozzájárulás.

properties.contactAdmin True

Contact

Rendszergazdai kapcsolattartó.

properties.contactBilling True

Contact

Számlázási kapcsolattartó.

properties.contactRegistrant True

Contact

Regisztráló kapcsolattartó.

properties.contactTech True

Contact

Műszaki kapcsolattartó.

kind

string

Erőforrás típusa. Ha az erőforrás egy alkalmazás, a https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference a természetben támogatott értékek részleteiért tekintse meg.

properties.authCode

string

properties.autoRenew

boolean

true, hogy a tartományt automatikusan meg kell-e újítani; ellenkező esetben false.

properties.dnsType

DnsType

Aktuális DNS-típus

properties.dnsZoneId

string

Használandó Azure DNS-zóna

properties.privacy

boolean

true, hogy engedélyezve van-e a tartomány adatvédelem; ellenkező esetben false.

properties.targetDnsType

DnsType

Cél DNS-típus (migráláshoz használható)

tags

object

Erőforráscímkék.

Válaszok

Name Típus Description
200 OK

Domain

A tartományvásárlás sikeres volt.

202 Accepted

Domain

A tartományvásárlás folyamatban van.

Other Status Codes

DefaultErrorResponse

App Service-hibaválasz.

Biztonság

azure_auth

Azure Active Directory OAuth2-folyamat

Típus: oauth2
Folyamat: implicit
Engedélyezési URL: https://login.microsoftonline.com/common/oauth2/authorize

Hatókörök

Name Description
user_impersonation a felhasználói fiók megszemélyesítése

Példák

Create App Service Domain

Mintakérelem

PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com?api-version=2024-11-01

{
  "location": "global",
  "tags": {},
  "properties": {
    "authCode": "exampleAuthCode",
    "privacy": false,
    "autoRenew": true,
    "dnsType": "DefaultDomainRegistrarDns",
    "consent": {
      "agreementKeys": [
        "agreementKey1"
      ],
      "agreedBy": "192.0.2.1",
      "agreedAt": "2021-09-10T19:30:53Z"
    },
    "contactTech": {
      "email": "tech@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Tech",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactBilling": {
      "email": "billing@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Billing",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactAdmin": {
      "email": "admin@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Admin",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactRegistrant": {
      "email": "registrant@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Registrant",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    }
  }
}

Mintaválasz

{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com",
  "name": "example.com",
  "type": "Microsoft.DomainRegistration/domains",
  "location": "global",
  "tags": {},
  "properties": {
    "authCode": "exampleAuthCode",
    "registrationStatus": "Active",
    "provisioningState": "Succeeded",
    "nameServers": [
      "ns01.ote.domaincontrol.com",
      "ns02.ote.domaincontrol.com"
    ],
    "privacy": false,
    "createdTime": "2021-09-10T19:30:53Z",
    "expirationTime": "2022-09-10T19:30:53Z",
    "autoRenew": true,
    "readyForDnsRecordManagement": true,
    "managedHostNames": [],
    "domainNotRenewableReasons": [
      "ExpirationNotInRenewalTimeRange"
    ],
    "dnsType": "DefaultDomainRegistrarDns",
    "consent": {
      "agreementKeys": [
        "agreementKey1"
      ],
      "agreedBy": "192.0.2.1",
      "agreedAt": "2021-09-10T19:30:53Z"
    },
    "contactTech": {
      "email": "tech@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Tech",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactBilling": {
      "email": "billing@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Billing",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactAdmin": {
      "email": "admin@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Admin",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactRegistrant": {
      "email": "registrant@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Registrant",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    }
  }
}
{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com",
  "name": "example.com",
  "type": "Microsoft.DomainRegistration/domains",
  "location": "global",
  "tags": {},
  "properties": {
    "authCode": "exampleAuthCode",
    "registrationStatus": "Active",
    "provisioningState": "Succeeded",
    "nameServers": [
      "ns01.ote.domaincontrol.com",
      "ns02.ote.domaincontrol.com"
    ],
    "privacy": false,
    "createdTime": "2021-09-10T19:30:53Z",
    "expirationTime": "2022-09-10T19:30:53Z",
    "autoRenew": true,
    "readyForDnsRecordManagement": true,
    "managedHostNames": [],
    "domainNotRenewableReasons": [
      "ExpirationNotInRenewalTimeRange"
    ],
    "dnsType": "DefaultDomainRegistrarDns",
    "consent": {
      "agreementKeys": [
        "agreementKey1"
      ],
      "agreedBy": "192.0.2.1",
      "agreedAt": "2021-09-10T19:30:53Z"
    },
    "contactTech": {
      "email": "tech@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Tech",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactBilling": {
      "email": "billing@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Billing",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactAdmin": {
      "email": "admin@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Admin",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    },
    "contactRegistrant": {
      "email": "registrant@email.com",
      "fax": "1-245-534-2242",
      "nameFirst": "John",
      "nameLast": "Doe",
      "nameMiddle": "",
      "jobTitle": "Registrant",
      "organization": "Microsoft Inc.",
      "phone": "1-245-534-2242",
      "addressMailing": {
        "address1": "3400 State St",
        "city": "Chicago",
        "state": "IL",
        "country": "United States",
        "postalCode": "67098"
      }
    }
  }
}

Definíciók

Name Description
Address

A tartományregisztráció címadatai.

AzureResourceType

Annak az Azure-erőforrásnak a típusa, amelyhez a gazdagépnév hozzá van rendelve.

Contact

A tartományregisztráció kapcsolattartási adatai. Ha a "Domain Privacy" (Tartomány adatainak védelme) lehetőség nincs kiválasztva, akkor a kapcsolattartási adatok az ICANN-követelményeknek megfelelően nyilvánosan elérhetővé válnak a Whois-címtárakon keresztül.

CustomHostNameDnsRecordType

A DNS-rekord típusa.

DefaultErrorResponse

App Service-hibaválasz.

Details
DnsType

Aktuális DNS-típus

Domain

Egy tartományra vonatkozó információk.

DomainPurchaseConsent

A tartományvásárlási hozzájárulás objektuma, amely a vonatkozó jogi megállapodások elfogadását jelenti.

DomainStatus

Tartományregisztrációs állapot.

Error

Hibamodell.

HostName

A tartományból származtatott gazdagépnév részletei.

HostNameType

A gazdagépnév típusa.

ProvisioningState

Tartománykiépítési állapot.

ResourceNotRenewableReason

A tartomány nem megújítható okai.

Address

A tartományregisztráció címadatai.

Name Típus Description
address1

string

Cím első sora.

address2

string

A Cím második sora. Opcionális.

city

string

A cím városát.

country

string

A cím országa.

postalCode

string

A cím irányítószáma.

state

string

A cím állama vagy tartománya.

AzureResourceType

Annak az Azure-erőforrásnak a típusa, amelyhez a gazdagépnév hozzá van rendelve.

Érték Description
TrafficManager
Website

Contact

A tartományregisztráció kapcsolattartási adatai. Ha a "Domain Privacy" (Tartomány adatainak védelme) lehetőség nincs kiválasztva, akkor a kapcsolattartási adatok az ICANN-követelményeknek megfelelően nyilvánosan elérhetővé válnak a Whois-címtárakon keresztül.

Name Típus Description
addressMailing

Address

Levélcím.

email

string

Email cím.

fax

string

Faxszám.

jobTitle

string

Beosztás.

nameFirst

string

Keresztnév.

nameLast

string

Vezetéknév.

nameMiddle

string

Középső név.

organization

string

A szervezeti partner a tagja.

phone

string

Telefonszám.

CustomHostNameDnsRecordType

A DNS-rekord típusa.

Érték Description
A
CName

DefaultErrorResponse

App Service-hibaválasz.

Name Típus Description
error

Error

Hibamodell.

Details

Name Típus Description
code

string

Szabványosított sztring a hiba programozott azonosításához.

message

string

Részletes hibaleírás és hibakeresési információk.

target

string

Részletes hibaleírás és hibakeresési információk.

DnsType

Aktuális DNS-típus

Érték Description
AzureDns
DefaultDomainRegistrarDns

Domain

Egy tartományra vonatkozó információk.

Name Típus Alapértelmezett érték Description
id

string

Erőforrás-azonosító.

kind

string

Erőforrás típusa. Ha az erőforrás egy alkalmazás, a https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference a természetben támogatott értékek részleteiért tekintse meg.

location

string

Erőforrás helye.

name

string

Erőforrás neve.

properties.authCode

string

properties.autoRenew

boolean

True

true, hogy a tartományt automatikusan meg kell-e újítani; ellenkező esetben false.

properties.consent

DomainPurchaseConsent

Jogi hozzájárulás.

properties.contactAdmin

Contact

Rendszergazdai kapcsolattartó.

properties.contactBilling

Contact

Számlázási kapcsolattartó.

properties.contactRegistrant

Contact

Regisztráló kapcsolattartó.

properties.contactTech

Contact

Műszaki kapcsolattartó.

properties.createdTime

string (date-time)

Tartománylétrehozás időbélyege.

properties.dnsType

DnsType

Aktuális DNS-típus

properties.dnsZoneId

string

Használandó Azure DNS-zóna

properties.domainNotRenewableReasons

ResourceNotRenewableReason[]

A tartomány nem megújítható okai.

properties.expirationTime

string (date-time)

Tartomány lejárati időbélyege.

properties.lastRenewedTime

string (date-time)

Időbélyeg, amikor a tartományt legutóbb megújították.

properties.managedHostNames

HostName[]

A tartományból származó és az Azure-erőforrásokhoz rendelt összes gazdagépnév.

properties.nameServers

string[]

Névkiszolgálók.

properties.privacy

boolean

true, hogy engedélyezve van-e a tartomány adatvédelem; ellenkező esetben false.

properties.provisioningState

ProvisioningState

Tartománykiépítési állapot.

properties.readyForDnsRecordManagement

boolean

true, hogy az Azure hozzárendelheti-e ezt a tartományt az App Service-alkalmazásokhoz; ellenkező esetben false. Ez az érték true lesz, ha a tartományregisztrációs állapot aktív, és az Azure programozott hozzáféréssel rendelkező névkiszolgálókon fut.

properties.registrationStatus

DomainStatus

Tartományregisztrációs állapot.

properties.targetDnsType

DnsType

Cél DNS-típus (migráláshoz használható)

tags

object

Erőforráscímkék.

type

string

Erőforrás típusa.

DomainPurchaseConsent

A tartományvásárlási hozzájárulás objektuma, amely a vonatkozó jogi megállapodások elfogadását jelenti.

Name Típus Description
agreedAt

string (date-time)

Időbélyeg a megállapodások elfogadásakor.

agreedBy

string

Ügyfél IP-címe.

agreementKeys

string[]

A vonatkozó jogi szerződéskulcsok listája. Ez a lista a ListLegalAgreements API-val kérhető le TopLevelDomain erőforrás alatt.

DomainStatus

Tartományregisztrációs állapot.

Érték Description
Active
Awaiting
Cancelled
Confiscated
Disabled
Excluded
Expired
Failed
Held
JsonConverterFailed
Locked
Parked
Pending
Reserved
Reverted
Suspended
Transferred
Unknown
Unlocked
Unparked
Updated

Error

Hibamodell.

Name Típus Description
code

string

Szabványosított sztring a hiba programozott azonosításához.

details

Details[]

Részletes hibák.

innererror

string

További információ a hibakereséshez.

message

string

Részletes hibaleírás és hibakeresési információk.

target

string

Részletes hibaleírás és hibakeresési információk.

HostName

A tartományból származtatott gazdagépnév részletei.

Name Típus Description
azureResourceName

string

Annak az Azure-erőforrásnak a neve, amelyhez a gazdagépnév hozzá van rendelve. Ha egy Traffic Managerhez van rendelve, akkor az lesz a Traffic Manager neve, ellenkező esetben az alkalmazás neve lesz.

azureResourceType

AzureResourceType

Annak az Azure-erőforrásnak a típusa, amelyhez a gazdagépnév hozzá van rendelve.

customHostNameDnsRecordType

CustomHostNameDnsRecordType

A DNS-rekord típusa.

hostNameType

HostNameType

A gazdagépnév típusa.

name

string

A gazdagépnév neve.

siteNames

string[]

Azon alkalmazások listája, amelyekhez a gazdagépnév hozzá van rendelve. Ez a lista csak akkor lesz több alkalmazással, ha a gazdagép neve egy Traffic Managerre mutat.

HostNameType

A gazdagépnév típusa.

Érték Description
Managed
Verified

ProvisioningState

Tartománykiépítési állapot.

Érték Description
Canceled
Deleting
Failed
InProgress
Succeeded

ResourceNotRenewableReason

A tartomány nem megújítható okai.

Érték Description
ExpirationNotInRenewalTimeRange
RegistrationStatusNotSupportedForRenewal
SubscriptionNotActive