diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json index 81bd4d72a687..4c8bed535693 100644 --- a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/Registration.json @@ -57,6 +57,45 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": { + "get": { + "x-ms-examples": { + "Returns a list of all registrations under current subscription.": { + "$ref": "examples/Registration/ListBySubscription.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Returns a list of all registrations under current subscription.", + "operationId": "Registrations_ListBySubscription", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RegistrationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": { "get": { "x-ms-examples": { diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/ListBySubscription.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/ListBySubscription.json new file mode 100644 index 000000000000..31cbdf475a66 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/preview/2020-06-01-preview/examples/Registration/ListBySubscription.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "api-version": "2020-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "testregistration", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "properties": { + "objectId": "9e9704ab-561a-4498-ac60-64b2314456ee", + "billingModel": "Development" + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/Registration.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/Registration.json index 355796065ed9..8be68c13c109 100644 --- a/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/Registration.json +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/Registration.json @@ -57,6 +57,45 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": { + "get": { + "x-ms-examples": { + "Returns a list of all registrations under current subscription.": { + "$ref": "examples/Registration/ListBySubscription.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Returns a list of all registrations under current subscription.", + "operationId": "Registrations_ListBySubscription", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RegistrationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": { "get": { "x-ms-examples": { diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/examples/Registration/ListBySubscription.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/examples/Registration/ListBySubscription.json new file mode 100644 index 000000000000..ba856fdadce2 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2016-01-01/examples/Registration/ListBySubscription.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "api-version": "2016-01-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "testregistration", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "properties": { + "objectId": "9e9704ab-561a-4498-ac60-64b2314456ee", + "billingModel": "Development" + } + } + ] + } + } + } +} diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/Registration.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/Registration.json index c2e067d946e9..98e9c47a4d91 100644 --- a/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/Registration.json +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/Registration.json @@ -57,6 +57,45 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": { + "get": { + "x-ms-examples": { + "Returns a list of all registrations under current subscription.": { + "$ref": "examples/Registration/ListBySubscription.json" + } + }, + "tags": [ + "Registrations" + ], + "description": "Returns a list of all registrations under current subscription.", + "operationId": "Registrations_ListBySubscription", + "parameters": [ + { + "$ref": "AzureStack.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "AzureStack.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RegistrationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "AzureStack.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": { "get": { "x-ms-examples": { diff --git a/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/examples/Registration/ListBySubscription.json b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/examples/Registration/ListBySubscription.json new file mode 100644 index 000000000000..3931cc0f0b72 --- /dev/null +++ b/specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/examples/Registration/ListBySubscription.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf", + "api-version": "2017-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration", + "name": "testregistration", + "type": "Microsoft.AzureStack/registrations", + "location": "global", + "etag": "0d00527e-0000-0000-0000-5a81ebdf0000", + "properties": { + "objectId": "9e9704ab-561a-4498-ac60-64b2314456ee", + "billingModel": "Development" + } + } + ] + } + } + } +}