Skip to content

Commit ad39d6d

Browse files
authored
update example files (#18418) (#18510)
* update example files * format update * update profile examples to include frontdoorId and originResponseTimeout * update profile and endpoint location to global * address comment * fix sp example * address comments and fix the provisioningState for create examples * fix casing
1 parent cc3e90b commit ad39d6d

33 files changed

+227
-135
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDCustomDomains_Create.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
"responses": {
2222
"200": {
2323
"body": {
24-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
24+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
2525
"name": "domain1",
26-
"type": "Microsoft.Cdn/Profiles/CustomDomains",
26+
"type": "Microsoft.Cdn/profiles/customdomains",
2727
"properties": {
28+
"profileName": "profile1",
2829
"hostName": "www.contoso.com",
2930
"tlsSettings": {
3031
"certificateType": "ManagedCertificate",
@@ -36,22 +37,26 @@
3637
"azureDnsZone": {
3738
"id": ""
3839
},
40+
"preValidatedCustomDomainResourceId": {
41+
"id": ""
42+
},
3943
"validationProperties": {
4044
"validationToken": "",
4145
"expirationDate": ""
4246
},
4347
"domainValidationState": "Submitting",
44-
"provisioningState": "Updating",
48+
"provisioningState": "Succeeded",
4549
"deploymentStatus": "NotStarted"
4650
}
4751
}
4852
},
4953
"201": {
5054
"body": {
51-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
55+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
5256
"name": "domain1",
53-
"type": "Microsoft.Cdn/Profiles/CustomDomains",
57+
"type": "Microsoft.Cdn/profiles/customdomains",
5458
"properties": {
59+
"profileName": "profile1",
5560
"hostName": "www.contoso.com",
5661
"tlsSettings": {
5762
"certificateType": "ManagedCertificate",
@@ -63,22 +68,26 @@
6368
"azureDnsZone": {
6469
"id": ""
6570
},
71+
"preValidatedCustomDomainResourceId": {
72+
"id": ""
73+
},
6674
"validationProperties": {
6775
"validationToken": "",
6876
"expirationDate": ""
6977
},
7078
"domainValidationState": "Submitting",
71-
"provisioningState": "Updating",
79+
"provisioningState": "Succeeded",
7280
"deploymentStatus": "NotStarted"
7381
}
7482
}
7583
},
7684
"202": {
7785
"body": {
78-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
86+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
7987
"name": "domain1",
80-
"type": "Microsoft.Cdn/Profiles/CustomDomains",
88+
"type": "Microsoft.Cdn/profiles/customdomains",
8189
"properties": {
90+
"profileName": "profile1",
8291
"hostName": "www.contoso.com",
8392
"tlsSettings": {
8493
"certificateType": "ManagedCertificate",
@@ -90,12 +99,15 @@
9099
"azureDnsZone": {
91100
"id": ""
92101
},
102+
"preValidatedCustomDomainResourceId": {
103+
"id": ""
104+
},
93105
"validationProperties": {
94106
"validationToken": "",
95107
"expirationDate": ""
96108
},
97109
"domainValidationState": "Submitting",
98-
"provisioningState": "Updating",
110+
"provisioningState": "Creating",
99111
"deploymentStatus": "NotStarted"
100112
}
101113
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDCustomDomains_Get.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
"responses": {
1010
"200": {
1111
"body": {
12-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
12+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
1313
"name": "domain1",
14-
"type": "Microsoft.Cdn/Profiles/CustomDomains",
14+
"type": "Microsoft.Cdn/profiles/customdomains",
1515
"properties": {
16+
"profileName": "profile1",
1617
"hostName": "www.contoso.com",
1718
"tlsSettings": {
1819
"certificateType": "ManagedCertificate",
@@ -24,6 +25,9 @@
2425
"azureDnsZone": {
2526
"id": ""
2627
},
28+
"preValidatedCustomDomainResourceId": {
29+
"id": ""
30+
},
2731
"validationProperties": {
2832
"validationToken": "8c9912db-c615-4eeb-8465",
2933
"expirationDate": "2009-06-15T13:45:43.0000000Z"

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDCustomDomains_ListByProfile.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
"body": {
1111
"value": [
1212
{
13-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
13+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
1414
"name": "domain1",
15-
"type": "Microsoft.Cdn/Profiles/CustomDomains",
15+
"type": "Microsoft.Cdn/profiles/customdomains",
1616
"properties": {
17+
"profileName": "profile1",
1718
"hostName": "www.contoso.com",
1819
"tlsSettings": {
1920
"certificateType": "ManagedCertificate",
@@ -25,6 +26,9 @@
2526
"azureDnsZone": {
2627
"id": ""
2728
},
29+
"preValidatedCustomDomainResourceId": {
30+
"id": ""
31+
},
2832
"validationProperties": {
2933
"validationToken": "8c9912db-c615-4eeb-8465",
3034
"expirationDate": "2009-06-15T13:45:43.0000000Z"

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDCustomDomains_Update.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"responses": {
2121
"200": {
2222
"body": {
23-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
23+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
2424
"name": "domain1",
25-
"type": "Microsoft.Cdn/Profiles/CustomDomains",
25+
"type": "Microsoft.Cdn/profiles/customdomains",
2626
"properties": {
27+
"profileName": "profile1",
2728
"hostName": "www.contoso.com",
2829
"tlsSettings": {
2930
"certificateType": "ManagedCertificate",
@@ -35,6 +36,9 @@
3536
"azureDnsZone": {
3637
"id": ""
3738
},
39+
"preValidatedCustomDomainResourceId": {
40+
"id": ""
41+
},
3842
"validationProperties": {
3943
"validationToken": "8c9912db-c615-4eeb-8465",
4044
"expirationDate": "2009-06-15T13:45:43.0000000Z"
@@ -50,10 +54,11 @@
5054
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2021-06-01"
5155
},
5256
"body": {
53-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
57+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
5458
"name": "domain1",
55-
"type": "Microsoft.Cdn/Profiles/CustomDomains",
59+
"type": "Microsoft.Cdn/profiles/customdomains",
5660
"properties": {
61+
"profileName": "profile1",
5762
"hostName": "www.contoso.com",
5863
"tlsSettings": {
5964
"certificateType": "ManagedCertificate",
@@ -65,6 +70,9 @@
6570
"azureDnsZone": {
6671
"id": ""
6772
},
73+
"preValidatedCustomDomainResourceId": {
74+
"id": ""
75+
},
6876
"validationProperties": {
6977
"validationToken": "8c9912db-c615-4eeb-8465",
7078
"expirationDate": "2009-06-15T13:45:43.0000000Z"

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDEndpoints_Create.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"endpointName": "endpoint1",
88
"endpoint": {
99
"tags": {},
10-
"location": "CentralUs",
10+
"location": "global",
1111
"properties": {
1212
"enabledState": "Enabled",
1313
"autoGeneratedDomainNameLabelScope": "TenantReuse"
@@ -18,12 +18,12 @@
1818
"200": {
1919
"body": {
2020
"name": "endpoint1",
21-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
22-
"type": "Microsoft.Cdn/profiles/afdEndpoints",
21+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
22+
"type": "Microsoft.Cdn/profiles/afdendpoints",
2323
"tags": {},
24-
"location": "CentralUs",
24+
"location": "global",
2525
"properties": {
26-
"hostName": "endpoint1.azureedge.net",
26+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
2727
"enabledState": "Enabled",
2828
"provisioningState": "Succeeded",
2929
"deploymentStatus": "NotStarted",
@@ -34,14 +34,14 @@
3434
"201": {
3535
"body": {
3636
"name": "endpoint1",
37-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
38-
"type": "Microsoft.Cdn/profiles/afdEndpoints",
37+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
38+
"type": "Microsoft.Cdn/profiles/afdendpoints",
3939
"tags": {},
40-
"location": "CentralUs",
40+
"location": "global",
4141
"properties": {
42-
"hostName": "endpoint1.azureedge.net",
42+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
4343
"enabledState": "Enabled",
44-
"provisioningState": "Creating",
44+
"provisioningState": "Succeeded",
4545
"deploymentStatus": "NotStarted",
4646
"autoGeneratedDomainNameLabelScope": "TenantReuse"
4747
}
@@ -50,12 +50,12 @@
5050
"202": {
5151
"body": {
5252
"name": "endpoint1",
53-
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
54-
"type": "Microsoft.Cdn/profiles/afdEndpoints",
53+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
54+
"type": "Microsoft.Cdn/profiles/afdendpoints",
5555
"tags": {},
56-
"location": "CentralUs",
56+
"location": "global",
5757
"properties": {
58-
"hostName": "endpoint1.azureedge.net",
58+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
5959
"enabledState": "Enabled",
6060
"provisioningState": "Creating",
6161
"deploymentStatus": "NotStarted",

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDEndpoints_Get.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
1414
"type": "Microsoft.Cdn/profiles/afdendpoints",
1515
"tags": {},
16-
"location": "CentralUs",
16+
"location": "global",
1717
"properties": {
18-
"hostName": "endpoint1.azureedge.net",
18+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
1919
"enabledState": "Enabled",
2020
"provisioningState": "Succeeded",
21-
"deploymentStatus": "Succeeded",
21+
"deploymentStatus": "NotStarted",
2222
"autoGeneratedDomainNameLabelScope": "TenantReuse"
2323
}
2424
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDEndpoints_ListByProfile.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
1515
"type": "Microsoft.Cdn/profiles/afdendpoints",
1616
"tags": {},
17-
"location": "CentralUs",
17+
"location": "global",
1818
"properties": {
19-
"hostName": "endpoint1.azureedge.net",
19+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
2020
"enabledState": "Enabled",
2121
"provisioningState": "Succeeded",
22-
"deploymentStatus": "Succeeded",
22+
"deploymentStatus": "NotStarted",
2323
"autoGeneratedDomainNameLabelScope": "TenantReuse"
2424
}
2525
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDEndpoints_PurgeContent.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"/folder1"
1111
],
1212
"domains": [
13-
"endpoint1.azureedge.net"
13+
"endpoint1-abcdefghijklmnop.z01.azurefd.net"
1414
]
1515
}
1616
},

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDEndpoints_Update.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
2020
"type": "Microsoft.Cdn/profiles/afdendpoints",
2121
"tags": {},
22-
"location": "WestCentralUs",
22+
"location": "global",
2323
"properties": {
24-
"hostName": "endpoint1.azureedge.net",
24+
"hostName": "endpoint1-ezh7ddcmguaeajfu.z01.azureedge.net",
2525
"enabledState": "Enabled",
2626
"provisioningState": "Succeeded",
27-
"deploymentStatus": "InProgress"
27+
"deploymentStatus": "NotStarted",
28+
"autoGeneratedDomainNameLabelScope": "TenantReuse"
2829
}
2930
}
3031
},
@@ -37,12 +38,13 @@
3738
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
3839
"type": "Microsoft.Cdn/profiles/afdendpoints",
3940
"tags": {},
40-
"location": "WestCentralUs",
41+
"location": "global",
4142
"properties": {
42-
"hostName": "endpoint1.azureedge.net",
43+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
4344
"enabledState": "Enabled",
4445
"provisioningState": "Updating",
45-
"deploymentStatus": "NotStarted"
46+
"deploymentStatus": "NotStarted",
47+
"autoGeneratedDomainNameLabelScope": "TenantReuse"
4648
}
4749
}
4850
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/examples/AFDOriginGroups_Create.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"probeIntervalInSeconds": 10
8888
},
8989
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5,
90-
"provisioningState": "Succeeded",
90+
"provisioningState": "Creating",
9191
"deploymentStatus": "NotStarted"
9292
}
9393
}

0 commit comments

Comments
 (0)