diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/GetPrivateLinkAssociation.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/GetPrivateLinkAssociation.json index 89021a2e220f..ae8c7d6b720e 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/GetPrivateLinkAssociation.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/GetPrivateLinkAssociation.json @@ -1,24 +1,21 @@ { "parameters": { + "plaId": "00000000-0000-0000-0000-000000000000", "groupId": "my-management-group", "api-version": "2020-05-01" }, "responses": { "200": { "body": { - "value": [ - { - "properties": { - "privateLink": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "tenantID": "06b3ccb8-1384-4bcc-aec7-852f6d57161b", - "scope": "/providers/Microsoft.Management/managementGroups/my-management-group" - }, - "id": "00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/privateLinkAssociations", - "name": "my-pla" - } - ] + "properties": { + "privateLink": "00000000-0000-0000-0000-000000000000", + "publicNetworkAccess": "Enabled", + "tenantID": "06b3ccb8-1384-4bcc-aec7-852f6d57161b", + "scope": "/providers/Microsoft.Management/managementGroups/my-management-group" + }, + "id": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Authorization/privateLinkAssociations", + "name": "my-pla" } } } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListPrivateLinkAssociation.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListPrivateLinkAssociation.json new file mode 100644 index 000000000000..89021a2e220f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListPrivateLinkAssociation.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "groupId": "my-management-group", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "privateLink": "00000000-0000-0000-0000-000000000000", + "publicNetworkAccess": "Enabled", + "tenantID": "06b3ccb8-1384-4bcc-aec7-852f6d57161b", + "scope": "/providers/Microsoft.Management/managementGroups/my-management-group" + }, + "id": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Authorization/privateLinkAssociations", + "name": "my-pla" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListResourceGroupResourceManagementPrivateLink.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListResourceGroupResourceManagementPrivateLink.json new file mode 100644 index 000000000000..846f33d6aa0a --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListResourceGroupResourceManagementPrivateLink.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "my-resource-group", + "api-version": "2020-05-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "privateEndpointConnections": [] + }, + "id": "00000000-0000-0000-0000-000000000000", + "name": "my-pla", + "type": "Microsoft.Authorization/privateLinkAssociations", + "location": "eastus" + }, + { + "properties": { + "privateEndpointConnections": [] + }, + "id": "00000000-0000-0000-0000-000000000001", + "name": "my-pla2", + "type": "Microsoft.Authorization/privateLinkAssociations", + "location": "eastus" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListResourceManagementPrivateLink.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListSubscriptionResourceManagementPrivateLink.json similarity index 100% rename from specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListResourceManagementPrivateLink.json rename to specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListSubscriptionResourceManagementPrivateLink.json diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutPrivateLinkAssociation.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutPrivateLinkAssociation.json index 44ebe70b1bce..80cf3ff3337c 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutPrivateLinkAssociation.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutPrivateLinkAssociation.json @@ -4,8 +4,10 @@ "groupId": "my-management-group", "api-version": "2020-05-01", "parameters": { - "privateLink": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled" + "properties": { + "privateLink": "00000000-0000-0000-0000-000000000000", + "publicNetworkAccess": "Enabled" + } } }, "responses": { @@ -21,6 +23,19 @@ "type": "Microsoft.Authorization/privateLinkAssociations", "name": "my-pla" } + }, + "201": { + "body": { + "properties": { + "privateLink": "00000000-0000-0000-0000-000000000000", + "publicNetworkAccess": "Enabled", + "tenantID": "06b3ccb8-1384-4bcc-aec7-852f6d57161b", + "scope": "/providers/Microsoft.Management/managementGroups/my-management-group" + }, + "id": "00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Authorization/privateLinkAssociations", + "name": "my-pla" + } } } } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutResourceManagementPrivateLink.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutResourceManagementPrivateLink.json index c4bfd6816823..dd7d79038360 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutResourceManagementPrivateLink.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/PutResourceManagementPrivateLink.json @@ -19,6 +19,17 @@ "type": "Microsoft.Authorization/privateLinkAssociations", "location": "eastus" } + }, + "201": { + "body": { + "properties": { + "privateEndpointConnections": [] + }, + "id": "00000000-0000-0000-0000-000000000000", + "name": "my-pla", + "type": "Microsoft.Authorization/privateLinkAssociations", + "location": "eastus" + } } } } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json index a6b79265708c..7745b5ea7cc9 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json @@ -56,7 +56,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PrivateLinkAssociationProperties" + "$ref": "#/definitions/PrivateLinkAssociationObject" }, "description": "Parameters supplied to create the private link association." } @@ -68,6 +68,12 @@ "$ref": "#/definitions/PrivateLinkAssociation" } }, + "201": { + "description": "Created - Returns information about the new private link association.", + "schema": { + "$ref": "#/definitions/PrivateLinkAssociation" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -81,6 +87,43 @@ } } }, + "get": { + "tags": [ + "PrivateLinkAssociation" + ], + "operationId": "PrivateLinkAssociation_Get", + "description": "Get a single private link association", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/GroupIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkAssociationIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok. The request has succeeded", + "schema": { + "$ref": "#/definitions/PrivateLinkAssociation" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a single private link association.": { + "$ref": "./examples/GetPrivateLinkAssociation.json" + } + } + }, "delete": { "tags": [ "PrivateLinkAssociation" @@ -124,7 +167,7 @@ "tags": [ "PrivateLinkAssociation" ], - "operationId": "PrivateLinkAssociation_Get", + "operationId": "PrivateLinkAssociation_List", "description": "Get a private link association for a management group scope", "parameters": [ { @@ -150,7 +193,7 @@ }, "x-ms-examples": { "Get a private link association for a MG scope.": { - "$ref": "./examples/GetPrivateLinkAssociation.json" + "$ref": "./examples/ListPrivateLinkAssociation.json" } } } @@ -171,7 +214,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", + "description": "The name of the resource group. The name is case insensitive.", "minLength": 1, "maxLength": 90 }, @@ -193,7 +236,13 @@ ], "responses": { "200": { - "description": "OK. The request has succeeded.", + "description": "OK. Returns information about the Resource Management Private Link.", + "schema": { + "$ref": "#/definitions/ResourceManagementPrivateLink" + } + }, + "201": { + "description": "Created. Returns information about the Resource Management Private Link.", "schema": { "$ref": "#/definitions/ResourceManagementPrivateLink" } @@ -226,7 +275,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", + "description": "The name of the resource group. The name is case insensitive.", "minLength": 1, "maxLength": 90 }, @@ -272,7 +321,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", + "description": "The name of the resource group. The name is case insensitive.", "minLength": 1, "maxLength": 90 }, @@ -335,13 +384,67 @@ }, "x-ms-examples": { "Delete a Resource Management Private Link.": { - "$ref": "./examples/ListResourceManagementPrivateLink.json" + "$ref": "./examples/ListSubscriptionResourceManagementPrivateLink.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/resourceManagementPrivateLinks": { + "get": { + "tags": [ + "ResourceManagementPrivateLink" + ], + "operationId": "ResourceManagementPrivateLink_ListByResourceGroup", + "description": "Get all the resource management private links in a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. The name is case insensitive.", + "minLength": 1, + "maxLength": 90 + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok - Returns an array of private links.", + "schema": { + "$ref": "#/definitions/ResourceManagementPrivateLinkListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Delete a Resource Management Private Link.": { + "$ref": "./examples/ListResourceGroupResourceManagementPrivateLink.json" } } } } }, "definitions": { + "PrivateLinkAssociationObject": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkAssociationProperties", + "description": "The properties of the PrivateLinkAssociation." + } + } + }, "PrivateLinkAssociationProperties": { "type": "object", "properties": {