From ef106d423f94c8d91b836469580e8df1f6691f88 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Fri, 10 Sep 2021 14:38:58 -0700 Subject: [PATCH 1/5] Add domain transfer out to swagger --- .../stable/2021-03-01/Domains.json | 50 +++++++++++++++++++ .../examples/TransferOutDomain.json | 40 +++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json diff --git a/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/Domains.json b/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/Domains.json index 9e675ae60f3c..41985def9575 100644 --- a/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/Domains.json +++ b/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/Domains.json @@ -708,6 +708,56 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/transferOut": { + "put": { + "tags": [ + "Domains" + ], + "summary": "Transfer out domain to another registrar", + "operationId": "Domains_TransferOut", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "domainName", + "in": "path", + "description": "Name of domain.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully returned transfer code to transfer domain to another registrar.", + "schema": { + "$ref": "#/definitions/Domain" + } + }, + "400": { + "description": "Domain does not exist in Azure database", + "x-ms-error-response": true + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "../../../Microsoft.Web/stable/2021-03-01/CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Transfer out domain": { + "$ref": "./examples/TransferOutDomain.json" + } + } + } } }, "definitions": { diff --git a/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json b/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json new file mode 100644 index 000000000000..cd6ac2a66c83 --- /dev/null +++ b/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "domainName": "example.com", + "api-version": "2021-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.DomainRegistration/domains/example.com", + "name": "example.com", + "type": "Microsoft.DomainRegistration/domains", + "location": "global", + "tags": {}, + "properties": { + "authCode": "exampleAuthCode", + "registrationStatus": "Active", + "provisioningState": "Succeeded", + "nameServers": [ + "ns01.ote.domaincontrol.com", + "ns02.ote.domaincontrol.com" + ], + "privacy": false, + "createdTime": "2021-09-10T19:30:53Z", + "expirationTime": "2022-09-10T19:30:53Z", + "autoRenew": true, + "readyForDnsRecordManagement": true, + "managedHostNames": [], + "domainNotRenewableReasons": [ + "ExpirationNotInRenewalTimeRange" + ], + "dnsType": "DefaultDomainRegistrarDns" + } + } + }, + "400": {} + } +} From aa78e53314a55b68a66e8f531caef0d175e9a640 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Fri, 10 Sep 2021 15:08:24 -0700 Subject: [PATCH 2/5] Prettifier --- .../stable/2021-03-01/examples/TransferOutDomain.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json b/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json index cd6ac2a66c83..f84656edc2b6 100644 --- a/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json +++ b/specification/web/resource-manager/Microsoft.DomainRegistration/stable/2021-03-01/examples/TransferOutDomain.json @@ -19,8 +19,8 @@ "registrationStatus": "Active", "provisioningState": "Succeeded", "nameServers": [ - "ns01.ote.domaincontrol.com", - "ns02.ote.domaincontrol.com" + "ns01.ote.domaincontrol.com", + "ns02.ote.domaincontrol.com" ], "privacy": false, "createdTime": "2021-09-10T19:30:53Z", @@ -29,7 +29,7 @@ "readyForDnsRecordManagement": true, "managedHostNames": [], "domainNotRenewableReasons": [ - "ExpirationNotInRenewalTimeRange" + "ExpirationNotInRenewalTimeRange" ], "dnsType": "DefaultDomainRegistrarDns" } From 4f70ac2a84696b1c1ad9775dd46580d47ffa1e3b Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Fri, 10 Sep 2021 15:52:05 -0700 Subject: [PATCH 3/5] Add 202 response for webapp restart --- .../Microsoft.Web/stable/2021-03-01/WebApps.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json index b5952f0ba4f7..80eeea439eef 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json @@ -8065,6 +8065,9 @@ } ], "responses": { + "202": { + "description": "App restart started." + }, "200": { "description": "Successfully restarted app." }, @@ -17321,6 +17324,9 @@ } ], "responses": { + "202": { + "description": "App restart started." + }, "200": { "description": "Successfully restarted app." }, From 7a881152283f00f5782b323794a8aa48bd4d9acb Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Fri, 24 Sep 2021 13:39:05 -0700 Subject: [PATCH 4/5] Add certificate listHostnameBindingsOfCertificate --- .../AppServiceCertificateOrders.json | 2 + .../stable/2021-03-01/Certificates.json | 49 +++++++++++++++++++ .../ListHostnameBindingsOfCertificate.json | 40 +++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json diff --git a/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2021-03-01/AppServiceCertificateOrders.json b/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2021-03-01/AppServiceCertificateOrders.json index ecb512ddce71..34a83e0b31bb 100644 --- a/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2021-03-01/AppServiceCertificateOrders.json +++ b/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2021-03-01/AppServiceCertificateOrders.json @@ -1404,6 +1404,7 @@ "properties": { "$ref": "#/definitions/AppServiceCertificate", "description": "Core resource properties", + "type": "object", "x-ms-client-flatten": true } } @@ -1420,6 +1421,7 @@ "properties": { "$ref": "#/definitions/AppServiceCertificate", "description": "Core resource properties", + "type": "object", "x-ms-client-flatten": true } } diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json index f28c7e76ecc3..2b7a31fb3a61 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json @@ -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": { diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json new file mode 100644 index 000000000000..e28001472e8a --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json @@ -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 + } + } + } +} From baf2d9e0e385d2c165d6e9771caf7c8d08a37bd4 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Fri, 24 Sep 2021 13:47:41 -0700 Subject: [PATCH 5/5] Formatting --- .../stable/2021-03-01/Certificates.json | 49 ------------------- .../ListHostnameBindingsOfCertificate.json | 40 --------------- 2 files changed, 89 deletions(-) delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json index 2b7a31fb3a61..f28c7e76ecc3 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/Certificates.json @@ -304,55 +304,6 @@ } } } - }, - "/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": { diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json deleted file mode 100644 index e28001472e8a..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/ListHostnameBindingsOfCertificate.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "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 - } - } - } -}