Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Check zone peers to Subscription.json #17050

Merged
merged 24 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a8dd2f3
remove name validation from client side
tjegbejimba Mar 17, 2021
d94dfb5
remove name check from deploymentScripts swagger
tjegbejimba Mar 17, 2021
0c797c2
remove name check from previous swagger versions
tjegbejimba Mar 18, 2021
ad763f1
remove pattern from resourcegroupname parameter
tjegbejimba Mar 18, 2021
1663192
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba Apr 8, 2021
7fb53d4
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba Apr 14, 2021
b7f7f3f
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba Apr 28, 2021
86c45ba
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba May 5, 2021
496f8e0
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba Jun 8, 2021
1608f15
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba Jun 9, 2021
a4bd937
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba Jul 19, 2021
fb7cf22
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs
tjegbejimba Nov 4, 2021
9c886bd
add checkZonePeers to subscription.json
tjegbejimba Dec 11, 2021
f5aeef9
fix linter and prettier errors
tjegbejimba Dec 11, 2021
737ed25
fix spelling errors
tjegbejimba Dec 11, 2021
c5babb7
fix spelling and descriptions
tjegbejimba Dec 13, 2021
517e7ca
add descriptions
tjegbejimba Dec 13, 2021
63ed765
fix linter issues
tjegbejimba Dec 14, 2021
64a37ef
fix error responses
tjegbejimba Dec 14, 2021
edef6ed
fix syntax errors
tjegbejimba Dec 15, 2021
1b890c2
add description
tjegbejimba Dec 15, 2021
040c631
add reponse body
tjegbejimba Jan 4, 2022
7501f28
revert changes to package-lock
tjegbejimba Jan 4, 2022
7d5a648
Update readme.python.md
msyyc Jan 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand Down
Loading