From 1bd69fe1740dd682f3e1d1b678c6b941ec7c6bf2 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Sun, 18 Jul 2021 11:21:11 +0300 Subject: [PATCH 01/13] new api-version clone --- .../PrivateEndpointConnectionDelete.json | 14 + .../PrivateEndpointConnectionGet.json | 29 + .../PrivateEndpointConnectionList.json | 48 + .../PrivateEndpointConnectionUpdate.json | 38 + ...rivateLinkScopePrivateLinkResourceGet.json | 31 + ...teLinkScopePrivateLinkResourceListGet.json | 35 + .../PrivateLinkScopedResourceDelete.json | 14 + .../PrivateLinkScopedResourceGet.json | 22 + .../PrivateLinkScopedResourceList.json | 34 + .../PrivateLinkScopedResourceUpdate.json | 39 + .../examples/PrivateLinkScopesCreate.json | 38 + .../examples/PrivateLinkScopesDelete.json | 13 + .../examples/PrivateLinkScopesGet.json | 22 + .../examples/PrivateLinkScopesList.json | 35 + .../PrivateLinkScopesListByResourceGroup.json | 36 + .../examples/PrivateLinkScopesUpdate.json | 45 + .../PrivateLinkScopesUpdateTagsOnly.json | 31 + .../privateLinkScopeOperationStatuses.json | 20 + .../privateLinkScopes_API.json | 1180 +++++++++++++++++ 19 files changed, 1724 insertions(+) create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..5e533ce480e5 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..b2baf12bf906 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json new file mode 100644 index 000000000000..0735f8a3415d --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name", + "type": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name-2", + "type": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name-2" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Please approve my connection.", + "actionsRequired": "None" + } + } + } + ] + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json new file mode 100644 index 000000000000..d659dab2393d --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2021-07-01-preview", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + } + } + } + }, + "202": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json new file mode 100644 index 000000000000..d8a2d4151df7 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "api-version": "2021-07-01-preview", + "groupName": "azuremonitor" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/privateLinkResources/azuremonitor", + "name": "azuremonitor", + "type": "Microsoft.Insights/privateLinkScopes/privateLinkResources", + "properties": { + "groupId": "azuremonitor", + "requiredMembers": [ + "draft", + "breeze", + "livemetrics", + "snapshotdebugger", + "profiler", + "oms-12300000-1111-2222-3333-444444444444", + "ods-12300000-1111-2222-3333-444444444444", + "agent-12300000-1111-2222-3333-444444444444" + ] + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json new file mode 100644 index 000000000000..db0a5816d40d --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/privateLinkResources/azuremonitor", + "name": "azuremonitor", + "type": "Microsoft.Insights/privateLinkScopes/privateLinkResources", + "properties": { + "groupId": "azuremonitor", + "requiredMembers": [ + "draft", + "breeze", + "livemetrics", + "snapshotdebugger", + "profiler", + "oms-12300000-1111-2222-3333-444444444444", + "ods-12300000-1111-2222-3333-444444444444", + "agent-12300000-1111-2222-3333-444444444444" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json new file mode 100644 index 000000000000..925799b1da8e --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "name": "scoped-resource-name", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json new file mode 100644 index 000000000000..000a20a18b48 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "name": "scoped-resource-name", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", + "name": "scoped-resource-name", + "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "properties": { + "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json new file mode 100644 index 000000000000..681797a8fe1d --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", + "name": "scoped-resource-name", + "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "properties": { + "linkedResourceId": "/subscriptions/00000000-0000-2222-3333-444444444444/resourceGroups/MyComponentResourceGroup/providers/Microsoft.Insights/components/my-component", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/other-scoped-resource-name", + "name": "other-scoped-resource-name", + "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "properties": { + "linkedResourceId": "/subscriptions/00000000-3333-2222-5555-444444444444/resourceGroups/MyWorkspaceResourceGroup/providers/Microsoft.OperationalInsights/workspaces/my-workspace", + "provisioningState": "Provisioning" + } + } + ] + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json new file mode 100644 index 000000000000..508a800421e6 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "MyResourceGroup", + "scopeName": "MyPrivateLinkScope", + "name": "scoped-resource-name", + "api-version": "2021-07-01-preview", + "parameters": { + "properties": { + "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", + "name": "scoped-resource-name", + "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "properties": { + "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", + "name": "scoped-resource-name", + "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "properties": { + "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", + "provisioningState": "Succeeded" + } + } + }, + "202": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json new file mode 100644 index 000000000000..3680839acd9f --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope", + "AzureMonitorPrivateLinkScopePayload": { + "location": "Global", + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json new file mode 100644 index 000000000000..e43745d1155b --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope" + }, + "responses": { + "200": {}, + "204": {}, + "202": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json new file mode 100644 index 000000000000..8acc08d3e42c --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json new file mode 100644 index 000000000000..381efc828aa0 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-other-resource-group/providers/microsoft.insights/privateLinkScopes/my-other-privatelinkscope", + "name": "my-other-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json new file mode 100644 index 000000000000..0e9bc295d42f --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-other-privatelinkscope", + "name": "my-other-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": {}, + "properties": { + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json new file mode 100644 index 000000000000..c4d494b4bd51 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope", + "AzureMonitorPrivateLinkScopePayload": { + "location": "Global", + "tags": { + "Tag1": "Value1" + }, + "properties": {} + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": { + "Tag1": "Value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": { + "Tag1": "Value1" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json new file mode 100644 index 000000000000..e96f41a5c639 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope", + "PrivateLinkScopeTags": { + "tags": { + "Tag1": "Value1", + "Tag2": "Value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.Insights/privateLinkScopes", + "location": "Global", + "tags": { + "Tag1": "Value1", + "Tag2": "Value2" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json new file mode 100644 index 000000000000..8ba0545f8d8c --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "resourceGroupName": "MyResourceGroup", + "asyncOperationId": "713192d7-503f-477a-9cfe-4efc3ee2bd11", + "api-version": "2021-07-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopeOperationStatuses/713192d7-503f-477a-9cfe-4efc3ee2bd11", + "name": "713192d7-503f-477a-9cfe-4efc3ee2bd11", + "startTime": "2017-01-01T13:13:13.933Z", + "endTime": "2017-01-01T16:13:13.933Z", + "status": "Succeeded" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json new file mode 100644 index 000000000000..05df9ad06ed5 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -0,0 +1,1180 @@ +{ + "swagger": "2.0", + "info": { + "title": "MonitorManagementClient", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" + }, + "description": "Azure Monitor API reference for Private Links Scopes management.", + "version": "2021-07-01-preview" + }, + "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}/providers/microsoft.insights/privateLinkScopes": { + "get": { + "description": "Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.", + "operationId": "PrivateLinkScopes_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more Azure Monitor PrivateLinkScope definitions.", + "schema": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScopeListResult" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopesList.json": { + "$ref": "./examples/PrivateLinkScopesList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes": { + "get": { + "description": "Gets a list of Azure Monitor PrivateLinkScopes within a resource group.", + "operationId": "PrivateLinkScopes_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more Azure Monitor PrivateLinkScope definitions.", + "schema": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScopeListResult" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeListByResourceGroup": { + "$ref": "./examples/PrivateLinkScopesListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}": { + "delete": { + "description": "Deletes a Azure Monitor PrivateLinkScope.", + "operationId": "PrivateLinkScopes_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Successful request when deleting a Azure Monitor PrivateLinkScope." + }, + "204": { + "description": "The specified PrivateLinkScope does not exist." + }, + "202": { + "description": "Accepted." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "PrivateLinkScopesDelete": { + "$ref": "./examples/PrivateLinkScopesDelete.json" + } + } + }, + "get": { + "description": "Returns a Azure Monitor PrivateLinkScope.", + "operationId": "PrivateLinkScopes_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "An Azure Monitor PrivateLinkScope definition.", + "schema": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScope" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeGet": { + "$ref": "./examples/PrivateLinkScopesGet.json" + } + } + }, + "put": { + "description": "Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.", + "operationId": "PrivateLinkScopes_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "AzureMonitorPrivateLinkScopePayload", + "description": "Properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScope" + } + } + ], + "responses": { + "200": { + "description": "Successful request when creating or updating a Azure Monitor PrivateLinkScope. The updated PrivateLinkScope is returned.", + "schema": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScope" + } + }, + "201": { + "description": "Successful request when creating or updating a Azure Monitor PrivateLinkScope. The updated PrivateLinkScope was created and is returned.", + "schema": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScope" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeCreate": { + "$ref": "./examples/PrivateLinkScopesCreate.json" + }, + "PrivateLinkScopeUpdate": { + "$ref": "./examples/PrivateLinkScopesUpdate.json" + } + } + }, + "patch": { + "description": "Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "PrivateLinkScopes_UpdateTags", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "PrivateLinkScopeTags", + "description": "Updated tag information to set into the PrivateLinkScope instance.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsResource" + } + } + ], + "responses": { + "200": { + "description": "Updating the Azure Monitor PrivateLinkScope's tags was successful. PrivateLinkScope tags are updated and returned with the rest of the PrivateLinkScope's object properties.", + "schema": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScope" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeUpdateTagsOnly": { + "$ref": "./examples/PrivateLinkScopesUpdateTagsOnly.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopeOperationStatuses/{asyncOperationId}": { + "get": { + "x-ms-examples": { + "Get specific operation status": { + "$ref": "./examples/privateLinkScopeOperationStatuses.json" + } + }, + "tags": [ + "asyncOperations" + ], + "operationId": "PrivateLinkScopeOperationStatus_Get", + "description": "Get the status of an azure asynchronous operation associated with a private link scope operation.", + "parameters": [ + { + "name": "asyncOperationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation Id." + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. Operation status.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.", + "operationId": "PrivateLinkResources_ListByPrivateLinkScope", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateLinkScopePrivateLinkResourceListGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.", + "operationId": "PrivateLinkResources_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "$ref": "#/parameters/GroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private link resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateLinkScopePrivateLinkResourceGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets a private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateEndpointConnectionGet.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Approve or reject a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "200": { + "description": "Successfully approved or rejected private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionUpdate.json" + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Deletes a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successfully deleted private endpoint connection." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "Private endpoint connection does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets all private endpoint connections on a private link scope.", + "operationId": "PrivateEndpointConnections_ListByPrivateLinkScope", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets list of private endpoint connections on a private link scope.": { + "$ref": "./examples/PrivateEndpointConnectionList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}": { + "get": { + "tags": [ + "PrivateLinkScopedResources" + ], + "description": "Gets a scoped resource in a private link scope.", + "operationId": "PrivateLinkScopedResources_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the scoped resource object.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a scoped resource in a private link scope.", + "schema": { + "$ref": "#/definitions/ScopedResource" + } + } + }, + "x-ms-examples": { + "Gets private link scoped resource.": { + "$ref": "./examples/PrivateLinkScopedResourceGet.json" + } + } + }, + "put": { + "tags": [ + "PrivateLinkScopedResources" + ], + "description": "Approve or reject a private endpoint connection with a given name.", + "operationId": "PrivateLinkScopedResources_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the scoped resource object.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ScopedResource" + } + } + ], + "responses": { + "200": { + "description": "Successfully create or updated a new azure monitor scoped resource in a private link scope.", + "schema": { + "$ref": "#/definitions/ScopedResource" + } + }, + "201": { + "description": "Successfully created a new azure monitor scoped resource in a private link scope.", + "schema": { + "$ref": "#/definitions/ScopedResource" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a scoped resource in a private link scope.": { + "$ref": "./examples/PrivateLinkScopedResourceUpdate.json" + } + } + }, + "delete": { + "tags": [ + "PrivateLinkScopedResources" + ], + "description": "Deletes a private endpoint connection with a given name.", + "operationId": "PrivateLinkScopedResources_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "name", + "in": "path", + "description": "The name of the scoped resource object.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successfully deleted scoped resource." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "Scoped resource does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes a scoped resource with a given name.": { + "$ref": "./examples/PrivateLinkScopedResourceDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources": { + "get": { + "tags": [ + "PrivateLinkScopedResources" + ], + "description": "Gets all private endpoint connections on a private link scope.", + "operationId": "PrivateLinkScopedResources_ListByPrivateLinkScope", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved scoped resources in a private link scope.", + "schema": { + "$ref": "#/definitions/ScopedResourceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets list of scoped resources in a private link scope.": { + "$ref": "./examples/PrivateLinkScopedResourceList.json" + } + } + } + } + }, + "definitions": { + "OperationStatus": { + "description": "The status of operation.", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The operation Id." + }, + "name": { + "type": "string", + "description": "The operation name." + }, + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "description": "Start time of the job in standard ISO8601 format." + }, + "endTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "description": "End time of the job in standard ISO8601 format." + }, + "status": { + "type": "string", + "description": "The status of the operation." + }, + "error": { + "type": "object", + "description": "The error detail of the operation if any.", + "$ref": "#/definitions/ErrorResponseCommon", + "x-nullable": true + } + } + }, + "PrivateLinkScopesResource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "TagsResource": { + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "A container holding only the Tags for a resource, allowing the user to update the tags on a PrivateLinkScope instance." + }, + "AzureMonitorPrivateLinkScope": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Properties that define a Azure Monitor PrivateLinkScope resource.", + "$ref": "#/definitions/AzureMonitorPrivateLinkScopeProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/PrivateLinkScopesResource" + } + ], + "required": [ + "properties" + ], + "description": "An Azure Monitor PrivateLinkScope definition." + }, + "AzureMonitorPrivateLinkScopeProperties": { + "description": "Properties that define a Azure Monitor PrivateLinkScope resource.", + "properties": { + "provisioningState": { + "type": "string", + "description": "Current state of this PrivateLinkScope: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Provisioning ,Succeeded, Canceled and Failed.", + "readOnly": true + }, + "privateEndpointConnections": { + "readOnly": true, + "description": "List of private endpoint connections.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + } + }, + "AzureMonitorPrivateLinkScopeListResult": { + "description": "Describes the list of Azure Monitor PrivateLinkScope resources.", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of Azure Monitor PrivateLinkScope definitions.", + "items": { + "$ref": "#/definitions/AzureMonitorPrivateLinkScope" + } + }, + "nextLink": { + "type": "string", + "description": "The URI to get the next set of Azure Monitor PrivateLinkScope definitions if too many PrivateLinkScopes where returned in the result set." + } + } + }, + "PrivateLinkResourceListResult": { + "description": "A list of private link resources", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateLinkResource": { + "description": "A private link resource", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "PrivateLinkResourceProperties": { + "description": "Properties of a private link resource.", + "type": "object", + "properties": { + "groupId": { + "description": "The private link resource group id.", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "PrivateEndpointConnectionProperties": { + "description": "Properties of a private endpoint connection.", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection state of the private endpoint connection." + }, + "provisioningState": { + "description": "State of the private endpoint connection.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateEndpointProperty": { + "description": "Private endpoint which the connection belongs to.", + "type": "object", + "properties": { + "id": { + "description": "Resource id of the private endpoint.", + "type": "string" + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "description": "State of the private endpoint connection.", + "type": "object", + "required": [ + "status", + "description" + ], + "properties": { + "status": { + "description": "The private link service connection status.", + "type": "string" + }, + "description": { + "description": "The private link service connection description.", + "type": "string" + }, + "actionsRequired": { + "description": "The actions required for private link service connection.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateEndpointConnection": { + "description": "A private endpoint connection", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "PrivateEndpointConnectionListResult": { + "description": "A list of private endpoint connections.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ScopedResourceListResult": { + "description": "A list of scoped resources in a private link scope.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/ScopedResource" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ScopedResource": { + "description": "A private link scoped resource", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ScopedResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "ScopedResourceProperties": { + "description": "Properties of a private link scoped resource.", + "type": "object", + "properties": { + "linkedResourceId": { + "description": "The resource id of the scoped Azure monitor resource.", + "type": "string" + }, + "provisioningState": { + "description": "State of the private endpoint connection.", + "type": "string", + "readOnly": true + } + } + }, + "ProxyResource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Azure resource name" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + } + }, + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "ErrorResponse": { + "description": "Describes the format of Error response.", + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + } + }, + "ErrorResponseCommon": { + "allOf": [ + { + "$ref": "#/definitions/ErrorResponse" + } + ], + "properties": { + "details": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorResponseCommon" + }, + "description": "The error details." + }, + "additionalInfo": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ErrorAdditionalInfo" + }, + "description": "The error additional info." + } + }, + "description": "The resource management error response." + }, + "ErrorAdditionalInfo": { + "properties": { + "type": { + "readOnly": true, + "type": "string", + "description": "The additional info type." + }, + "info": { + "readOnly": true, + "type": "object", + "description": "The additional info." + } + }, + "description": "The resource management error additional info." + } + }, + "parameters": { + "PrivateLinkScopeName": { + "name": "scopeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure Monitor PrivateLinkScope resource.", + "x-ms-parameter-location": "method" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "GroupNameParameter": { + "name": "groupName", + "in": "path", + "description": "The name of the private link resource.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string" + } + } +} From 95e8aaf58c499ce190ca59ca37e9fbc420cc3d4c Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Sun, 18 Jul 2021 12:06:39 +0300 Subject: [PATCH 02/13] use common types --- ...rivateLinkScopePrivateLinkResourceGet.json | 20 +- ...teLinkScopePrivateLinkResourceListGet.json | 20 +- .../PrivateLinkScopedResourceGet.json | 8 + .../PrivateLinkScopedResourceList.json | 16 + .../PrivateLinkScopedResourceUpdate.json | 16 + .../examples/PrivateLinkScopesCreate.json | 16 + .../examples/PrivateLinkScopesGet.json | 8 + .../examples/PrivateLinkScopesList.json | 16 + .../PrivateLinkScopesListByResourceGroup.json | 16 + .../examples/PrivateLinkScopesUpdate.json | 16 + .../PrivateLinkScopesUpdateTagsOnly.json | 8 + .../privateLinkScopes_API.json | 388 +++++++----------- .../monitor/resource-manager/readme.md | 24 ++ .../monitor/resource-manager/readme.python.md | 11 + 14 files changed, 324 insertions(+), 259 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json index d8a2d4151df7..cc0f31477c3c 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json @@ -15,14 +15,20 @@ "properties": { "groupId": "azuremonitor", "requiredMembers": [ - "draft", - "breeze", - "livemetrics", - "snapshotdebugger", + "api", + "global.in.ai", "profiler", - "oms-12300000-1111-2222-3333-444444444444", - "ods-12300000-1111-2222-3333-444444444444", - "agent-12300000-1111-2222-3333-444444444444" + "live", + "snapshot", + "agentsolutionpackstore", + "dce-global" + ], + "requiredZoneNames": [ + "privatelink.monitor.azure.com", + "privatelink.oms.opinsights.azure.com", + "privatelink.ods.opinsights.azure.com", + "privatelink.agentsvc.azure-automation.net", + "privatelink.blob.core.windows.net" ] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json index db0a5816d40d..042ac73175af 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json @@ -16,14 +16,20 @@ "properties": { "groupId": "azuremonitor", "requiredMembers": [ - "draft", - "breeze", - "livemetrics", - "snapshotdebugger", + "api", + "global.in.ai", "profiler", - "oms-12300000-1111-2222-3333-444444444444", - "ods-12300000-1111-2222-3333-444444444444", - "agent-12300000-1111-2222-3333-444444444444" + "live", + "snapshot", + "agentsolutionpackstore", + "dce-global" + ], + "requiredZoneNames": [ + "privatelink.monitor.azure.com", + "privatelink.oms.opinsights.azure.com", + "privatelink.ods.opinsights.azure.com", + "privatelink.agentsvc.azure-automation.net", + "privatelink.blob.core.windows.net" ] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json index 000a20a18b48..2fd56f6833ba 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json @@ -12,6 +12,14 @@ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", "name": "scoped-resource-name", "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", "provisioningState": "Succeeded" diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json index 681797a8fe1d..c601ef0e7c18 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json @@ -13,6 +13,14 @@ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", "name": "scoped-resource-name", "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "linkedResourceId": "/subscriptions/00000000-0000-2222-3333-444444444444/resourceGroups/MyComponentResourceGroup/providers/Microsoft.Insights/components/my-component", "provisioningState": "Succeeded" @@ -22,6 +30,14 @@ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/other-scoped-resource-name", "name": "other-scoped-resource-name", "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "linkedResourceId": "/subscriptions/00000000-3333-2222-5555-444444444444/resourceGroups/MyWorkspaceResourceGroup/providers/Microsoft.OperationalInsights/workspaces/my-workspace", "provisioningState": "Provisioning" diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json index 508a800421e6..51db780458d6 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json @@ -17,6 +17,14 @@ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", "name": "scoped-resource-name", "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", "provisioningState": "Succeeded" @@ -28,6 +36,14 @@ "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name", "name": "scoped-resource-name", "type": "Microsoft.Insights/privateLinkScopes/scopedResources", + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", "provisioningState": "Succeeded" diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json index 3680839acd9f..1df9f2db5f31 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json @@ -17,6 +17,14 @@ "type": "Microsoft.Insights/privateLinkScopes", "location": "Global", "tags": {}, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } @@ -29,6 +37,14 @@ "type": "Microsoft.Insights/privateLinkScopes", "location": "Global", "tags": {}, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json index 8acc08d3e42c..a2759a72234d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json @@ -13,6 +13,14 @@ "type": "Microsoft.Insights/privateLinkScopes", "location": "Global", "tags": {}, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json index 381efc828aa0..e1d17d928dfc 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json @@ -13,6 +13,14 @@ "type": "Microsoft.Insights/privateLinkScopes", "location": "Global", "tags": {}, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } @@ -23,6 +31,14 @@ "type": "Microsoft.Insights/privateLinkScopes", "location": "Global", "tags": {}, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json index 0e9bc295d42f..86f84d2e7634 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json @@ -14,6 +14,14 @@ "type": "Microsoft.Insights/privateLinkScopes", "location": "Global", "tags": {}, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } @@ -24,6 +32,14 @@ "type": "Microsoft.Insights/privateLinkScopes", "location": "Global", "tags": {}, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json index c4d494b4bd51..fae2fa75cf40 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json @@ -22,6 +22,14 @@ "tags": { "Tag1": "Value1" }, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } @@ -36,6 +44,14 @@ "tags": { "Tag1": "Value1" }, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json index e96f41a5c639..3ca3a8739463 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json @@ -22,6 +22,14 @@ "Tag1": "Value1", "Tag2": "Value2" }, + "systemData": { + "createdBy": "bobby@contoso.com", + "createdByType": "User", + "createdAt": "2021-06-16T12:59:57.051056Z", + "lastModifiedBy": "bobby@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-06-16T12:59:57.051056Z" + }, "properties": { "provisioningState": "Succeeded" } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 05df9ad06ed5..10807ca1eb8a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -55,6 +55,12 @@ "schema": { "$ref": "#/definitions/AzureMonitorPrivateLinkScopeListResult" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { @@ -73,7 +79,7 @@ "operationId": "PrivateLinkScopes_ListByResourceGroup", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -88,6 +94,12 @@ "schema": { "$ref": "#/definitions/AzureMonitorPrivateLinkScopeListResult" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { @@ -106,7 +118,7 @@ "operationId": "PrivateLinkScopes_Delete", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -127,6 +139,12 @@ }, "202": { "description": "Accepted." + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-long-running-operation": true, @@ -141,7 +159,7 @@ "operationId": "PrivateLinkScopes_Get", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -159,6 +177,12 @@ "schema": { "$ref": "#/definitions/AzureMonitorPrivateLinkScope" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { @@ -172,7 +196,7 @@ "operationId": "PrivateLinkScopes_CreateOrUpdate", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -205,6 +229,12 @@ "schema": { "$ref": "#/definitions/AzureMonitorPrivateLinkScope" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { @@ -221,7 +251,7 @@ "operationId": "PrivateLinkScopes_UpdateTags", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -248,6 +278,12 @@ "schema": { "$ref": "#/definitions/AzureMonitorPrivateLinkScope" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { @@ -278,7 +314,7 @@ "description": "The operation Id." }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -293,6 +329,12 @@ "schema": { "$ref": "#/definitions/OperationStatus" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } } } @@ -312,7 +354,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -327,6 +369,12 @@ "schema": { "$ref": "#/definitions/PrivateLinkResourceListResult" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { @@ -348,7 +396,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -364,7 +412,13 @@ "200": { "description": "Successfully retrieved a specified private link resource.", "schema": { - "$ref": "#/definitions/PrivateLinkResource" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" } } }, @@ -387,7 +441,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -407,7 +461,13 @@ "200": { "description": "Successfully retrieved a specified private endpoint connection.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" } } }, @@ -428,7 +488,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -448,7 +508,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" } } ], @@ -456,11 +516,17 @@ "200": { "description": "Successfully approved or rejected private endpoint connection.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" } }, "202": { "description": "Accepted" + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-long-running-operation": true, @@ -481,7 +547,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -506,6 +572,12 @@ }, "204": { "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-long-running-operation": true, @@ -528,7 +600,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -543,6 +615,12 @@ "schema": { "$ref": "#/definitions/PrivateEndpointConnectionListResult" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-pageable": { @@ -567,7 +645,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -589,6 +667,12 @@ "schema": { "$ref": "#/definitions/ScopedResource" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-examples": { @@ -608,7 +692,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -647,6 +731,12 @@ }, "202": { "description": "Accepted" + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-long-running-operation": true, @@ -667,7 +757,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -692,6 +782,12 @@ }, "204": { "description": "Scoped resource does not exist." + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-long-running-operation": true, @@ -714,7 +810,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" @@ -729,6 +825,12 @@ "schema": { "$ref": "#/definitions/ScopedResourceListResult" } + }, + "default": { + "description": "An error occurred.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } } }, "x-ms-pageable": { @@ -774,49 +876,11 @@ "error": { "type": "object", "description": "The error detail of the operation if any.", - "$ref": "#/definitions/ErrorResponseCommon", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", "x-nullable": true } } }, - "PrivateLinkScopesResource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "description": "Azure resource name", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, "TagsResource": { "properties": { "tags": { @@ -838,12 +902,17 @@ }, "allOf": [ { - "$ref": "#/definitions/PrivateLinkScopesResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" } ], "required": [ "properties" ], + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "System data", + "readOnly": true + }, "description": "An Azure Monitor PrivateLinkScope definition." }, "AzureMonitorPrivateLinkScopeProperties": { @@ -891,7 +960,7 @@ "description": "Array of results.", "type": "array", "items": { - "$ref": "#/definitions/PrivateLinkResource" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" }, "readOnly": true }, @@ -902,109 +971,6 @@ } } }, - "PrivateLinkResource": { - "description": "A private link resource", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ] - }, - "PrivateLinkResourceProperties": { - "description": "Properties of a private link resource.", - "type": "object", - "properties": { - "groupId": { - "description": "The private link resource group id.", - "type": "string", - "readOnly": true - }, - "requiredMembers": { - "description": "The private link resource required member names.", - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - } - } - }, - "PrivateEndpointConnectionProperties": { - "description": "Properties of a private endpoint connection.", - "type": "object", - "properties": { - "privateEndpoint": { - "$ref": "#/definitions/PrivateEndpointProperty", - "description": "Private endpoint which the connection belongs to." - }, - "privateLinkServiceConnectionState": { - "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", - "description": "Connection state of the private endpoint connection." - }, - "provisioningState": { - "description": "State of the private endpoint connection.", - "type": "string", - "readOnly": true - } - } - }, - "PrivateEndpointProperty": { - "description": "Private endpoint which the connection belongs to.", - "type": "object", - "properties": { - "id": { - "description": "Resource id of the private endpoint.", - "type": "string" - } - } - }, - "PrivateLinkServiceConnectionStateProperty": { - "description": "State of the private endpoint connection.", - "type": "object", - "required": [ - "status", - "description" - ], - "properties": { - "status": { - "description": "The private link service connection status.", - "type": "string" - }, - "description": { - "description": "The private link service connection description.", - "type": "string" - }, - "actionsRequired": { - "description": "The actions required for private link service connection.", - "type": "string", - "readOnly": true - } - } - }, - "PrivateEndpointConnection": { - "description": "A private endpoint connection", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - } - }, "PrivateEndpointConnectionListResult": { "description": "A list of private endpoint connections.", "type": "object", @@ -1013,7 +979,7 @@ "description": "Array of results.", "type": "array", "items": { - "$ref": "#/definitions/PrivateEndpointConnection" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" }, "readOnly": true }, @@ -1048,7 +1014,7 @@ "type": "object", "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" } ], "properties": { @@ -1057,6 +1023,11 @@ "description": "Resource properties.", "x-ms-client-flatten": true } + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "System data", + "readOnly": true } }, "ScopedResourceProperties": { @@ -1074,81 +1045,16 @@ } } }, - "ProxyResource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Azure resource name" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - } - }, - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "ErrorResponse": { - "description": "Describes the format of Error response.", + "DefaultErrorResponse": { + "title": "Default error response", + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", "type": "object", "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" + "error": { + "description": "The error object.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail" } } - }, - "ErrorResponseCommon": { - "allOf": [ - { - "$ref": "#/definitions/ErrorResponse" - } - ], - "properties": { - "details": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ErrorResponseCommon" - }, - "description": "The error details." - }, - "additionalInfo": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ErrorAdditionalInfo" - }, - "description": "The error additional info." - } - }, - "description": "The resource management error response." - }, - "ErrorAdditionalInfo": { - "properties": { - "type": { - "readOnly": true, - "type": "string", - "description": "The additional info type." - }, - "info": { - "readOnly": true, - "type": "object", - "description": "The additional info." - } - }, - "description": "The resource management error additional info." } }, "parameters": { @@ -1160,14 +1066,6 @@ "description": "The name of the Azure Monitor PrivateLinkScope resource.", "x-ms-parameter-location": "method" }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "GroupNameParameter": { "name": "groupName", "in": "path", diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index 064cdc336f0c..0793b70b9982 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -38,6 +38,15 @@ openapi-type: arm tag: package-2021-04 ``` +### Tag: package-2021-07-01-preview-only + +These settings apply only when `--tag=package-2021-07-01-preview-only` is specified on the command line. + +``` yaml $(tag) == 'package-2021-07-01-preview-only' +input-file: +- Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +``` + ### Tag: package-2021-04 These settings apply only when `--tag=package-2021-04` is specified on the command line. @@ -691,6 +700,21 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-monitor ``` yaml directive: + - suppress: R4009 + from: privateLinkScopes_API.json + reason: 'Contract is defined in the Network RP private endpoint spec, can be updated by internal calls from Network RP. ' + - suppress: R3018 + from: privateLinkScopes_API.json + where: $.definitions.PrivateEndpointConnectionProperties.properties.queryOnlyPrivateLinkResources + reason: 'This property indicates whether data coming through this private endpoint should restrict itself only to resources in the scope - it has only ''''true'''' or ''''false'''' options, so it fits boolean type.' + - suppress: R3018 + from: privateLinkScopes_API.json + where: $.definitions.PrivateEndpointConnectionProperties.properties.ingestOnlyToPrivateLinkResources + reason: 'This property indicates whether data coming through this private endpoint should restrict itself only to resources in the scope - it has only ''''true'''' or ''''false'''' options, so it fits boolean type.' + - suppress: OperationsAPIImplementation + from: privateLinkScopes_API.json + where: $.paths + reason: 'Operations API is defined in a separate swagger spec for Microsoft.Insights namespace (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json)' - suppress: R3016 reason: The feature (polymorphic types) is in the process of deprecation and fixing this will require changes in the backend. - suppress: OperationsAPIImplementation diff --git a/specification/monitor/resource-manager/readme.python.md b/specification/monitor/resource-manager/readme.python.md index 58a0df297311..b793bbc64b51 100644 --- a/specification/monitor/resource-manager/readme.python.md +++ b/specification/monitor/resource-manager/readme.python.md @@ -50,6 +50,17 @@ output-folder: $(python-sdks-folder)/monitor/azure-mgmt-monitor/azure/mgmt/monit clear-output-folder: false perform-load: false ``` + +### Tag: package-2021-07-01-preview-only and python + +These settings apply only when `--tag=package-2021-07-01-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2021-07-01-preview-only' +namespace: $(python-base-namespace).v2021_07_01_preview +output-folder: $(python-sdks-folder)/$(python-base-folder)/v2021_07_01_preview +``` + ### Tag: package-2021-05-01-preview-only and python These settings apply only when `--tag=package-2021-05-01-preview-only --python` is specified on the command line. From 131112ffff3bdea5453b05ba34f3a9cbd2694664 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Sun, 18 Jul 2021 12:53:37 +0300 Subject: [PATCH 03/13] Update privateLinkScopes_API.json --- .../preview/2021-07-01-preview/privateLinkScopes_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 10807ca1eb8a..110991dc3ae3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -928,7 +928,7 @@ "description": "List of private endpoint connections.", "type": "array", "items": { - "$ref": "#/definitions/PrivateEndpointConnection" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" } } } From 4b1f212f954d05a694aec6ebbbbaee57f653d13d Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Sun, 18 Jul 2021 13:06:27 +0300 Subject: [PATCH 04/13] Update privateLinkScopes_API.json --- .../privateLinkScopes_API.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 110991dc3ae3..6c46fc024ba2 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -898,6 +898,11 @@ "x-ms-client-flatten": true, "description": "Properties that define a Azure Monitor PrivateLinkScope resource.", "$ref": "#/definitions/AzureMonitorPrivateLinkScopeProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "System data", + "readOnly": true } }, "allOf": [ @@ -908,11 +913,6 @@ "required": [ "properties" ], - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "System data", - "readOnly": true - }, "description": "An Azure Monitor PrivateLinkScope definition." }, "AzureMonitorPrivateLinkScopeProperties": { @@ -1022,12 +1022,12 @@ "$ref": "#/definitions/ScopedResourceProperties", "description": "Resource properties.", "x-ms-client-flatten": true + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "description": "System data", + "readOnly": true } - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "description": "System data", - "readOnly": true } }, "ScopedResourceProperties": { From 7042edbdd3207b2f3486f6777af4c5945f0ff03d Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Sun, 18 Jul 2021 13:36:17 +0300 Subject: [PATCH 05/13] add new access mode settings --- .../examples/PrivateLinkScopesCreate.json | 14 +++++- .../examples/PrivateLinkScopesGet.json | 7 ++- .../examples/PrivateLinkScopesList.json | 14 +++++- .../PrivateLinkScopesListByResourceGroup.json | 14 +++++- .../examples/PrivateLinkScopesUpdate.json | 14 +++++- .../PrivateLinkScopesUpdateTagsOnly.json | 7 ++- .../privateLinkScopes_API.json | 48 +++++++++++++++++++ 7 files changed, 108 insertions(+), 10 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json index 1df9f2db5f31..2b4533116342 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json @@ -26,7 +26,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } }, @@ -46,7 +51,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json index a2759a72234d..7d006a58b609 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json @@ -22,7 +22,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json index e1d17d928dfc..b1fc22940624 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json @@ -22,7 +22,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } }, { @@ -40,7 +45,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } ], diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json index 86f84d2e7634..0af627933dff 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json @@ -23,7 +23,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } }, { @@ -41,7 +46,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } ], diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json index fae2fa75cf40..ac83de62362e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json @@ -31,7 +31,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } }, @@ -53,7 +58,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json index 3ca3a8739463..4384513b18fc 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json @@ -31,7 +31,12 @@ "lastModifiedAt": "2021-06-16T12:59:57.051056Z" }, "properties": { - "provisioningState": "Succeeded" + "provisioningState": "Succeeded", + "accessModeSettings": { + "queryOnlyPrivateLinkResources": false, + "ingestOnlyToPrivateLinkResources": false, + "exclusions": [] + } } } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 6c46fc024ba2..c74d513e736e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -930,9 +930,57 @@ "items": { "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" } + }, + "accessModeSettings": { + "$ref": "#/definitions/AccessModeSettings", + "description": "Access mode settings" } } }, + "AccessModeSettings": { + "description": "Properties that define the scope private link mode settings.", + "properties": { + "queryOnlyPrivateLinkResources": { + "description": "Restrict queries from all associated private endpoints only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "type": "boolean" + }, + "ingestOnlyToPrivateLinkResources": { + "description": "Restrict queries from all associated private endpoints only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "type": "boolean" + }, + "exclusions": { + "description": "List of exclusions that override the default access mode settings for specific private endpoint connections.", + "type": "array", + "items": { + "$ref": "#/definitions/AccessModeSettingsExclusion" + } + } + }, + "required": [ + "queryOnlyPrivateLinkResources", + "ingestOnlyToPrivateLinkResources" + ] + }, + "AccessModeSettingsExclusion": { + "description": "Properties that define the scope private link mode settings exclusion item. This setting applies to a specific private endpoint connection and overrides the default settings for that private endpoint connection.", + "properties": { + "privateEndpointConnectionName": { + "description": "The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings.", + "type": "boolean" + }, + "queryOnlyPrivateLinkResources": { + "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specificed on the parent settings level.", + "type": "boolean" + }, + "ingestOnlyToPrivateLinkResources": { + "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specificed on the parent settings level.", + "type": "boolean" + } + }, + "required": [ + "privateEndpointConnectionName" + ] + }, "AzureMonitorPrivateLinkScopeListResult": { "description": "Describes the list of Azure Monitor PrivateLinkScope resources.", "required": [ From 32f43a79f1849d78033f8aff8f63e9c03b4cce97 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Sun, 18 Jul 2021 13:42:05 +0300 Subject: [PATCH 06/13] Update privateLinkScopes_API.json --- .../2021-07-01-preview/privateLinkScopes_API.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index c74d513e736e..54cafe4e7d26 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -932,20 +932,22 @@ } }, "accessModeSettings": { + "type": "object", "$ref": "#/definitions/AccessModeSettings", "description": "Access mode settings" } } }, "AccessModeSettings": { - "description": "Properties that define the scope private link mode settings.", + "type": "object", + "description": "Properties that define the scope private link mode settings. These apply to all private endpoint connections associated with the scope unless specified otherwise in the exclusions array.", "properties": { "queryOnlyPrivateLinkResources": { - "description": "Restrict queries from all associated private endpoints only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "description": "Restrict queries from all associated private endpoint connections only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", "type": "boolean" }, "ingestOnlyToPrivateLinkResources": { - "description": "Restrict queries from all associated private endpoints only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "description": "Restrict queries from all associated private endpoint connections only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", "type": "boolean" }, "exclusions": { @@ -962,6 +964,7 @@ ] }, "AccessModeSettingsExclusion": { + "type": "object", "description": "Properties that define the scope private link mode settings exclusion item. This setting applies to a specific private endpoint connection and overrides the default settings for that private endpoint connection.", "properties": { "privateEndpointConnectionName": { @@ -969,11 +972,11 @@ "type": "boolean" }, "queryOnlyPrivateLinkResources": { - "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specificed on the parent settings level.", + "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specified on the parent settings level.", "type": "boolean" }, "ingestOnlyToPrivateLinkResources": { - "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specificed on the parent settings level.", + "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specified on the parent settings level.", "type": "boolean" } }, From aec7cda899160734c71f3062982f23d53fcaa681 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Thu, 22 Jul 2021 09:25:46 +0300 Subject: [PATCH 07/13] access mode --- .../examples/PrivateLinkScopesCreate.json | 8 ++-- .../examples/PrivateLinkScopesGet.json | 4 +- .../examples/PrivateLinkScopesList.json | 8 ++-- .../PrivateLinkScopesListByResourceGroup.json | 8 ++-- .../examples/PrivateLinkScopesUpdate.json | 8 ++-- .../PrivateLinkScopesUpdateTagsOnly.json | 4 +- .../privateLinkScopes_API.json | 42 ++++++++++++------- 7 files changed, 47 insertions(+), 35 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json index 2b4533116342..05def2f2fe98 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json @@ -28,8 +28,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } @@ -53,8 +53,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json index 7d006a58b609..39f6e65743da 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json @@ -24,8 +24,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json index b1fc22940624..7f4059ca4d9e 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json @@ -24,8 +24,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } @@ -47,8 +47,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json index 0af627933dff..430fb1a5c2c0 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json @@ -25,8 +25,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } @@ -48,8 +48,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json index ac83de62362e..6e4165ca16ef 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json @@ -33,8 +33,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } @@ -60,8 +60,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json index 4384513b18fc..55097ecf515a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json @@ -33,8 +33,8 @@ "properties": { "provisioningState": "Succeeded", "accessModeSettings": { - "queryOnlyPrivateLinkResources": false, - "ingestOnlyToPrivateLinkResources": false, + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", "exclusions": [] } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 54cafe4e7d26..0bc5aa6e9e77 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -940,15 +940,15 @@ }, "AccessModeSettings": { "type": "object", - "description": "Properties that define the scope private link mode settings. These apply to all private endpoint connections associated with the scope unless specified otherwise in the exclusions array.", + "description": "Properties that define the scope private link mode settings.", "properties": { - "queryOnlyPrivateLinkResources": { - "description": "Restrict queries from all associated private endpoint connections only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", - "type": "boolean" + "queryAccessMode": { + "description": "Specifies the default access mode of ingestion through associated private endpoints. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "$ref": "#/definitions/AccessMode" }, - "ingestOnlyToPrivateLinkResources": { - "description": "Restrict queries from all associated private endpoint connections only to scoped resources in the scope. If not specified default value is 'false'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", - "type": "boolean" + "ingestionAccessMode": { + "description": "Specifies the default access mode of ingestion through associated private endpoints. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "$ref": "#/definitions/AccessMode" }, "exclusions": { "description": "List of exclusions that override the default access mode settings for specific private endpoint connections.", @@ -959,8 +959,8 @@ } }, "required": [ - "queryOnlyPrivateLinkResources", - "ingestOnlyToPrivateLinkResources" + "queryAccessMode", + "ingestionAccessMode" ] }, "AccessModeSettingsExclusion": { @@ -971,19 +971,31 @@ "description": "The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings.", "type": "boolean" }, - "queryOnlyPrivateLinkResources": { - "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specified on the parent settings level.", - "type": "boolean" + "queryAccessMode": { + "description": "Specifies the access mode of queries through the specified private endpoint connection in the exclusion.", + "$ref": "#/definitions/AccessMode" }, - "ingestOnlyToPrivateLinkResources": { - "description": "Restrict queries from this private endpoint connection only to scoped resources in the scope. If not specified default value is as specified on the parent settings level.", - "type": "boolean" + "ingestionAccessMode": { + "description": "Specifies the access mode of ingestion through the specified private endpoint connection in the exclusion.", + "$ref": "#/definitions/AccessMode" } }, "required": [ "privateEndpointConnectionName" ] }, + "AccessMode": { + "description": "Access mode types.", + "type": "string", + "enum": [ + "Open", + "PrivateOnly" + ], + "x-ms-enum": { + "name": "AccessMode", + "modelAsString": true + } + }, "AzureMonitorPrivateLinkScopeListResult": { "description": "Describes the list of Azure Monitor PrivateLinkScope resources.", "required": [ From 7a70b55035c14c32a204589738f8e595378d5faa Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Thu, 22 Jul 2021 09:27:37 +0300 Subject: [PATCH 08/13] access mode --- .../preview/2021-07-01-preview/privateLinkScopes_API.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 0bc5aa6e9e77..86e3c4d0ad62 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -943,11 +943,11 @@ "description": "Properties that define the scope private link mode settings.", "properties": { "queryAccessMode": { - "description": "Specifies the default access mode of ingestion through associated private endpoints. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "description": "Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", "$ref": "#/definitions/AccessMode" }, "ingestionAccessMode": { - "description": "Specifies the default access mode of ingestion through associated private endpoints. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", + "description": "Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.", "$ref": "#/definitions/AccessMode" }, "exclusions": { From eec06ebba51bad18e802b9f6ec5fdd4cf1ecff52 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Fri, 23 Jul 2021 09:36:54 +0300 Subject: [PATCH 09/13] PEs common type --- ...teLinkScopePrivateLinkResourceListGet.json | 3 +- .../privateLinkScopes_API.json | 47 ++----------------- 2 files changed, 4 insertions(+), 46 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json index 042ac73175af..29a8e95cc81a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json @@ -33,8 +33,7 @@ ] } } - ], - "nextLink": null + ] } } } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 86e3c4d0ad62..2729c92a6f75 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -367,7 +367,7 @@ "200": { "description": "Successfully retrieved private link resources.", "schema": { - "$ref": "#/definitions/PrivateLinkResourceListResult" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResourceListResult" } }, "default": { @@ -613,7 +613,7 @@ "200": { "description": "Successfully retrieved private endpoint connections.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionListResult" + "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnectionListResult" } }, "default": { @@ -623,9 +623,6 @@ } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "Gets list of private endpoint connections on a private link scope.": { "$ref": "./examples/PrivateEndpointConnectionList.json" @@ -969,7 +966,7 @@ "properties": { "privateEndpointConnectionName": { "description": "The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings.", - "type": "boolean" + "type": "string" }, "queryAccessMode": { "description": "Specifies the access mode of queries through the specified private endpoint connection in the exclusion.", @@ -1015,44 +1012,6 @@ } } }, - "PrivateLinkResourceListResult": { - "description": "A list of private link resources", - "type": "object", - "properties": { - "value": { - "description": "Array of results.", - "type": "array", - "items": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateLinkResource" - }, - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "PrivateEndpointConnectionListResult": { - "description": "A list of private endpoint connections.", - "type": "object", - "properties": { - "value": { - "description": "Array of results.", - "type": "array", - "items": { - "$ref": "../../../../../common-types/resource-management/v2/privatelinks.json#/definitions/PrivateEndpointConnection" - }, - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, "ScopedResourceListResult": { "description": "A list of scoped resources in a private link scope.", "type": "object", From 15bc445b5769f86185abf1d2b3e08520eae94276 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Fri, 23 Jul 2021 09:42:17 +0300 Subject: [PATCH 10/13] Update privateLinkScopes_API.json --- .../preview/2021-07-01-preview/privateLinkScopes_API.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 2729c92a6f75..6c289bc9c7fe 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -346,9 +346,6 @@ ], "description": "Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.", "operationId": "PrivateLinkResources_ListByPrivateLinkScope", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" From 1cbe70aebcbc0ab9ae86cf90eb02f97f54999a52 Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Tue, 17 Aug 2021 11:39:28 +0300 Subject: [PATCH 11/13] make access mode settings required --- .../preview/2021-07-01-preview/privateLinkScopes_API.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 6c289bc9c7fe..9ef6a38500b1 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -930,7 +930,10 @@ "$ref": "#/definitions/AccessModeSettings", "description": "Access mode settings" } - } + }, + "required": [ + "accessModeSettings" + ] }, "AccessModeSettings": { "type": "object", From 648affdaedcafb984a9c1beaa1147ec4ce339fbd Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Wed, 25 Aug 2021 07:43:08 +0300 Subject: [PATCH 12/13] Update privateLinkScopes_API.json --- .../preview/2021-07-01-preview/privateLinkScopes_API.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json index 9ef6a38500b1..30da6ca51d49 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json @@ -976,10 +976,7 @@ "description": "Specifies the access mode of ingestion through the specified private endpoint connection in the exclusion.", "$ref": "#/definitions/AccessMode" } - }, - "required": [ - "privateEndpointConnectionName" - ] + } }, "AccessMode": { "description": "Access mode types.", From ca0996556157da2b3dbc4b2ed594ab5d30644f5e Mon Sep 17 00:00:00 2001 From: Arie Olshanezky Date: Wed, 25 Aug 2021 07:46:46 +0300 Subject: [PATCH 13/13] add required property to example --- .../examples/PrivateLinkScopesCreate.json | 8 +++++++- .../examples/PrivateLinkScopesUpdate.json | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json index 05def2f2fe98..df10df7a5091 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json @@ -6,7 +6,13 @@ "scopeName": "my-privatelinkscope", "AzureMonitorPrivateLinkScopePayload": { "location": "Global", - "properties": {} + "properties": { + "accessModeSettings": { + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", + "exclusions": [] + } + } } }, "responses": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json index 6e4165ca16ef..914534421db3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json @@ -9,7 +9,13 @@ "tags": { "Tag1": "Value1" }, - "properties": {} + "properties": { + "accessModeSettings": { + "queryAccessMode": "Open", + "ingestionAccessMode": "Open", + "exclusions": [] + } + } } }, "responses": {