Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding AFDX swagger and its examples #11655

Merged
merged 25 commits into from
Dec 1, 2020
5,573 changes: 5,573 additions & 0 deletions specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/afdx.json

Large diffs are not rendered by default.

5,648 changes: 5,648 additions & 0 deletions specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/cdn.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"parameters": {
"api-version": "2020-09-01",
"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/domains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"properties": {
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"properties": {
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"properties": {
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Pending",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"properties": {
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Pending",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1"
},
"responses": {
"200": {
"body": {
"token": "exampleValidationToken"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"parameters": {
"api-version": "2020-09-01",
"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/domains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"properties": {
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert"
}
},
"azureDnsZone": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Approved",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
},
"202": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"properties": {
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert"
}
},
"azureDnsZone": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Approved",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"endpointName": "endpoint1",
"endpoint": {
"tags": {},
"location": "CentralUs",
"properties": {
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled"
}
}
},
"responses": {
"200": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdEndpoints",
"tags": {},
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
},
"201": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdEndpoints",
"tags": {},
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"endpointName": "endpoint1"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"endpointName": "endpoint1"
},
"responses": {
"200": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2020-09-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "Succeeded"
}
}
]
}
}
}
}
Loading