Skip to content

Commit fc4309c

Browse files
authored
[Hub Generated] Review request for Microsoft.AzureStack to add version preview/2020-06-01-preview (#14472)
* Add ListBySubscription to Registration resource * Add ListBySubscription to Registration resources in stable versions This has been supported but it was not listed in the spec * Make example names unique
1 parent 1f0bb3f commit fc4309c

File tree

6 files changed

+192
-0
lines changed

6 files changed

+192
-0
lines changed

specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,45 @@
5757
}
5858
}
5959
},
60+
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": {
61+
"get": {
62+
"x-ms-examples": {
63+
"Returns a list of all registrations under current subscription.": {
64+
"$ref": "examples/Registration/ListBySubscription.json"
65+
}
66+
},
67+
"tags": [
68+
"Registrations"
69+
],
70+
"description": "Returns a list of all registrations under current subscription.",
71+
"operationId": "Registrations_ListBySubscription",
72+
"parameters": [
73+
{
74+
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
75+
},
76+
{
77+
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
78+
}
79+
],
80+
"responses": {
81+
"200": {
82+
"description": "OK",
83+
"schema": {
84+
"$ref": "#/definitions/RegistrationList"
85+
}
86+
},
87+
"default": {
88+
"description": "Error response describing why the operation failed.",
89+
"schema": {
90+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
91+
}
92+
}
93+
},
94+
"x-ms-pageable": {
95+
"nextLinkName": "nextLink"
96+
}
97+
}
98+
},
6099
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": {
61100
"get": {
62101
"x-ms-examples": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
4+
"api-version": "2020-06-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration",
12+
"name": "testregistration",
13+
"type": "Microsoft.AzureStack/registrations",
14+
"location": "global",
15+
"etag": "0d00527e-0000-0000-0000-5a81ebdf0000",
16+
"properties": {
17+
"objectId": "9e9704ab-561a-4498-ac60-64b2314456ee",
18+
"billingModel": "Development"
19+
}
20+
}
21+
]
22+
}
23+
}
24+
}
25+
}

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/Registration.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,45 @@
5757
}
5858
}
5959
},
60+
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": {
61+
"get": {
62+
"x-ms-examples": {
63+
"Returns a list of all registrations under current subscription.": {
64+
"$ref": "examples/Registration/ListBySubscription.json"
65+
}
66+
},
67+
"tags": [
68+
"Registrations"
69+
],
70+
"description": "Returns a list of all registrations under current subscription.",
71+
"operationId": "Registrations_ListBySubscription",
72+
"parameters": [
73+
{
74+
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
75+
},
76+
{
77+
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
78+
}
79+
],
80+
"responses": {
81+
"200": {
82+
"description": "OK",
83+
"schema": {
84+
"$ref": "#/definitions/RegistrationList"
85+
}
86+
},
87+
"default": {
88+
"description": "Error response describing why the operation failed.",
89+
"schema": {
90+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
91+
}
92+
}
93+
},
94+
"x-ms-pageable": {
95+
"nextLinkName": "nextLink"
96+
}
97+
}
98+
},
6099
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": {
61100
"get": {
62101
"x-ms-examples": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
4+
"api-version": "2016-01-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration",
12+
"name": "testregistration",
13+
"type": "Microsoft.AzureStack/registrations",
14+
"location": "global",
15+
"etag": "0d00527e-0000-0000-0000-5a81ebdf0000",
16+
"properties": {
17+
"objectId": "9e9704ab-561a-4498-ac60-64b2314456ee",
18+
"billingModel": "Development"
19+
}
20+
}
21+
]
22+
}
23+
}
24+
}
25+
}

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/Registration.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,45 @@
5757
}
5858
}
5959
},
60+
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": {
61+
"get": {
62+
"x-ms-examples": {
63+
"Returns a list of all registrations under current subscription.": {
64+
"$ref": "examples/Registration/ListBySubscription.json"
65+
}
66+
},
67+
"tags": [
68+
"Registrations"
69+
],
70+
"description": "Returns a list of all registrations under current subscription.",
71+
"operationId": "Registrations_ListBySubscription",
72+
"parameters": [
73+
{
74+
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
75+
},
76+
{
77+
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
78+
}
79+
],
80+
"responses": {
81+
"200": {
82+
"description": "OK",
83+
"schema": {
84+
"$ref": "#/definitions/RegistrationList"
85+
}
86+
},
87+
"default": {
88+
"description": "Error response describing why the operation failed.",
89+
"schema": {
90+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
91+
}
92+
}
93+
},
94+
"x-ms-pageable": {
95+
"nextLinkName": "nextLink"
96+
}
97+
}
98+
},
6099
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": {
61100
"get": {
62101
"x-ms-examples": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
4+
"api-version": "2017-06-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration",
12+
"name": "testregistration",
13+
"type": "Microsoft.AzureStack/registrations",
14+
"location": "global",
15+
"etag": "0d00527e-0000-0000-0000-5a81ebdf0000",
16+
"properties": {
17+
"objectId": "9e9704ab-561a-4498-ac60-64b2314456ee",
18+
"billingModel": "Development"
19+
}
20+
}
21+
]
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)