diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2015-11-01/examples/PostCheckZonePeers.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2015-11-01/examples/PostCheckZonePeers.json new file mode 100644 index 000000000000..fd52e3c1b2e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2015-11-01/examples/PostCheckZonePeers.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "api-version": "2021-01-01", + "parameters": { + "location": "eastus", + "subscriptionIds": [ + "subscriptions/11111111-1111-1111-1111-111111111111" + ] + } + }, + "responses": { + "200": { + "body": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "location": "eastus2", + "availabilityZonePeers": [ + { + "availabilityZone": "1", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "3" + } + ] + }, + { + "availabilityZone": "2", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "2" + } + ] + }, + { + "availabilityZone": "3", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "1" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2015-11-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2015-11-01/subscriptions.json index 81e1db96161e..1f3094b145cd 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2015-11-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2015-11-01/subscriptions.json @@ -146,6 +146,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_CheckZonePeers", + "description": "Compares a subscriptions logical zone mapping", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckZonePeersRequest" + }, + "description": "Parameters for checking zone peers." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the logical availability zone mapping between subscriptions.", + "schema": { + "$ref": "#/definitions/CheckZonePeersResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalZoneMapping": { + "$ref": "./examples/PostCheckZonePeers.json" + } + } + } + }, "/providers/Microsoft.Resources/checkResourceName": { "post": { "tags": [ @@ -381,6 +426,79 @@ } }, "description": "Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word" + }, + "CheckZonePeersRequest": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The Microsoft location." + }, + "subscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The peer Microsoft Azure subscription ID." + } + }, + "description": "Check zone peers request parameters." + }, + "CheckZonePeersResult": { + "type": "object", + "description": "Result of the Check zone peers operation.", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "location": { + "type": "string", + "description": "the location of the subscription." + }, + "availabilityZonePeers": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityZonePeers" + }, + "description": "The Availability Zones shared by the subscriptions." + } + } + }, + "AvailabilityZonePeers": { + "type": "object", + "properties": { + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + }, + "peers": { + "type": "array", + "items": { + "$ref": "#/definitions/Peers" + }, + "description": "Details of shared availability zone." + } + }, + "description": "List of availability zones shared by the subscriptions." + }, + "Peers": { + "type": "object", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + } + }, + "description": "Information about shared availability zone." } }, "parameters": { @@ -393,6 +511,14 @@ }, "x-ms-parameter-location": "method" }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription.", + "x-ms-parameter-location": "method" + }, "ApiVersionParameter": { "name": "api-version", "in": "query", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/examples/PostCheckZonePeers.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/examples/PostCheckZonePeers.json new file mode 100644 index 000000000000..fd52e3c1b2e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/examples/PostCheckZonePeers.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "api-version": "2021-01-01", + "parameters": { + "location": "eastus", + "subscriptionIds": [ + "subscriptions/11111111-1111-1111-1111-111111111111" + ] + } + }, + "responses": { + "200": { + "body": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "location": "eastus2", + "availabilityZonePeers": [ + { + "availabilityZone": "1", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "3" + } + ] + }, + { + "availabilityZone": "2", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "2" + } + ] + }, + { + "availabilityZone": "3", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "1" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json index 7aaee9160c89..c0ba048d5acc 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json @@ -163,6 +163,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_CheckZonePeers", + "description": "Compares a subscriptions logical zone mapping", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckZonePeersRequest" + }, + "description": "Parameters for checking zone peers." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the logical availability zone mapping between subscriptions.", + "schema": { + "$ref": "#/definitions/CheckZonePeersResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalZoneMapping": { + "$ref": "./examples/PostCheckZonePeers.json" + } + } + } + }, "/providers/Microsoft.Resources/checkResourceName": { "post": { "tags": [ @@ -488,6 +533,79 @@ "description": "URL to get the next set of operation list results if there are any." } } + }, + "CheckZonePeersRequest": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The Microsoft location." + }, + "subscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The peer Microsoft Azure subscription ID." + } + }, + "description": "Check zone peers request parameters." + }, + "CheckZonePeersResult": { + "type": "object", + "description": "Result of the Check zone peers operation.", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "location": { + "type": "string", + "description": "the location of the subscription." + }, + "availabilityZonePeers": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityZonePeers" + }, + "description": "The Availability Zones shared by the subscriptions." + } + } + }, + "AvailabilityZonePeers": { + "type": "object", + "properties": { + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + }, + "peers": { + "type": "array", + "items": { + "$ref": "#/definitions/Peers" + }, + "description": "Details of shared availability zone." + } + }, + "description": "List of availability zones shared by the subscriptions." + }, + "Peers": { + "type": "object", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + } + }, + "description": "Information about shared availability zone." } }, "parameters": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/examples/PostCheckZonePeers.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/examples/PostCheckZonePeers.json new file mode 100644 index 000000000000..fd52e3c1b2e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/examples/PostCheckZonePeers.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "api-version": "2021-01-01", + "parameters": { + "location": "eastus", + "subscriptionIds": [ + "subscriptions/11111111-1111-1111-1111-111111111111" + ] + } + }, + "responses": { + "200": { + "body": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "location": "eastus2", + "availabilityZonePeers": [ + { + "availabilityZone": "1", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "3" + } + ] + }, + { + "availabilityZone": "2", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "2" + } + ] + }, + { + "availabilityZone": "3", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "1" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json index 99f212f95c48..5cbdd75644e1 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2018-06-01/subscriptions.json @@ -163,6 +163,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_CheckZonePeers", + "description": "Compares a subscriptions logical zone mapping", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckZonePeersRequest" + }, + "description": "Parameters for checking zone peers." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the logical availability zone mapping between subscriptions.", + "schema": { + "$ref": "#/definitions/CheckZonePeersResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalZoneMapping": { + "$ref": "./examples/PostCheckZonePeers.json" + } + } + } + }, "/providers/Microsoft.Resources/checkResourceName": { "post": { "tags": [ @@ -517,6 +562,79 @@ "description": "URL to get the next set of operation list results if there are any." } } + }, + "CheckZonePeersRequest": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The Microsoft location." + }, + "subscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The peer Microsoft Azure subscription ID." + } + }, + "description": "Check zone peers request parameters." + }, + "CheckZonePeersResult": { + "type": "object", + "description": "Result of the Check zone peers operation.", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "location": { + "type": "string", + "description": "the location of the subscription." + }, + "availabilityZonePeers": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityZonePeers" + }, + "description": "The Availability Zones shared by the subscriptions." + } + } + }, + "AvailabilityZonePeers": { + "type": "object", + "properties": { + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + }, + "peers": { + "type": "array", + "items": { + "$ref": "#/definitions/Peers" + }, + "description": "Details of shared availability zone." + } + }, + "description": "List of availability zones shared by the subscriptions." + }, + "Peers": { + "type": "object", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + } + }, + "description": "Information about shared availability zone." } }, "parameters": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/PostCheckZonePeers.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/PostCheckZonePeers.json new file mode 100644 index 000000000000..fd52e3c1b2e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/examples/PostCheckZonePeers.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "api-version": "2021-01-01", + "parameters": { + "location": "eastus", + "subscriptionIds": [ + "subscriptions/11111111-1111-1111-1111-111111111111" + ] + } + }, + "responses": { + "200": { + "body": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "location": "eastus2", + "availabilityZonePeers": [ + { + "availabilityZone": "1", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "3" + } + ] + }, + { + "availabilityZone": "2", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "2" + } + ] + }, + { + "availabilityZone": "3", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "1" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json index 984bf3ead13f..71749ca1875d 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json @@ -173,6 +173,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_CheckZonePeers", + "description": "Compares a subscriptions logical zone mapping", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckZonePeersRequest" + }, + "description": "Parameters for checking zone peers." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the logical availability zone mapping between subscriptions.", + "schema": { + "$ref": "#/definitions/CheckZonePeersResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalZoneMapping": { + "$ref": "./examples/PostCheckZonePeers.json" + } + } + } + }, "/providers/Microsoft.Resources/checkResourceName": { "post": { "tags": [ @@ -558,6 +603,79 @@ "description": "URL to get the next set of operation list results if there are any." } } + }, + "CheckZonePeersRequest": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The Microsoft location." + }, + "subscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The peer Microsoft Azure subscription ID." + } + }, + "description": "Check zone peers request parameters." + }, + "CheckZonePeersResult": { + "type": "object", + "description": "Result of the Check zone peers operation.", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "location": { + "type": "string", + "description": "the location of the subscription." + }, + "availabilityZonePeers": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityZonePeers" + }, + "description": "The Availability Zones shared by the subscriptions." + } + } + }, + "AvailabilityZonePeers": { + "type": "object", + "properties": { + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + }, + "peers": { + "type": "array", + "items": { + "$ref": "#/definitions/Peers" + }, + "description": "Details of shared availability zone." + } + }, + "description": "List of availability zones shared by the subscriptions." + }, + "Peers": { + "type": "object", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + } + }, + "description": "Information about shared availability zone." } }, "parameters": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/examples/PostCheckZonePeers.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/examples/PostCheckZonePeers.json new file mode 100644 index 000000000000..fd52e3c1b2e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/examples/PostCheckZonePeers.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "api-version": "2021-01-01", + "parameters": { + "location": "eastus", + "subscriptionIds": [ + "subscriptions/11111111-1111-1111-1111-111111111111" + ] + } + }, + "responses": { + "200": { + "body": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "location": "eastus2", + "availabilityZonePeers": [ + { + "availabilityZone": "1", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "3" + } + ] + }, + { + "availabilityZone": "2", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "2" + } + ] + }, + { + "availabilityZone": "3", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "1" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/subscriptions.json index ad98623bf852..7e7384488908 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-11-01/subscriptions.json @@ -178,6 +178,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_CheckZonePeers", + "description": "Compares a subscriptions logical zone mapping", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckZonePeersRequest" + }, + "description": "Parameters for checking zone peers." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the logical availability zone mapping between subscriptions.", + "schema": { + "$ref": "#/definitions/CheckZonePeersResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalZoneMapping": { + "$ref": "./examples/PostCheckZonePeers.json" + } + } + } + }, "/providers/Microsoft.Resources/checkResourceName": { "post": { "tags": [ @@ -648,6 +693,79 @@ "description": "URL to get the next set of operation list results if there are any." } } + }, + "CheckZonePeersRequest": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The Microsoft location." + }, + "subscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The peer Microsoft Azure subscription ID." + } + }, + "description": "Check zone peers request parameters." + }, + "CheckZonePeersResult": { + "type": "object", + "description": "Result of the Check zone peers operation.", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "location": { + "type": "string", + "description": "the location of the subscription." + }, + "availabilityZonePeers": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityZonePeers" + }, + "description": "The Availability Zones shared by the subscriptions." + } + } + }, + "AvailabilityZonePeers": { + "type": "object", + "properties": { + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + }, + "peers": { + "type": "array", + "items": { + "$ref": "#/definitions/Peers" + }, + "description": "Details of shared availability zone." + } + }, + "description": "List of availability zones shared by the subscriptions." + }, + "Peers": { + "type": "object", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + } + }, + "description": "Information about shared availability zone." } }, "parameters": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/examples/PostCheckZonePeers.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/examples/PostCheckZonePeers.json new file mode 100644 index 000000000000..fd52e3c1b2e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/examples/PostCheckZonePeers.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "api-version": "2021-01-01", + "parameters": { + "location": "eastus", + "subscriptionIds": [ + "subscriptions/11111111-1111-1111-1111-111111111111" + ] + } + }, + "responses": { + "200": { + "body": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "location": "eastus2", + "availabilityZonePeers": [ + { + "availabilityZone": "1", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "3" + } + ] + }, + { + "availabilityZone": "2", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "2" + } + ] + }, + { + "availabilityZone": "3", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "1" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/subscriptions.json index b70ab71ed858..80e132570d84 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-01-01/subscriptions.json @@ -183,6 +183,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_CheckZonePeers", + "description": "Compares a subscriptions logical zone mapping", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckZonePeersRequest" + }, + "description": "Parameters for checking zone peers." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the logical availability zone mapping between subscriptions.", + "schema": { + "$ref": "#/definitions/CheckZonePeersResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalZoneMapping": { + "$ref": "./examples/PostCheckZonePeers.json" + } + } + } + }, "/providers/Microsoft.Resources/checkResourceName": { "post": { "tags": [ @@ -668,6 +713,79 @@ "description": "URL to get the next set of operation list results if there are any." } } + }, + "CheckZonePeersRequest": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The Microsoft location." + }, + "subscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The peer Microsoft Azure subscription ID." + } + }, + "description": "Check zone peers request parameters." + }, + "CheckZonePeersResult": { + "type": "object", + "description": "Result of the Check zone peers operation.", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "location": { + "type": "string", + "description": "the location of the subscription." + }, + "availabilityZonePeers": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityZonePeers" + }, + "description": "The Availability Zones shared by the subscriptions." + } + } + }, + "AvailabilityZonePeers": { + "type": "object", + "properties": { + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + }, + "peers": { + "type": "array", + "items": { + "$ref": "#/definitions/Peers" + }, + "description": "Details of shared availability zone." + } + }, + "description": "List of availability zones shared by the subscriptions." + }, + "Peers": { + "type": "object", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + } + }, + "description": "Information about shared availability zone." } }, "parameters": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/PostCheckZonePeers.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/PostCheckZonePeers.json new file mode 100644 index 000000000000..fd52e3c1b2e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/PostCheckZonePeers.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "api-version": "2021-01-01", + "parameters": { + "location": "eastus", + "subscriptionIds": [ + "subscriptions/11111111-1111-1111-1111-111111111111" + ] + } + }, + "responses": { + "200": { + "body": { + "subscriptionId": "00000000-0000-0000-0000-00000000000000", + "location": "eastus2", + "availabilityZonePeers": [ + { + "availabilityZone": "1", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "3" + } + ] + }, + { + "availabilityZone": "2", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "2" + } + ] + }, + { + "availabilityZone": "3", + "peers": [ + { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "availabilityZone": "1" + } + ] + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json index 6470248df2b3..e8fe4a1afdf4 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/subscriptions.json @@ -193,6 +193,51 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/checkZonePeers/": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "Subscriptions_CheckZonePeers", + "description": "Compares a subscriptions logical zone mapping", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckZonePeersRequest" + }, + "description": "Parameters for checking zone peers." + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the logical availability zone mapping between subscriptions", + "schema": { + "$ref": "#/definitions/CheckZonePeersResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalZoneMapping": { + "$ref": "./examples/PostCheckZonePeers.json" + } + } + } + }, "/providers/Microsoft.Resources/checkResourceName": { "post": { "tags": [ @@ -684,6 +729,79 @@ "description": "URL to get the next set of operation list results if there are any." } } + }, + "CheckZonePeersRequest": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "The Microsoft location." + }, + "subscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The peer Microsoft Azure subscription ID." + } + }, + "description": "Check zone peers request parameters." + }, + "CheckZonePeersResult": { + "type": "object", + "description": "Result of the Check zone peers operation.", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "location": { + "type": "string", + "description": "the location of the subscription." + }, + "availabilityZonePeers": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityZonePeers" + }, + "description": "The Availability Zones shared by the subscriptions." + } + } + }, + "AvailabilityZonePeers": { + "type": "object", + "properties": { + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + }, + "peers": { + "type": "array", + "items": { + "$ref": "#/definitions/Peers" + }, + "description": "Details of shared availability zone." + } + }, + "description": "List of availability zones shared by the subscriptions." + }, + "Peers": { + "type": "object", + "properties": { + "subscriptionId": { + "readOnly": true, + "type": "string", + "description": "The subscription ID." + }, + "availabilityZone": { + "readOnly": true, + "type": "string", + "description": "The availabilityZone." + } + }, + "description": "Information about shared availability zone." } }, "parameters": { diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index db2cdbd2033a..d77f2eeeccf3 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -558,3 +558,8 @@ Please also specify `--python-sdks-folder=