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 |
---|---|---|---|---|
domain
|
path | True |
string pattern: [a-zA-Z0-9][a-zA-Z0-9\.-]+ |
A tartomány neve. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Annak az erőforráscsoportnak a neve, amelyhez az erőforrás tartozik. |
subscription
|
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 |
Jogi hozzájárulás. |
|
properties.contactAdmin | True |
Rendszergazdai kapcsolattartó. |
|
properties.contactBilling | True |
Számlázási kapcsolattartó. |
|
properties.contactRegistrant | True |
Regisztráló kapcsolattartó. |
|
properties.contactTech | True |
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 |
|
|
properties.dnsType |
Aktuális DNS-típus |
||
properties.dnsZoneId |
string |
Használandó Azure DNS-zóna |
|
properties.privacy |
boolean |
|
|
properties.targetDnsType |
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 |
A tartományvásárlás sikeres volt. |
|
202 Accepted |
A tartományvásárlás folyamatban van. |
|
Other Status Codes |
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. |
Azure |
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. |
Custom |
A DNS-rekord típusa. |
Default |
App Service-hibaválasz. |
Details | |
Dns |
Aktuális DNS-típus |
Domain |
Egy tartományra vonatkozó információk. |
Domain |
A tartományvásárlási hozzájárulás objektuma, amely a vonatkozó jogi megállapodások elfogadását jelenti. |
Domain |
Tartományregisztrációs állapot. |
Error |
Hibamodell. |
Host |
A tartományból származtatott gazdagépnév részletei. |
Host |
A gazdagépnév típusa. |
Provisioning |
Tartománykiépítési állapot. |
Resource |
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 |
Levélcím. |
|
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 |
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 |
|
properties.consent |
Jogi hozzájárulás. |
||
properties.contactAdmin |
Rendszergazdai kapcsolattartó. |
||
properties.contactBilling |
Számlázási kapcsolattartó. |
||
properties.contactRegistrant |
Regisztráló kapcsolattartó. |
||
properties.contactTech |
Műszaki kapcsolattartó. |
||
properties.createdTime |
string (date-time) |
Tartománylétrehozás időbélyege. |
|
properties.dnsType |
Aktuális DNS-típus |
||
properties.dnsZoneId |
string |
Használandó Azure DNS-zóna |
|
properties.domainNotRenewableReasons |
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 |
Host |
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 |
|
|
properties.provisioningState |
Tartománykiépítési állapot. |
||
properties.readyForDnsRecordManagement |
boolean |
|
|
properties.registrationStatus |
Tartományregisztrációs állapot. |
||
properties.targetDnsType |
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 |
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 |
Annak az Azure-erőforrásnak a típusa, amelyhez a gazdagépnév hozzá van rendelve. |
|
customHostNameDnsRecordType |
A DNS-rekord típusa. |
|
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 |