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 Private link and Private link association APIs #11364

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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,171 @@
{
"swagger": "2.0",
"info": {
"title": "PrivateLinkClient",
"version": "2020-05-01",
"description": "To manage and control access to your resources, you can define resource manager private links and private link association assign them at a scope."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/providers/Microsoft.Authorization/resourceManagementPrivateLinks/{resourceManagementPrivateLinksName}": {
"put": {
"summary": "Creates a resource management private link.",
"description": "This operation creates or updates a private link with the given name.",
"operationId": "ResourceManagementPrivateLinks_Put",
"x-ms-examples": {
"Create a resource management private link": {
"$ref": "./examples/createPrivateLink.json"
}
},
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceManagementPrivateLinksName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource management private link to create."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"location": {
"type": "string",
"description": "Resource manager private link location"
}
},
"description": "Parameters for resource management private link location."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
]
},
"delete": {
"summary": "Delete a resource management private link.",
"description": "This operation deletes a private link with the given name.",
"operationId": "ResourceManagementPrivateLinks_Delete",
"x-ms-examples": {
"Delete a resource management private link": {
"$ref": "./examples/deletePrivateLink.json"
}
},
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceManagementPrivateLinksName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource management private link to delete."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
]
},
"get": {
"summary": "Get a resource management private link.",
"description": "This operation gets a private link with the given name.",
"operationId": "ResourceManagementPrivateLinks_Get",
"x-ms-examples": {
"Get a resource management private link": {
"$ref": "./examples/getPrivateLink.json"
}
},
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "resourceManagementPrivateLinksName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource management private link to get."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
]
}
}
},
"definitions": {
"ResourceManagerPrivateLink": {
"location": {
"type": "string",
"description": "Resource manager private link location"
}
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "The API version to use for this operation."
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "{resourceGroupName}",
"resourceManagementPrivateLinksName": "myPrivateLink",
"api-version": "2020-05-01",
"parameters": {
"location": "eastus"
}
},
"responses": {
"200": {
"body": {
"id": "rmplResourceId",
"name": "myPrivateLink",
"type": "Microsoft.Authorization/resourceManagementPrivateLinks",
"location": "eastus",
"properties": {
"privateEndpointConnections": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "{resourceGroupName}",
"resourceManagementPrivateLinksName": "myPrivateLink",
"api-version": "2020-05-01"
},
"responses": {
"200": {
"headers": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "{resourceGroupName}",
"resourceManagementPrivateLinksName": "myPrivateLink",
"api-version": "2020-05-01"
},
"responses": {
"200": {
"body": {
"id": "rmplResourceId",
"name": "myPrivateLink",
"type": "Microsoft.Authorization/resourceManagementPrivateLinks",
"location": "eastus",
"properties": {
"privateEndpointConnections": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"managementGroupName": "{managementGroupName}",
"api-version": "2020-05-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/privateLinksAssociation/{privateLinksAssociationName}",
"properties": {
"privateLink": "/subscriptions/{subcriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/privateLinks/{privateLinkName}",
"publicNetworkAccess": "Enabled | Disabled"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"swagger": "2.0",
"info": {
"title": "PrivateLinkAssociationClient",
"version": "2020-05-01",
"description": "To manage and control access to your resources, you can define private link association assign them at a scope."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/providers/Microsoft.Management/ManagementGroups/{managementGroupName}/providers/Microsoft.Authorization/privateLinkAssociations": {
"get": {
"summary": "Gets private link associations at management group scope.",
"description": "This operation get a private link associations assigned at management group.",
"operationId": "PrivateLinkAssociations_Get",
"x-ms-examples": {
"Get a private link association": {
"$ref": "./examples/getPrivateLinkAssociation.json"
}
},
"parameters": [
{
"name": "managementGroupName",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
]
}
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "The API version to use for this operation."
}
}
}