Skip to content

Commit

Permalink
Add Cert and Domain Registration APIs. Fix publishingcredentialpolici… (
Browse files Browse the repository at this point in the history
#14738)

* Add Cert and Domain Registration APIs. Fix publishingcredentialpolicies collection API response. Add networkconfig API verbs for sites and slots

* Fix examples

* Fix issue R4037

* Fix lintDiff issues

* Fix more issues

Co-authored-by: Naveed Aziz <naveed.aziz@gmail.com>
  • Loading branch information
naveedaz and navyaziz authored Jun 10, 2021
1 parent 88b07b6 commit d1361d0
Show file tree
Hide file tree
Showing 29 changed files with 5,132 additions and 166 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
{
"swagger": "2.0",
"info": {
"version": "2021-01-15",
"title": "CertificateOrdersDiagnostics API Client"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors": {
"get": {
"tags": [
"CertificateOrdersDiagnostics"
],
"summary": "Microsoft.CertificateRegistration to get the list of detectors for this RP.",
"description": "Description for Microsoft.CertificateRegistration to get the list of detectors for this RP.",
"operationId": "CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse",
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
},
{
"name": "certificateOrderName",
"in": "path",
"description": "The certificate order name for which the response is needed.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "../../../Microsoft.Web/stable/2021-01-15/CommonDefinitions.json#/definitions/DetectorResponseCollection"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "../../../Microsoft.Web/stable/2021-01-15/CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List app service certificate detector response": {
"$ref": "./examples/Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName}": {
"get": {
"tags": [
"CertificateOrdersDiagnostics"
],
"summary": "Microsoft.CertificateRegistration call to get a detector response from App Lens.",
"description": "Description for Microsoft.CertificateRegistration call to get a detector response from App Lens.",
"operationId": "CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse",
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
},
{
"name": "certificateOrderName",
"in": "path",
"description": "The certificate order name for which the response is needed.",
"required": true,
"type": "string"
},
{
"name": "detectorName",
"in": "path",
"description": "The detector name which needs to be run.",
"required": true,
"type": "string"
},
{
"name": "startTime",
"in": "query",
"description": "The start time for detector response.",
"type": "string",
"format": "date-time"
},
{
"name": "endTime",
"in": "query",
"description": "The end time for the detector response.",
"type": "string",
"format": "date-time"
},
{
"name": "timeGrain",
"in": "query",
"description": "The time grain for the detector response.",
"type": "string",
"pattern": "PT[1-9][0-9]+[SMH]"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "../../../Microsoft.Web/stable/2021-01-15/CommonDefinitions.json#/definitions/DetectorResponse"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "../../../Microsoft.Web/stable/2021-01-15/CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Get app service certificate order detector response": {
"$ref": "./examples/Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json"
}
}
}
}
},
"definitions": {},
"parameters": {
"subscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).",
"required": true,
"type": "string"
},
"resourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"description": "Name of the resource group to which the resource belongs.",
"required": true,
"type": "string",
"maxLength": 90,
"minLength": 1,
"pattern": "^[-\\w\\._\\(\\)]+[^\\.]$",
"x-ms-parameter-location": "method"
},
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "API Version",
"required": true,
"type": "string"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"swagger": "2.0",
"info": {
"version": "2021-01-15",
"title": "CertificateRegistrationProvider API Client"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/providers/Microsoft.CertificateRegistration/operations": {
"get": {
"tags": [
"CertificateRegistrationProvider"
],
"summary": "Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider",
"description": "Description for Implements Csm operations Api to exposes the list of available Csm Apis under the resource provider",
"operationId": "CertificateRegistrationProvider_ListOperations",
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "../../../Microsoft.Web/stable/2021-01-15/CommonDefinitions.json#/definitions/CsmOperationCollection"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "../../../Microsoft.Web/stable/2021-01-15/CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List operations": {
"$ref": "./examples/ListOperations.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {},
"parameters": {
"subscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).",
"required": true,
"type": "string"
},
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"description": "API Version",
"required": true,
"type": "string"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"parameters": {
"subscriptionId": "5700fc96-77b4-4f8d-afce-c353d8c443bd",
"resourceGroupName": "Sample-WestUSResourceGroup",
"certificateOrderName": "SampleCertificateOrderName",
"detectorName": "AutoRenewStatus",
"api-version": "2021-01-15"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/5700fc96-77b4-4f8d-afce-c353d8c443bd/resourceGroups/Sample-WestUSResourceGroup/providers/Microsoft.CertificateRegistration/certificateOrders/SampleCertificateOrderName/detectors/AutoRenewStatus",
"name": "AutoRenewStatus",
"properties": {
"metadata": {
"id": "AutoRenewStatus",
"name": "AutoRenewStatus",
"description": "Check auto renew status",
"category": null,
"supportTopicList": [],
"type": "Detector",
"score": 0.0
},
"dataset": [
{
"table": {
"tableName": "",
"columns": [
{
"columnName": "Status",
"dataType": "String",
"columnType": null
},
{
"columnName": "Message",
"dataType": "String",
"columnType": null
},
{
"columnName": "Data.Name",
"dataType": "String",
"columnType": null
},
{
"columnName": "Data.Value",
"dataType": "String",
"columnType": null
},
{
"columnName": "Expanded",
"dataType": "String",
"columnType": null
},
{
"columnName": "Solutions",
"dataType": "String",
"columnType": null
}
],
"rows": [
[
"Info",
"App Service Certificate name SampleCertificateOrderName",
"Certificate for",
"<b>*.mysampledomain.com</b>",
"False",
"null"
],
[
"Info",
"App Service Certificate name SampleCertificateOrderName",
"Certificate Status",
"<b>Issued</b>",
"False",
"null"
]
]
},
"renderingProperties": {
"type": "Insights",
"title": null,
"description": null
}
}
]
}
}
}
}
}
Loading

0 comments on commit d1361d0

Please sign in to comment.