Skip to content

Commit

Permalink
Fix lro in disable and enable cdn https (#19180)
Browse files Browse the repository at this point in the history
* Fix lro in disable and enable cdn https

* Update the examples

* Update the examples

* Update the examples

* Update the examples

Co-authored-by: Chenglong Liu <[email protected]>
  • Loading branch information
2 people authored and gargankit-microsoft committed May 26, 2022
1 parent 3792ffe commit 344cbb8
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2108,7 +2108,10 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/CustomDomain"
}
},
"202": {
"description": "Accepted and the operation will complete asynchronously.",
Expand All @@ -2122,7 +2125,8 @@
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps": {
Expand Down Expand Up @@ -2183,7 +2187,10 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/CustomDomain"
}
},
"202": {
"description": "Accepted and the operation will complete asynchronously.",
Expand All @@ -2197,7 +2204,8 @@
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"x-ms-long-running-operation": true
}
},
"/providers/Microsoft.Cdn/checkNameAvailability": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,25 @@
"customDomainName": "www-someDomain-net"
},
"responses": {
"200": {},
"200": {
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/customdomains",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active",
"hostName": "www.someDomain.net",
"customHttpsProvisioningState": "Disabled",
"customHttpsProvisioningSubstate": "CertificateDeleted",
"validationData": null
}
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2021-06-01"
},
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,25 @@
}
},
"responses": {
"200": {},
"200": {
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/customdomains",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active",
"hostName": "www.someDomain.net",
"customHttpsProvisioningState": "Enabled",
"customHttpsProvisioningSubstate": "CertificateDeployed",
"validationData": "validationdata"
}
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2021-06-01"
},
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,25 @@
}
},
"responses": {
"200": {},
"200": {
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/customdomains",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active",
"hostName": "www.someDomain.net",
"customHttpsProvisioningState": "Enabled",
"customHttpsProvisioningSubstate": "CertificateDeployed",
"validationData": "validationdata"
}
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2021-06-01"
},
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/customdomains/www-someDomain-net",
Expand Down

0 comments on commit 344cbb8

Please sign in to comment.