Skip to content

Commit

Permalink
Add certificate listHostnameBindingsOfCertificate
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinsID committed Sep 24, 2021
1 parent 4f70ac2 commit 7a88115
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,7 @@
"properties": {
"$ref": "#/definitions/AppServiceCertificate",
"description": "Core resource properties",
"type": "object",
"x-ms-client-flatten": true
}
}
Expand All @@ -1420,6 +1421,7 @@
"properties": {
"$ref": "#/definitions/AppServiceCertificate",
"description": "Core resource properties",
"type": "object",
"x-ms-client-flatten": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,55 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}/hostNameBindings": {
"get": {
"tags": [
"Certificates"
],
"summary": "Get a certificate.",
"operationId": "Certificates_ListHostnameBindings",
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
},
{
"name": "name",
"in": "path",
"description": "Name of the certificate.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/IdentifierCollection"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List hostname bindings using certificate": {
"$ref": "./examples/ListHostnameBindingsOfCertificate.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "contosoRG",
"name": "contosoCertificate",
"api-version": "2021-02-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": "example.com",
"siteName": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoRG/providers/Microsoft.Web/sites/contosoSite1",
"domainId": null,
"sslState": "SniEnabled",
"thumbprint": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"name": "www.example.com",
"siteName": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoRG/providers/Microsoft.Web/sites/contosoSite2",
"domainId": null,
"sslState": "IpSslEnabled",
"thumbprint": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"name": "test.example.com",
"siteName": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoRG/providers/Microsoft.Web/sites/contosoSite3",
"domainId": null,
"sslState": "SniEnabled",
"thumbprint": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
],
"nextLink": null,
"id": null
}
}
}
}

0 comments on commit 7a88115

Please sign in to comment.