Skip to content

Commit 93207d1

Browse files
authored
[Hub Generated] Add missing listProducts API to documentation (#19392)
* Add specification for list products * Add spec to 2016-01-01
1 parent 9cdc63d commit 93207d1

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,54 @@
150150
}
151151
}
152152
},
153+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listProducts": {
154+
"post": {
155+
"x-ms-examples": {
156+
"Returns a list of products.": {
157+
"$ref": "examples/Product/ListPost.json"
158+
}
159+
},
160+
"tags": [
161+
"Product"
162+
],
163+
"description": "Returns a list of products.",
164+
"operationId": "Products_ListProducts",
165+
"parameters": [
166+
{
167+
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
168+
},
169+
{
170+
"$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter"
171+
},
172+
{
173+
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter"
174+
},
175+
{
176+
"$ref": "#/parameters/ProductNameParameter"
177+
},
178+
{
179+
"$ref": "#/parameters/DeviceConfigurationParameter"
180+
},
181+
{
182+
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
183+
}
184+
],
185+
"responses": {
186+
"200": {
187+
"description": "OK",
188+
"schema": {
189+
"$ref": "#/definitions/ProductList"
190+
}
191+
},
192+
"default": {
193+
"description": "Error response describing why the operation failed.",
194+
"schema": {
195+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
196+
}
197+
}
198+
}
199+
}
200+
},
153201
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts": {
154202
"post": {
155203
"x-ms-examples": {

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,54 @@
150150
}
151151
}
152152
},
153+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listProducts": {
154+
"post": {
155+
"x-ms-examples": {
156+
"Returns a list of products.": {
157+
"$ref": "examples/Product/ListPost.json"
158+
}
159+
},
160+
"tags": [
161+
"Product"
162+
],
163+
"description": "Returns a list of products.",
164+
"operationId": "Products_ListProducts",
165+
"parameters": [
166+
{
167+
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
168+
},
169+
{
170+
"$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter"
171+
},
172+
{
173+
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter"
174+
},
175+
{
176+
"$ref": "#/parameters/ProductNameParameter"
177+
},
178+
{
179+
"$ref": "#/parameters/DeviceConfigurationParameter"
180+
},
181+
{
182+
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
183+
}
184+
],
185+
"responses": {
186+
"200": {
187+
"description": "OK",
188+
"schema": {
189+
"$ref": "#/definitions/ProductList"
190+
}
191+
},
192+
"default": {
193+
"description": "Error response describing why the operation failed.",
194+
"schema": {
195+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
196+
}
197+
}
198+
}
199+
}
200+
},
153201
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts": {
154202
"post": {
155203
"x-ms-examples": {

0 commit comments

Comments
 (0)