-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CDN 2022 05 01 preview version (#18760)
* Adds base for updating Microsoft.Cdn from version stable/2021-06-01 to version 2022-05-01-preview * Updates readme * Updates API version in new specs and examples * Afd Migration Swagger updates * Addressing feedback * Fix validation errors * update sku type * Fixing some validation failures * Fix more validation issues * Fix alignment * Copied from stable version * Update api response * Update examples * update from older version * Copy from older version * Fix swagger lint * More swagger lint fixes
- Loading branch information
Showing
115 changed files
with
20,895 additions
and
12 deletions.
There are no files selected for viewing
5,948 changes: 5,948 additions & 0 deletions
5,948
specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/afdx.json
Large diffs are not rendered by default.
Oops, something went wrong.
6,922 changes: 6,922 additions & 0 deletions
6,922
specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json
Large diffs are not rendered by default.
Oops, something went wrong.
967 changes: 967 additions & 0 deletions
967
.../resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdnwebapplicationfirewall.json
Large diffs are not rendered by default.
Oops, something went wrong.
116 changes: 116 additions & 0 deletions
116
...ce-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/AFDCustomDomains_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "RG", | ||
"profileName": "profile1", | ||
"customDomainName": "domain1", | ||
"customDomain": { | ||
"properties": { | ||
"hostName": "www.someDomain.net", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12" | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1", | ||
"name": "domain1", | ||
"type": "Microsoft.Cdn/profiles/customdomains", | ||
"properties": { | ||
"profileName": "profile1", | ||
"hostName": "www.contoso.com", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12", | ||
"secret": { | ||
"id": "" | ||
} | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
}, | ||
"preValidatedCustomDomainResourceId": { | ||
"id": "" | ||
}, | ||
"validationProperties": { | ||
"validationToken": "", | ||
"expirationDate": "" | ||
}, | ||
"domainValidationState": "Submitting", | ||
"provisioningState": "Succeeded", | ||
"deploymentStatus": "NotStarted" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1", | ||
"name": "domain1", | ||
"type": "Microsoft.Cdn/profiles/customdomains", | ||
"properties": { | ||
"profileName": "profile1", | ||
"hostName": "www.contoso.com", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12", | ||
"secret": { | ||
"id": "" | ||
} | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
}, | ||
"preValidatedCustomDomainResourceId": { | ||
"id": "" | ||
}, | ||
"validationProperties": { | ||
"validationToken": "", | ||
"expirationDate": "" | ||
}, | ||
"domainValidationState": "Submitting", | ||
"provisioningState": "Succeeded", | ||
"deploymentStatus": "NotStarted" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1", | ||
"name": "domain1", | ||
"type": "Microsoft.Cdn/profiles/customdomains", | ||
"properties": { | ||
"profileName": "profile1", | ||
"hostName": "www.contoso.com", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12", | ||
"secret": { | ||
"id": "" | ||
} | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
}, | ||
"preValidatedCustomDomainResourceId": { | ||
"id": "" | ||
}, | ||
"validationProperties": { | ||
"validationToken": "", | ||
"expirationDate": "" | ||
}, | ||
"domainValidationState": "Submitting", | ||
"provisioningState": "Creating", | ||
"deploymentStatus": "NotStarted" | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ce-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/AFDCustomDomains_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "RG", | ||
"profileName": "profile1", | ||
"customDomainName": "domain1" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...ource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/AFDCustomDomains_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "RG", | ||
"profileName": "profile1", | ||
"customDomainName": "domain1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1", | ||
"name": "domain1", | ||
"type": "Microsoft.Cdn/profiles/customdomains", | ||
"properties": { | ||
"profileName": "profile1", | ||
"hostName": "www.contoso.com", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12", | ||
"secret": { | ||
"id": "" | ||
} | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
}, | ||
"preValidatedCustomDomainResourceId": { | ||
"id": "" | ||
}, | ||
"validationProperties": { | ||
"validationToken": "8c9912db-c615-4eeb-8465", | ||
"expirationDate": "2009-06-15T13:45:43.0000000Z" | ||
}, | ||
"domainValidationState": "Pending", | ||
"provisioningState": "Updating", | ||
"deploymentStatus": "NotStarted" | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...ger/Microsoft.Cdn/preview/2022-05-01-preview/examples/AFDCustomDomains_ListByProfile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "RG", | ||
"profileName": "profile1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1", | ||
"name": "domain1", | ||
"type": "Microsoft.Cdn/profiles/customdomains", | ||
"properties": { | ||
"profileName": "profile1", | ||
"hostName": "www.contoso.com", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12", | ||
"secret": { | ||
"id": "" | ||
} | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
}, | ||
"preValidatedCustomDomainResourceId": { | ||
"id": "" | ||
}, | ||
"validationProperties": { | ||
"validationToken": "8c9912db-c615-4eeb-8465", | ||
"expirationDate": "2009-06-15T13:45:43.0000000Z" | ||
}, | ||
"domainValidationState": "Pending", | ||
"provisioningState": "Updating", | ||
"deploymentStatus": "NotStarted" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...soft.Cdn/preview/2022-05-01-preview/examples/AFDCustomDomains_RefreshValidationToken.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "RG", | ||
"profileName": "profile1", | ||
"customDomainName": "domain1" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...ce-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/AFDCustomDomains_Update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "RG", | ||
"profileName": "profile1", | ||
"customDomainName": "domain1", | ||
"customDomainUpdateProperties": { | ||
"properties": { | ||
"tlsSettings": { | ||
"certificateType": "CustomerCertificate", | ||
"minimumTlsVersion": "TLS12" | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1", | ||
"name": "domain1", | ||
"type": "Microsoft.Cdn/profiles/customdomains", | ||
"properties": { | ||
"profileName": "profile1", | ||
"hostName": "www.contoso.com", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12", | ||
"secret": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert" | ||
} | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
}, | ||
"preValidatedCustomDomainResourceId": { | ||
"id": "" | ||
}, | ||
"validationProperties": { | ||
"validationToken": "8c9912db-c615-4eeb-8465", | ||
"expirationDate": "2009-06-15T13:45:43.0000000Z" | ||
}, | ||
"domainValidationState": "Approved", | ||
"provisioningState": "Updating", | ||
"deploymentStatus": "NotStarted" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2022-05-01-preview" | ||
}, | ||
"body": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1", | ||
"name": "domain1", | ||
"type": "Microsoft.Cdn/profiles/customdomains", | ||
"properties": { | ||
"profileName": "profile1", | ||
"hostName": "www.contoso.com", | ||
"tlsSettings": { | ||
"certificateType": "ManagedCertificate", | ||
"minimumTlsVersion": "TLS12", | ||
"secret": { | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert" | ||
} | ||
}, | ||
"azureDnsZone": { | ||
"id": "" | ||
}, | ||
"preValidatedCustomDomainResourceId": { | ||
"id": "" | ||
}, | ||
"validationProperties": { | ||
"validationToken": "8c9912db-c615-4eeb-8465", | ||
"expirationDate": "2009-06-15T13:45:43.0000000Z" | ||
}, | ||
"domainValidationState": "Approved", | ||
"provisioningState": "Updating", | ||
"deploymentStatus": "NotStarted" | ||
} | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...source-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/AFDEndpoints_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "RG", | ||
"profileName": "profile1", | ||
"endpointName": "endpoint1", | ||
"endpoint": { | ||
"tags": {}, | ||
"location": "global", | ||
"properties": { | ||
"enabledState": "Enabled", | ||
"autoGeneratedDomainNameLabelScope": "TenantReuse" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "endpoint1", | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1", | ||
"type": "Microsoft.Cdn/profiles/afdendpoints", | ||
"tags": {}, | ||
"location": "global", | ||
"properties": { | ||
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net", | ||
"enabledState": "Enabled", | ||
"provisioningState": "Succeeded", | ||
"deploymentStatus": "NotStarted", | ||
"autoGeneratedDomainNameLabelScope": "TenantReuse" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "endpoint1", | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1", | ||
"type": "Microsoft.Cdn/profiles/afdendpoints", | ||
"tags": {}, | ||
"location": "global", | ||
"properties": { | ||
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net", | ||
"enabledState": "Enabled", | ||
"provisioningState": "Succeeded", | ||
"deploymentStatus": "NotStarted", | ||
"autoGeneratedDomainNameLabelScope": "TenantReuse" | ||
} | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"name": "endpoint1", | ||
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1", | ||
"type": "Microsoft.Cdn/profiles/afdendpoints", | ||
"tags": {}, | ||
"location": "global", | ||
"properties": { | ||
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net", | ||
"enabledState": "Enabled", | ||
"provisioningState": "Creating", | ||
"deploymentStatus": "NotStarted", | ||
"autoGeneratedDomainNameLabelScope": "TenantReuse" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.