Skip to content

Commit 38ef3fb

Browse files
authored
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
1 parent 049107d commit 38ef3fb

File tree

115 files changed

+20895
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+20895
-12
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/afdx.json

Lines changed: 5948 additions & 0 deletions
Large diffs are not rendered by default.

specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json

Lines changed: 6922 additions & 0 deletions
Large diffs are not rendered by default.

specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdnwebapplicationfirewall.json

Lines changed: 967 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "RG",
6+
"profileName": "profile1",
7+
"customDomainName": "domain1",
8+
"customDomain": {
9+
"properties": {
10+
"hostName": "www.someDomain.net",
11+
"tlsSettings": {
12+
"certificateType": "ManagedCertificate",
13+
"minimumTlsVersion": "TLS12"
14+
},
15+
"azureDnsZone": {
16+
"id": ""
17+
}
18+
}
19+
}
20+
},
21+
"responses": {
22+
"200": {
23+
"body": {
24+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
25+
"name": "domain1",
26+
"type": "Microsoft.Cdn/profiles/customdomains",
27+
"properties": {
28+
"profileName": "profile1",
29+
"hostName": "www.contoso.com",
30+
"tlsSettings": {
31+
"certificateType": "ManagedCertificate",
32+
"minimumTlsVersion": "TLS12",
33+
"secret": {
34+
"id": ""
35+
}
36+
},
37+
"azureDnsZone": {
38+
"id": ""
39+
},
40+
"preValidatedCustomDomainResourceId": {
41+
"id": ""
42+
},
43+
"validationProperties": {
44+
"validationToken": "",
45+
"expirationDate": ""
46+
},
47+
"domainValidationState": "Submitting",
48+
"provisioningState": "Succeeded",
49+
"deploymentStatus": "NotStarted"
50+
}
51+
}
52+
},
53+
"201": {
54+
"body": {
55+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
56+
"name": "domain1",
57+
"type": "Microsoft.Cdn/profiles/customdomains",
58+
"properties": {
59+
"profileName": "profile1",
60+
"hostName": "www.contoso.com",
61+
"tlsSettings": {
62+
"certificateType": "ManagedCertificate",
63+
"minimumTlsVersion": "TLS12",
64+
"secret": {
65+
"id": ""
66+
}
67+
},
68+
"azureDnsZone": {
69+
"id": ""
70+
},
71+
"preValidatedCustomDomainResourceId": {
72+
"id": ""
73+
},
74+
"validationProperties": {
75+
"validationToken": "",
76+
"expirationDate": ""
77+
},
78+
"domainValidationState": "Submitting",
79+
"provisioningState": "Succeeded",
80+
"deploymentStatus": "NotStarted"
81+
}
82+
}
83+
},
84+
"202": {
85+
"body": {
86+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
87+
"name": "domain1",
88+
"type": "Microsoft.Cdn/profiles/customdomains",
89+
"properties": {
90+
"profileName": "profile1",
91+
"hostName": "www.contoso.com",
92+
"tlsSettings": {
93+
"certificateType": "ManagedCertificate",
94+
"minimumTlsVersion": "TLS12",
95+
"secret": {
96+
"id": ""
97+
}
98+
},
99+
"azureDnsZone": {
100+
"id": ""
101+
},
102+
"preValidatedCustomDomainResourceId": {
103+
"id": ""
104+
},
105+
"validationProperties": {
106+
"validationToken": "",
107+
"expirationDate": ""
108+
},
109+
"domainValidationState": "Submitting",
110+
"provisioningState": "Creating",
111+
"deploymentStatus": "NotStarted"
112+
}
113+
}
114+
}
115+
}
116+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "RG",
6+
"profileName": "profile1",
7+
"customDomainName": "domain1"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "RG",
6+
"profileName": "profile1",
7+
"customDomainName": "domain1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
13+
"name": "domain1",
14+
"type": "Microsoft.Cdn/profiles/customdomains",
15+
"properties": {
16+
"profileName": "profile1",
17+
"hostName": "www.contoso.com",
18+
"tlsSettings": {
19+
"certificateType": "ManagedCertificate",
20+
"minimumTlsVersion": "TLS12",
21+
"secret": {
22+
"id": ""
23+
}
24+
},
25+
"azureDnsZone": {
26+
"id": ""
27+
},
28+
"preValidatedCustomDomainResourceId": {
29+
"id": ""
30+
},
31+
"validationProperties": {
32+
"validationToken": "8c9912db-c615-4eeb-8465",
33+
"expirationDate": "2009-06-15T13:45:43.0000000Z"
34+
},
35+
"domainValidationState": "Pending",
36+
"provisioningState": "Updating",
37+
"deploymentStatus": "NotStarted"
38+
}
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "RG",
6+
"profileName": "profile1"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
14+
"name": "domain1",
15+
"type": "Microsoft.Cdn/profiles/customdomains",
16+
"properties": {
17+
"profileName": "profile1",
18+
"hostName": "www.contoso.com",
19+
"tlsSettings": {
20+
"certificateType": "ManagedCertificate",
21+
"minimumTlsVersion": "TLS12",
22+
"secret": {
23+
"id": ""
24+
}
25+
},
26+
"azureDnsZone": {
27+
"id": ""
28+
},
29+
"preValidatedCustomDomainResourceId": {
30+
"id": ""
31+
},
32+
"validationProperties": {
33+
"validationToken": "8c9912db-c615-4eeb-8465",
34+
"expirationDate": "2009-06-15T13:45:43.0000000Z"
35+
},
36+
"domainValidationState": "Pending",
37+
"provisioningState": "Updating",
38+
"deploymentStatus": "NotStarted"
39+
}
40+
}
41+
]
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "RG",
6+
"profileName": "profile1",
7+
"customDomainName": "domain1"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "RG",
6+
"profileName": "profile1",
7+
"customDomainName": "domain1",
8+
"customDomainUpdateProperties": {
9+
"properties": {
10+
"tlsSettings": {
11+
"certificateType": "CustomerCertificate",
12+
"minimumTlsVersion": "TLS12"
13+
},
14+
"azureDnsZone": {
15+
"id": ""
16+
}
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
24+
"name": "domain1",
25+
"type": "Microsoft.Cdn/profiles/customdomains",
26+
"properties": {
27+
"profileName": "profile1",
28+
"hostName": "www.contoso.com",
29+
"tlsSettings": {
30+
"certificateType": "ManagedCertificate",
31+
"minimumTlsVersion": "TLS12",
32+
"secret": {
33+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert"
34+
}
35+
},
36+
"azureDnsZone": {
37+
"id": ""
38+
},
39+
"preValidatedCustomDomainResourceId": {
40+
"id": ""
41+
},
42+
"validationProperties": {
43+
"validationToken": "8c9912db-c615-4eeb-8465",
44+
"expirationDate": "2009-06-15T13:45:43.0000000Z"
45+
},
46+
"domainValidationState": "Approved",
47+
"provisioningState": "Updating",
48+
"deploymentStatus": "NotStarted"
49+
}
50+
}
51+
},
52+
"202": {
53+
"headers": {
54+
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2022-05-01-preview"
55+
},
56+
"body": {
57+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
58+
"name": "domain1",
59+
"type": "Microsoft.Cdn/profiles/customdomains",
60+
"properties": {
61+
"profileName": "profile1",
62+
"hostName": "www.contoso.com",
63+
"tlsSettings": {
64+
"certificateType": "ManagedCertificate",
65+
"minimumTlsVersion": "TLS12",
66+
"secret": {
67+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert"
68+
}
69+
},
70+
"azureDnsZone": {
71+
"id": ""
72+
},
73+
"preValidatedCustomDomainResourceId": {
74+
"id": ""
75+
},
76+
"validationProperties": {
77+
"validationToken": "8c9912db-c615-4eeb-8465",
78+
"expirationDate": "2009-06-15T13:45:43.0000000Z"
79+
},
80+
"domainValidationState": "Approved",
81+
"provisioningState": "Updating",
82+
"deploymentStatus": "NotStarted"
83+
}
84+
}
85+
}
86+
}
87+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-05-01-preview",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "RG",
6+
"profileName": "profile1",
7+
"endpointName": "endpoint1",
8+
"endpoint": {
9+
"tags": {},
10+
"location": "global",
11+
"properties": {
12+
"enabledState": "Enabled",
13+
"autoGeneratedDomainNameLabelScope": "TenantReuse"
14+
}
15+
}
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"name": "endpoint1",
21+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
22+
"type": "Microsoft.Cdn/profiles/afdendpoints",
23+
"tags": {},
24+
"location": "global",
25+
"properties": {
26+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
27+
"enabledState": "Enabled",
28+
"provisioningState": "Succeeded",
29+
"deploymentStatus": "NotStarted",
30+
"autoGeneratedDomainNameLabelScope": "TenantReuse"
31+
}
32+
}
33+
},
34+
"201": {
35+
"body": {
36+
"name": "endpoint1",
37+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
38+
"type": "Microsoft.Cdn/profiles/afdendpoints",
39+
"tags": {},
40+
"location": "global",
41+
"properties": {
42+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
43+
"enabledState": "Enabled",
44+
"provisioningState": "Succeeded",
45+
"deploymentStatus": "NotStarted",
46+
"autoGeneratedDomainNameLabelScope": "TenantReuse"
47+
}
48+
}
49+
},
50+
"202": {
51+
"body": {
52+
"name": "endpoint1",
53+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
54+
"type": "Microsoft.Cdn/profiles/afdendpoints",
55+
"tags": {},
56+
"location": "global",
57+
"properties": {
58+
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
59+
"enabledState": "Enabled",
60+
"provisioningState": "Creating",
61+
"deploymentStatus": "NotStarted",
62+
"autoGeneratedDomainNameLabelScope": "TenantReuse"
63+
}
64+
}
65+
}
66+
}
67+
}

0 commit comments

Comments
 (0)