Skip to content

Commit

Permalink
update example files (#18418) (#18510)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yunheMsft authored Apr 6, 2022
1 parent cc3e90b commit ad39d6d
Show file tree
Hide file tree
Showing 33 changed files with 227 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
Expand All @@ -36,22 +37,26 @@
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Updating",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
Expand All @@ -63,22 +68,26 @@
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Updating",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
},
"202": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
Expand All @@ -90,12 +99,15 @@
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Updating",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
Expand All @@ -24,6 +25,9 @@
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"body": {
"value": [
{
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
Expand All @@ -25,6 +26,9 @@
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
Expand All @@ -35,6 +36,9 @@
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
Expand All @@ -50,10 +54,11 @@
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2021-06-01"
},
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
Expand All @@ -65,6 +70,9 @@
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"endpointName": "endpoint1",
"endpoint": {
"tags": {},
"location": "CentralUs",
"location": "global",
"properties": {
"enabledState": "Enabled",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
Expand All @@ -18,12 +18,12 @@
"200": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdEndpoints",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "CentralUs",
"location": "global",
"properties": {
"hostName": "endpoint1.azureedge.net",
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted",
Expand All @@ -34,14 +34,14 @@
"201": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdEndpoints",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "CentralUs",
"location": "global",
"properties": {
"hostName": "endpoint1.azureedge.net",
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Creating",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
Expand All @@ -50,12 +50,12 @@
"202": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdEndpoints",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "CentralUs",
"location": "global",
"properties": {
"hostName": "endpoint1.azureedge.net",
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "CentralUs",
"location": "global",
"properties": {
"hostName": "endpoint1.azureedge.net",
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "Succeeded",
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "CentralUs",
"location": "global",
"properties": {
"hostName": "endpoint1.azureedge.net",
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "Succeeded",
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"/folder1"
],
"domains": [
"endpoint1.azureedge.net"
"endpoint1-abcdefghijklmnop.z01.azurefd.net"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "WestCentralUs",
"location": "global",
"properties": {
"hostName": "endpoint1.azureedge.net",
"hostName": "endpoint1-ezh7ddcmguaeajfu.z01.azureedge.net",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "InProgress"
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
},
Expand All @@ -37,12 +38,13 @@
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "WestCentralUs",
"location": "global",
"properties": {
"hostName": "endpoint1.azureedge.net",
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"probeIntervalInSeconds": 10
},
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5,
"provisioningState": "Succeeded",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"probeIntervalInSeconds": 10
},
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5,
"provisioningState": "Succeeded",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"weight": null,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
"deploymentStatus": "NotStarted",
"originGroupName": "origingroup1",
"sharedPrivateLinkResource": null,
"enforceCertificateNameCheck": true
}
}
},
Expand All @@ -49,7 +52,10 @@
"weight": null,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
"deploymentStatus": "NotStarted",
"originGroupName": "origingroup1",
"sharedPrivateLinkResource": null,
"enforceCertificateNameCheck": true
}
}
},
Expand All @@ -66,8 +72,11 @@
"priority": null,
"weight": null,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
"provisioningState": "Creating",
"deploymentStatus": "NotStarted",
"originGroupName": "origingroup1",
"sharedPrivateLinkResource": null,
"enforceCertificateNameCheck": true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"weight": null,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
"deploymentStatus": "NotStarted",
"originGroupName": "origingroup1",
"sharedPrivateLinkResource": null,
"enforceCertificateNameCheck": true
}
}
}
Expand Down
Loading

0 comments on commit ad39d6d

Please sign in to comment.