From a26755692c3010db5e86fb7fa48c2ceecd030b74 Mon Sep 17 00:00:00 2001 From: Qingquan Zhao Date: Tue, 14 Jun 2022 18:53:04 -0400 Subject: [PATCH 1/4] checkin Microsoft.Dashboard 2022-05-01-preview --- .../examples/Grafana_Create.json | 99 ++ .../examples/Grafana_Delete.json | 13 + .../examples/Grafana_Get.json | 45 + .../examples/Grafana_List.json | 39 + .../examples/Grafana_ListByResourceGroup.json | 40 + .../examples/Grafana_Update.json | 46 + .../examples/Operations_List.json | 25 + .../PrivateEndpointConnections_Approve.json | 40 + .../PrivateEndpointConnections_Delete.json | 13 + .../PrivateEndpointConnections_Get.json | 32 + .../PrivateEndpointConnections_List.json | 36 + .../examples/PrivateLinkResources_Get.json | 27 + .../examples/PrivateLinkResources_List.json | 31 + .../preview/2022-05-01-preview/grafana.json | 1085 +++++++++++++++++ 14 files changed, 1571 insertions(+) create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json new file mode 100644 index 000000000000..6e1dfb0d7458 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json @@ -0,0 +1,99 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "requestBodyParameters": { + "sku": { + "name": "Standard" + }, + "properties": { + "publicNetworkAccess": "Enabled", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled" + }, + "identity": { + "type": "SystemAssigned" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", + "name": "myWorkspace", + "type": "Microsoft.Dashboard/grafana", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "grafanaVersion": "8.4.5", + "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], + "publicNetworkAccess": "Enabled", + "autoGeneratedDomainNameLabelScope": "TenantReuse" + }, + "identity": { + "type": "SystemAssigned" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US", + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", + "name": "myWorkspace", + "type": "Microsoft.Dashboard/grafana", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Accepted", + "grafanaVersion": "8.4.5", + "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "publicNetworkAccess": "Enabled", + "autoGeneratedDomainNameLabelScope": "TenantReuse" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US", + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json new file mode 100644 index 000000000000..7ad0513993be --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json new file mode 100644 index 000000000000..25ddf2bf2654 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", + "name": "myWorkspace", + "type": "Microsoft.Dashboard/grafana", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "grafanaVersion": "8.4.5", + "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], + "autoGeneratedDomainNameLabelScope": "TenantReuse" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US", + "systemData": { + "createdBy": "string", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json new file mode 100644 index 000000000000..7dc5468af023 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", + "name": "myWorkspace", + "type": "Microsoft.Dashboard/grafana", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "grafanaVersion": "8.4.5", + "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], + "autoGeneratedDomainNameLabelScope": "TenantReuse" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ] + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json new file mode 100644 index 000000000000..343bb050081f --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", + "name": "myWorkspace", + "type": "Microsoft.Dashboard/grafana", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "grafanaVersion": "8.4.5", + "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], + "autoGeneratedDomainNameLabelScope": "TenantReuse" + }, + "tags": { + "Environment": "Dev" + }, + "location": "West US" + } + ] + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json new file mode 100644 index 000000000000..4a2a00360d09 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "requestBodyParameters": { + "tags": { + "Environment": "Dev 2" + }, + "properties": { + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace", + "name": "myWorkspace", + "type": "Microsoft.Dashboard/grafana", + "sku": { + "name": "Standard" + }, + "properties": { + "provisioningState": "Succeeded", + "grafanaVersion": "8.4.5", + "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], + "autoGeneratedDomainNameLabelScope": "TenantReuse" + }, + "tags": { + "Environment": "Dev 2" + }, + "location": "West US" + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..7c4024af4dab --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Dashboard/grafana/write", + "display": { + "provider": "Microsoft.Dashboard", + "resource": "grafana", + "operation": "write", + "description": "Write grafana workspace resource" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json new file mode 100644 index 000000000000..2d1c838a8daa --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateEndpointConnectionName": "myConnection", + "privateEndpointConnection": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "test" + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", + "name": "myConnection", + "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", + "properties": { + "provisioningState": "Accepted", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "test", + "actionsRequired": "None" + }, + "groupIds": [ + "grafana" + ] + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json new file mode 100644 index 000000000000..bb846d4019f7 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateEndpointConnectionName": "myConnection" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json new file mode 100644 index 000000000000..cc1b3ffa2cde --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateEndpointConnectionName": "myConnection" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", + "name": "myConnection", + "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", + "properties": { + "provisioningState": "Accepted", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "string", + "actionsRequired": "None" + }, + "groupIds": [ + "grafana" + ] + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json new file mode 100644 index 000000000000..d9dff58b315a --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", + "name": "myConnection", + "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", + "properties": { + "provisioningState": "Accepted", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "string", + "actionsRequired": "None" + }, + "groupIds": [ + "grafana" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json new file mode 100644 index 000000000000..4d1ebff97352 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateLinkResourceName": "grafana" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana", + "name": "grafana", + "type": "Microsoft.Dashboard/grafana/PrivateLinkResources", + "properties": { + "groupId": "grafana", + "requiredMembers": [ + "grafana" + ], + "requiredZoneNames": [ + "grafana.azure.com" + ] + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json new file mode 100644 index 000000000000..874046508cb3 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana", + "name": "grafana", + "type": "Microsoft.Dashboard/grafana/PrivateLinkResources", + "properties": { + "groupId": "grafana", + "requiredMembers": [ + "grafana" + ], + "requiredZoneNames": [ + "grafana.azure.com" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json new file mode 100644 index 000000000000..3c8cc85d8464 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json @@ -0,0 +1,1085 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.Dashboard", + "description": "The Microsoft.Dashboard Rest API spec.", + "version": "2022-05-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/providers/Microsoft.Dashboard/operations": { + "get": { + "tags": [ + "GrafanaResource" + ], + "summary": "List all available API operations provided by Microsoft.Dashboard.", + "operationId": "Operations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return all available API operations provided by Microsoft.Dashboard.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana": { + "get": { + "tags": [ + "GrafanaResource" + ], + "summary": "List all resources of workspaces for Grafana under the specified subscription.", + "operationId": "Grafana_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return all resources of workspaces for Grafana under the specified subscription.", + "schema": { + "$ref": "#/definitions/ManagedGrafanaListResponse" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Grafana_List": { + "$ref": "./examples/Grafana_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana": { + "get": { + "tags": [ + "GrafanaResource" + ], + "summary": "List all resources of workspaces for Grafana under the specified resource group.", + "operationId": "Grafana_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return all resources of workspaces for Grafana under the given resource group.", + "schema": { + "$ref": "#/definitions/ManagedGrafanaListResponse" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Grafana_ListByResourceGroup": { + "$ref": "./examples/Grafana_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}": { + "get": { + "tags": [ + "GrafanaResource" + ], + "summary": "Get the properties of a specific workspace for Grafana resource.", + "operationId": "Grafana_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return the properties of the required workspace for Grafana resource.", + "schema": { + "$ref": "#/definitions/ManagedGrafana" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Grafana_Get": { + "$ref": "./examples/Grafana_Get.json" + } + } + }, + "put": { + "tags": [ + "GrafanaResource" + ], + "summary": "Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.", + "operationId": "Grafana_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "requestBodyParameters", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedGrafana" + } + } + ], + "responses": { + "200": { + "description": "OK. Successfully create a workspace for Grafana resource.", + "schema": { + "$ref": "#/definitions/ManagedGrafana" + } + }, + "201": { + "description": "Created. The operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/ManagedGrafana" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Grafana_Create": { + "$ref": "./examples/Grafana_Create.json" + } + } + }, + "patch": { + "tags": [ + "GrafanaResource" + ], + "summary": "Update a workspace for Grafana resource.", + "operationId": "Grafana_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "requestBodyParameters", + "required": true, + "schema": { + "$ref": "#/definitions/ManagedGrafanaUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "OK. Successfully update the workspace for Grafana resource.", + "schema": { + "$ref": "#/definitions/ManagedGrafana" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Grafana_Update": { + "$ref": "./examples/Grafana_Update.json" + } + } + }, + "delete": { + "tags": [ + "GrafanaResource" + ], + "summary": "Delete a workspace for Grafana resource.", + "operationId": "Grafana_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The workspace for Grafana resource is deleted." + }, + "202": { + "description": "Accepted. The operation is accepted and will be completed asynchronously." + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "Grafana_Delete": { + "$ref": "./examples/Grafana_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Get private endpoint connections.", + "operationId": "PrivateEndpointConnections_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return the list of the private endpoint connections for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Get": { + "$ref": "./examples/PrivateEndpointConnections_Get.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Manual approve private endpoint connection", + "operationId": "PrivateEndpointConnections_Approve", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "201": { + "description": "Created. The operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "PrivateEndpointConnections_Approve": { + "$ref": "./examples/PrivateEndpointConnections_Approve.json" + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Delete private endpoint connection", + "operationId": "PrivateEndpointConnections_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The operation is accepted and will be completed asynchronously." + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "PrivateEndpointConnections_Delete": { + "$ref": "./examples/PrivateEndpointConnections_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Get private endpoint connection", + "operationId": "PrivateEndpointConnections_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return the list of the private endpoint connections for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "PrivateEndpointConnections_List": { + "$ref": "./examples/PrivateEndpointConnections_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResource" + ], + "summary": "List all private link resources information for this grafana resource", + "operationId": "PrivateLinkResources_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return the list of the private link resources for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "PrivateLinkResources_List": { + "$ref": "./examples/PrivateLinkResources_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}": { + "get": { + "tags": [ + "PrivateLinkResource" + ], + "summary": "Get specific private link resource information for this grafana resource", + "operationId": "PrivateLinkResources_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "privateLinkResourceName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. Return the properties of the required private link resource for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkResources_Get": { + "$ref": "./examples/PrivateLinkResources_Get.json" + } + } + } + } + }, + "definitions": { + "ManagedGrafana": { + "type": "object", + "description": "The grafana resource type.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "ARM id of the grafana resource", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Name of the grafana resource.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the grafana resource.", + "type": "string", + "readOnly": true + }, + "sku": { + "description": "The Sku of the grafana resource.", + "$ref": "#/definitions/ResourceSku" + }, + "properties": { + "description": "Properties specific to the grafana resource.", + "$ref": "#/definitions/ManagedGrafanaProperties" + }, + "identity": { + "description": "The managed identity of the grafana resource.", + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + }, + "systemData": { + "description": "The system meta data relating to this grafana resource.", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "The tags for grafana resource." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The geo-location where the grafana resource lives" + } + } + }, + "ManagedGrafanaListResponse": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagedGrafana" + } + }, + "nextLink": { + "type": "string" + } + } + }, + "ManagedGrafanaProperties": { + "type": "object", + "description": "Properties specific to the grafana resource.", + "properties": { + "provisioningState": { + "description": "Provisioning state of the resource.", + "$ref": "#/definitions/ProvisioningState" + }, + "grafanaVersion": { + "description": "The Grafana software version.", + "type": "string", + "readOnly": true + }, + "endpoint": { + "description": "The endpoint of the Grafana instance.", + "type": "string", + "readOnly": true + }, + "publicNetworkAccess": { + "description": "Indicate the state for enable or disable traffic over the public interface.", + "$ref": "#/definitions/PublicNetworkAccess" + }, + "zoneRedundancy": { + "description": "The zone redundancy setting of the Grafana instance.", + "$ref": "#/definitions/ZoneRedundancy" + }, + "apiKey": { + "description": "The api key setting of the Grafana instance.", + "$ref": "#/definitions/ApiKey" + }, + "deterministicOutboundIP": { + "description": "Whether a Grafana instance uses deterministic outbound IPs.", + "$ref": "#/definitions/DeterministicOutboundIP" + }, + "outboundIPs": { + "description": "List of outbound IPs if deterministicOutboundIP is enabled.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "privateEndpointConnections": { + "description": "The private endpoint connections of the Grafana instance.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true + }, + "autoGeneratedDomainNameLabelScope": { + "description": "Scope for dns deterministic name hash calculation.", + "$ref": "#/definitions/AutoGeneratedDomainNameLabelScope" + } + } + }, + "ManagedGrafanaUpdateParameters": { + "type": "object", + "description": "The parameters for a PATCH request to a grafana resource.", + "properties": { + "identity": { + "description": "The managed identity of the grafana resource.", + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + }, + "tags": { + "type": "object", + "description": "The new tags of the grafana resource.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "Properties specific to the managed grafana resource.", + "$ref": "#/definitions/ManagedGrafanaPropertiesUpdateParameters" + } + } + }, + "ManagedGrafanaPropertiesUpdateParameters": { + "type": "object", + "description": "The properties parameters for a PATCH request to a grafana resource.", + "properties": { + "zoneRedundancy": { + "description": "The zone redundancy setting of the Grafana instance.", + "$ref": "#/definitions/ZoneRedundancy" + }, + "apiKey": { + "description": "The api key setting of the Grafana instance.", + "$ref": "#/definitions/ApiKey" + }, + "deterministicOutboundIP": { + "description": "Whether a Grafana instance uses deterministic outbound IPs.", + "$ref": "#/definitions/DeterministicOutboundIP" + }, + "publicNetworkAccess": { + "description": "Indicate the state for enable or disable traffic over the public interface.", + "$ref": "#/definitions/PublicNetworkAccess" + } + } + }, + "ProvisioningState": { + "enum": [ + "Accepted", + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "NotSpecified" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "modelAsString": true, + "name": "ProvisioningState" + } + }, + "ResourceSku": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "ZoneRedundancy": { + "enum": [ + "Disabled", + "Enabled" + ], + "default": "Disabled", + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ZoneRedundancy" + } + }, + "ApiKey": { + "enum": [ + "Disabled", + "Enabled" + ], + "default": "Disabled", + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ApiKey" + } + }, + "DeterministicOutboundIP": { + "enum": [ + "Disabled", + "Enabled" + ], + "default": "Disabled", + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "DeterministicOutboundIP" + } + }, + "PublicNetworkAccess": { + "description": "Indicate the state for enable or disable traffic over the public interface.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + }, + "AutoGeneratedDomainNameLabelScope": { + "description": "Scope for dns deterministic name hash calculation", + "enum": [ + "TenantReuse" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "AutoGeneratedDomainNameLabelScope" + }, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "PrivateEndpointConnection": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "x-ms-client-flatten": true, + "description": "Resource properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ], + "description": "The Private Endpoint Connection resource." + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpoint", + "description": "The resource of private end point." + }, + "privateLinkServiceConnectionState": { + "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateLinkServiceConnectionState", + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private endpoint connection group ids." + }, + "provisioningState": { + "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnectionProvisioningState", + "description": "The provisioning state of the private endpoint connection resource." + } + }, + "required": [ + "privateLinkServiceConnectionState" + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "PrivateEndpointConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private endpoint connections", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any).", + "readOnly": true + } + }, + "description": "List of private endpoint connection associated with the specified storage account" + }, + "PrivateLinkResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ], + "description": "A private link resource" + }, + "PrivateLinkResourceProperties": { + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the resource.", + "$ref": "#/definitions/ProvisioningState" + }, + "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 + }, + "requiredZoneNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource Private link DNS zone name." + } + }, + "description": "Properties of a private link resource." + }, + "PrivateLinkResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private link resources", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any).", + "readOnly": true + } + }, + "description": "A list of private link resources" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "parameters": { + "WorkspaceNameParameter": { + "in": "path", + "name": "workspaceName", + "description": "The workspace name of Azure Managed Grafana.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "PrivateEndpointConnectionNameParameter": { + "in": "path", + "name": "privateEndpointConnectionName", + "description": "The private endpoint connection name of Azure Managed Grafana.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} From 9ca845a50549084302318697ce90c55cad9d0c13 Mon Sep 17 00:00:00 2001 From: Qingquan Zhao Date: Tue, 14 Jun 2022 21:23:34 -0400 Subject: [PATCH 2/4] modify readme --- specification/dashboard/resource-manager/readme.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/dashboard/resource-manager/readme.md b/specification/dashboard/resource-manager/readme.md index 4e3826a7c85c..60d79f3aabf8 100644 --- a/specification/dashboard/resource-manager/readme.md +++ b/specification/dashboard/resource-manager/readme.md @@ -23,7 +23,7 @@ These are the global settings for the Dashboard API. title: DashboardManagementClient openapi-type: arm openapi-subtype: rpaas -tag: package-2021-09-01-preview +tag: package-2022-05-01-preview ``` ### Tag: package-2021-09-01-preview @@ -35,6 +35,15 @@ input-file: - Microsoft.Dashboard/preview/2021-09-01-preview/grafana.json ``` +### Tag: package-2022-05-01-preview + +These settings apply only when `--tag=package-2022-05-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2022-05-01-preview' +input-file: + - Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json +``` + # Code Generation ## Swagger to SDK From 95ab3a2da74a86886adc94ef4fdc9337c97225dd Mon Sep 17 00:00:00 2001 From: Qingquan Zhao Date: Thu, 16 Jun 2022 19:16:49 -0400 Subject: [PATCH 3/4] Copying previous 2021-09-01-preview version as base --- .../examples/Grafana_Create.json | 18 +- .../examples/Grafana_Delete.json | 2 +- .../examples/Grafana_Get.json | 8 +- .../examples/Grafana_List.json | 8 +- .../examples/Grafana_ListByResourceGroup.json | 8 +- .../examples/Grafana_Update.json | 12 +- .../examples/Operations_List.json | 2 +- .../PrivateEndpointConnections_Approve.json | 40 - .../PrivateEndpointConnections_Delete.json | 13 - .../PrivateEndpointConnections_Get.json | 32 - .../PrivateEndpointConnections_List.json | 36 - .../examples/PrivateLinkResources_Get.json | 27 - .../examples/PrivateLinkResources_List.json | 31 - .../preview/2022-05-01-preview/grafana.json | 791 ++++++------------ .../dashboard/resource-manager/readme.md | 13 +- 15 files changed, 255 insertions(+), 786 deletions(-) delete mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json delete mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json delete mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json delete mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json delete mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json delete mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json index 6e1dfb0d7458..c318d819e4a4 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01-preview", + "api-version": "2021-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace", @@ -9,10 +9,8 @@ "name": "Standard" }, "properties": { - "publicNetworkAccess": "Enabled", - "zoneRedundancy": "Enabled", - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled" + "provisioningState": "Accepted", + "zoneRedundancy": "Enabled" }, "identity": { "type": "SystemAssigned" @@ -37,13 +35,6 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled", - "outboundIPs": [ - "192.168.0.1", - "192.168.0.2" - ], - "publicNetworkAccess": "Enabled", "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "identity": { @@ -76,9 +67,6 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled", - "publicNetworkAccess": "Enabled", "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json index 7ad0513993be..82362f6340c1 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01-preview", + "api-version": "2021-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace" diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json index 25ddf2bf2654..460d9207e19c 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01-preview", + "api-version": "2021-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace" @@ -19,12 +19,6 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled", - "outboundIPs": [ - "192.168.0.1", - "192.168.0.2" - ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json index 7dc5468af023..3f647284cbd2 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01-preview", + "api-version": "2021-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -19,12 +19,6 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled", - "outboundIPs": [ - "192.168.0.1", - "192.168.0.2" - ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json index 343bb050081f..eff4acb0d44f 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01-preview", + "api-version": "2021-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup" }, @@ -20,12 +20,6 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled", - "outboundIPs": [ - "192.168.0.1", - "192.168.0.2" - ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json index 4a2a00360d09..d7ce12393250 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json @@ -1,16 +1,12 @@ { "parameters": { - "api-version": "2022-05-01-preview", + "api-version": "2021-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace", "requestBodyParameters": { "tags": { "Environment": "Dev 2" - }, - "properties": { - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled" } } }, @@ -28,12 +24,6 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", - "apiKey": "Enabled", - "deterministicOutboundIP": "Enabled", - "outboundIPs": [ - "192.168.0.1", - "192.168.0.2" - ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json index 7c4024af4dab..cf2cb2e7a4ad 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-05-01-preview" + "api-version": "2021-09-01-preview" }, "responses": { "200": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json deleted file mode 100644 index 2d1c838a8daa..000000000000 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "workspaceName": "myWorkspace", - "privateEndpointConnectionName": "myConnection", - "privateEndpointConnection": { - "properties": { - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test" - } - } - } - }, - "responses": { - "201": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", - "name": "myConnection", - "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", - "properties": { - "provisioningState": "Accepted", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "test", - "actionsRequired": "None" - }, - "groupIds": [ - "grafana" - ] - } - } - } - } -} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json deleted file mode 100644 index bb846d4019f7..000000000000 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "workspaceName": "myWorkspace", - "privateEndpointConnectionName": "myConnection" - }, - "responses": { - "202": {}, - "204": {} - } -} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json deleted file mode 100644 index cc1b3ffa2cde..000000000000 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "workspaceName": "myWorkspace", - "privateEndpointConnectionName": "myConnection" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", - "name": "myConnection", - "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", - "properties": { - "provisioningState": "Accepted", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" - }, - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "string", - "actionsRequired": "None" - }, - "groupIds": [ - "grafana" - ] - } - } - } - } -} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json deleted file mode 100644 index d9dff58b315a..000000000000 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "workspaceName": "myWorkspace" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", - "name": "myConnection", - "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", - "properties": { - "provisioningState": "Accepted", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" - }, - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "string", - "actionsRequired": "None" - }, - "groupIds": [ - "grafana" - ] - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json deleted file mode 100644 index 4d1ebff97352..000000000000 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "workspaceName": "myWorkspace", - "privateLinkResourceName": "grafana" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana", - "name": "grafana", - "type": "Microsoft.Dashboard/grafana/PrivateLinkResources", - "properties": { - "groupId": "grafana", - "requiredMembers": [ - "grafana" - ], - "requiredZoneNames": [ - "grafana.azure.com" - ] - } - } - } - } -} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json deleted file mode 100644 index 874046508cb3..000000000000 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "workspaceName": "myWorkspace" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana", - "name": "grafana", - "type": "Microsoft.Dashboard/grafana/PrivateLinkResources", - "properties": { - "groupId": "grafana", - "requiredMembers": [ - "grafana" - ], - "requiredZoneNames": [ - "grafana.azure.com" - ] - } - } - ], - "nextLink": null - } - } - } -} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json index 3c8cc85d8464..5b71e0d9aace 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Dashboard", "description": "The Microsoft.Dashboard Rest API spec.", - "version": "2022-05-01-preview" + "version": "2021-09-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -28,20 +28,20 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK. Return all available API operations provided by Microsoft.Dashboard.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + "$ref": "#/definitions/OperationListResult" } }, "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -67,10 +67,10 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -83,7 +83,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -109,13 +109,13 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -128,7 +128,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -154,16 +154,16 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -176,7 +176,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -200,16 +200,16 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "in": "body", @@ -236,7 +236,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -264,16 +264,16 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "in": "body", @@ -294,7 +294,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -315,16 +315,16 @@ ], "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -340,7 +340,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -354,314 +354,35 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { - "get": { - "tags": [ - "PrivateEndpointConnection" - ], - "summary": "Get private endpoint connections.", - "operationId": "PrivateEndpointConnections_Get", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. Return the list of the private endpoint connections for Grafana resource.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateEndpointConnections_Get": { - "$ref": "./examples/PrivateEndpointConnections_Get.json" - } - } - }, - "put": { - "tags": [ - "PrivateEndpointConnection" - ], - "summary": "Manual approve private endpoint connection", - "operationId": "PrivateEndpointConnections_Approve", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - } - ], - "responses": { - "201": { - "description": "Created. The operation was successfully started and will complete asynchronously.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "PrivateEndpointConnections_Approve": { - "$ref": "./examples/PrivateEndpointConnections_Approve.json" - } - } - }, - "delete": { - "tags": [ - "PrivateEndpointConnection" - ], - "summary": "Delete private endpoint connection", - "operationId": "PrivateEndpointConnections_Delete", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" - } - ], - "responses": { - "202": { - "description": "Accepted. The operation is accepted and will be completed asynchronously." - }, - "204": { - "description": "NoContent" - }, - "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, - "x-ms-examples": { - "PrivateEndpointConnections_Delete": { - "$ref": "./examples/PrivateEndpointConnections_Delete.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections": { - "get": { - "tags": [ - "PrivateEndpointConnection" - ], - "summary": "Get private endpoint connection", - "operationId": "PrivateEndpointConnections_List", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. Return the list of the private endpoint connections for Grafana resource.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionListResult" - } - }, - "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "PrivateEndpointConnections_List": { - "$ref": "./examples/PrivateEndpointConnections_List.json" - } - } + } + }, + "definitions": { + "ActionType": { + "description": "Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.", + "enum": [ + "Internal" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "modelAsString": true, + "name": "ActionType" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources": { - "get": { - "tags": [ - "PrivateLinkResource" - ], - "summary": "List all private link resources information for this grafana resource", - "operationId": "PrivateLinkResources_List", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. Return the list of the private link resources for Grafana resource.", - "schema": { - "$ref": "#/definitions/PrivateLinkResourceListResult" - } - }, - "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "PrivateLinkResources_List": { - "$ref": "./examples/PrivateLinkResources_List.json" - } - } + "CreatedByType": { + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "CreatedByType" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}": { - "get": { - "tags": [ - "PrivateLinkResource" - ], - "summary": "Get specific private link resource information for this grafana resource", - "operationId": "PrivateLinkResources_Get", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkspaceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "path", - "name": "privateLinkResourceName", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "OK. Return the properties of the required private link resource for Grafana resource.", - "schema": { - "$ref": "#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "PrivateLinkResources_Get": { - "$ref": "./examples/PrivateLinkResources_Get.json" - } - } - } - } - }, - "definitions": { "ManagedGrafana": { "type": "object", "description": "The grafana resource type.", @@ -692,11 +413,11 @@ }, "identity": { "description": "The managed identity of the grafana resource.", - "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + "$ref": "#/definitions/ManagedIdentity" }, "systemData": { "description": "The system meta data relating to this grafana resource.", - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" + "$ref": "#/definitions/SystemData" }, "tags": { "type": "object", @@ -752,40 +473,10 @@ "type": "string", "readOnly": true }, - "publicNetworkAccess": { - "description": "Indicate the state for enable or disable traffic over the public interface.", - "$ref": "#/definitions/PublicNetworkAccess" - }, "zoneRedundancy": { - "description": "The zone redundancy setting of the Grafana instance.", "$ref": "#/definitions/ZoneRedundancy" }, - "apiKey": { - "description": "The api key setting of the Grafana instance.", - "$ref": "#/definitions/ApiKey" - }, - "deterministicOutboundIP": { - "description": "Whether a Grafana instance uses deterministic outbound IPs.", - "$ref": "#/definitions/DeterministicOutboundIP" - }, - "outboundIPs": { - "description": "List of outbound IPs if deterministicOutboundIP is enabled.", - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - }, - "privateEndpointConnections": { - "description": "The private endpoint connections of the Grafana instance.", - "type": "array", - "items": { - "$ref": "#/definitions/PrivateEndpointConnection" - }, - "readOnly": true - }, "autoGeneratedDomainNameLabelScope": { - "description": "Scope for dns deterministic name hash calculation.", "$ref": "#/definitions/AutoGeneratedDomainNameLabelScope" } } @@ -796,7 +487,7 @@ "properties": { "identity": { "description": "The managed identity of the grafana resource.", - "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + "$ref": "#/definitions/ManagedIdentity" }, "tags": { "type": "object", @@ -804,35 +495,145 @@ "additionalProperties": { "type": "string" } + } + } + }, + "LastModifiedByType": { + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "LastModifiedByType" + } + }, + "ManagedIdentity": { + "description": "The managed identity of a resource.", + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/ManagedIdentityTypes" }, - "properties": { - "description": "Properties specific to the managed grafana resource.", - "$ref": "#/definitions/ManagedGrafanaPropertiesUpdateParameters" + "principalId": { + "description": "The principal id of the system assigned identity.", + "type": "string", + "readOnly": true + }, + "tenantId": { + "description": "The tenant id of the system assigned identity.", + "type": "string", + "readOnly": true + }, + "userAssignedIdentities": { + "description": "Dictionary of user assigned identities.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + } } } }, - "ManagedGrafanaPropertiesUpdateParameters": { + "ManagedIdentityTypes": { + "description": "The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the resource.", + "enum": [ + "None", + "SystemAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + }, + "OperationDisplay": { + "description": "Localized display information for this particular operation.", "type": "object", - "description": "The properties parameters for a PATCH request to a grafana resource.", "properties": { - "zoneRedundancy": { - "description": "The zone redundancy setting of the Grafana instance.", - "$ref": "#/definitions/ZoneRedundancy" + "provider": { + "description": "The localized friendly form of the resource provider name, i.e., Microsoft.Dashboard.", + "type": "string", + "readOnly": true }, - "apiKey": { - "description": "The api key setting of the Grafana instance.", - "$ref": "#/definitions/ApiKey" + "resource": { + "description": "The localized friendly name of the resource type related to this operation, e.g., 'grafana'.", + "type": "string", + "readOnly": true }, - "deterministicOutboundIP": { - "description": "Whether a Grafana instance uses deterministic outbound IPs.", - "$ref": "#/definitions/DeterministicOutboundIP" + "operation": { + "description": "Operation type, e.g., read, write, delete, etc.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "Description of the operation, e.g., 'Read grafana'.", + "type": "string", + "readOnly": true + } + } + }, + "OperationListResult": { + "description": "A list of REST API operations supported by Microsoft.Dashboard provider. It contains an URL link to get the next set of results.", + "type": "object", + "properties": { + "value": { + "description": "List of operations supported by the Microsoft.Dashboard provider.", + "type": "array", + "x-ms-identifiers": [], + "items": { + "$ref": "#/definitions/OperationResult" + }, + "readOnly": true + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "OperationResult": { + "description": "A Microsoft.Dashboard REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name, i.e., {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "isDataAction": { + "description": "Indicates whether the operation applies to data-plane. Set \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.", + "type": "boolean", + "readOnly": true }, - "publicNetworkAccess": { - "description": "Indicate the state for enable or disable traffic over the public interface.", - "$ref": "#/definitions/PublicNetworkAccess" + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "origin": { + "$ref": "#/definitions/Origin" + }, + "actionType": { + "$ref": "#/definitions/ActionType" } } }, + "Origin": { + "description": "The intended executor of the operation.", + "enum": [ + "user", + "system", + "user,system" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "modelAsString": true, + "name": "Origin" + } + }, "ProvisioningState": { "enum": [ "Accepted", @@ -846,7 +647,6 @@ "NotSpecified" ], "type": "string", - "readOnly": true, "x-ms-enum": { "modelAsString": true, "name": "ProvisioningState" @@ -863,31 +663,33 @@ } } }, - "ZoneRedundancy": { - "enum": [ - "Disabled", - "Enabled" - ], - "default": "Disabled", - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "ZoneRedundancy" - } - }, - "ApiKey": { - "enum": [ - "Disabled", - "Enabled" - ], - "default": "Disabled", - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "ApiKey" + "SystemData": { + "type": "object", + "readOnly": true, + "properties": { + "createdBy": { + "type": "string" + }, + "createdByType": { + "$ref": "#/definitions/CreatedByType" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "lastModifiedBy": { + "type": "string" + }, + "lastModifiedByType": { + "$ref": "#/definitions/LastModifiedByType" + }, + "lastModifiedAt": { + "format": "date-time", + "type": "string" + } } }, - "DeterministicOutboundIP": { + "ZoneRedundancy": { "enum": [ "Disabled", "Enabled" @@ -896,23 +698,25 @@ "type": "string", "x-ms-enum": { "modelAsString": true, - "name": "DeterministicOutboundIP" + "name": "ZoneRedundancy" } }, - "PublicNetworkAccess": { - "description": "Indicate the state for enable or disable traffic over the public interface.", - "enum": [ - "Enabled", - "Disabled" - ], - "type": "string", - "x-ms-enum": { - "name": "PublicNetworkAccess", - "modelAsString": true + "UserAssignedIdentity": { + "type": "object", + "properties": { + "principalId": { + "description": "The principal id of user assigned identity.", + "type": "string", + "readOnly": true + }, + "clientId": { + "description": "The client id of user assigned identity.", + "type": "string", + "readOnly": true + } } }, "AutoGeneratedDomainNameLabelScope": { - "description": "Scope for dns deterministic name hash calculation", "enum": [ "TenantReuse" ], @@ -925,132 +729,6 @@ "read", "create" ] - }, - "PrivateEndpointConnection": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateEndpointConnectionProperties", - "x-ms-client-flatten": true, - "description": "Resource properties." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" - } - ], - "description": "The Private Endpoint Connection resource." - }, - "PrivateEndpointConnectionProperties": { - "type": "object", - "properties": { - "privateEndpoint": { - "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpoint", - "description": "The resource of private end point." - }, - "privateLinkServiceConnectionState": { - "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateLinkServiceConnectionState", - "description": "A collection of information about the state of the connection between service consumer and provider." - }, - "groupIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The private endpoint connection group ids." - }, - "provisioningState": { - "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnectionProvisioningState", - "description": "The provisioning state of the private endpoint connection resource." - } - }, - "required": [ - "privateLinkServiceConnectionState" - ], - "description": "Properties of the PrivateEndpointConnectProperties." - }, - "PrivateEndpointConnectionListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "description": "Array of private endpoint connections", - "items": { - "$ref": "#/definitions/PrivateEndpointConnection" - } - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results (if there are any).", - "readOnly": true - } - }, - "description": "List of private endpoint connection associated with the specified storage account" - }, - "PrivateLinkResource": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/PrivateLinkResourceProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" - } - ], - "description": "A private link resource" - }, - "PrivateLinkResourceProperties": { - "type": "object", - "properties": { - "provisioningState": { - "description": "Provisioning state of the resource.", - "$ref": "#/definitions/ProvisioningState" - }, - "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 - }, - "requiredZoneNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The private link resource Private link DNS zone name." - } - }, - "description": "Properties of a private link resource." - }, - "PrivateLinkResourceListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "description": "Array of private link resources", - "items": { - "$ref": "#/definitions/PrivateLinkResource" - } - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results (if there are any).", - "readOnly": true - } - }, - "description": "A list of private link resources" } }, "securityDefinitions": { @@ -1073,13 +751,32 @@ "type": "string", "x-ms-parameter-location": "method" }, - "PrivateEndpointConnectionNameParameter": { + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "default": "2021-09-01-preview", + "description": "The API version to be used with the HTTP request (e.g. YYYY-MM-DD).", + "minLength": 1 + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "minLength": 1, + "x-ms-parameter-location": "method", "in": "path", - "name": "privateEndpointConnectionName", - "description": "The private endpoint connection name of Azure Managed Grafana.", "required": true, "type": "string", - "x-ms-parameter-location": "method" + "description": "The name of the resource group. The name is case insensitive." + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "client", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." } } } diff --git a/specification/dashboard/resource-manager/readme.md b/specification/dashboard/resource-manager/readme.md index 60d79f3aabf8..7b389aa187ca 100644 --- a/specification/dashboard/resource-manager/readme.md +++ b/specification/dashboard/resource-manager/readme.md @@ -23,7 +23,7 @@ These are the global settings for the Dashboard API. title: DashboardManagementClient openapi-type: arm openapi-subtype: rpaas -tag: package-2022-05-01-preview +tag: package-2021-09-01-preview ``` ### Tag: package-2021-09-01-preview @@ -35,15 +35,6 @@ input-file: - Microsoft.Dashboard/preview/2021-09-01-preview/grafana.json ``` -### Tag: package-2022-05-01-preview - -These settings apply only when `--tag=package-2022-05-01-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2022-05-01-preview' -input-file: - - Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json -``` - # Code Generation ## Swagger to SDK @@ -60,4 +51,4 @@ swagger-to-sdk: - repo: azure-sdk-for-js - repo: azure-sdk-for-java - repo: azure-powershell -``` +``` \ No newline at end of file From a781dc15df6974ff3c91e15ca966560b712143dd Mon Sep 17 00:00:00 2001 From: Qingquan Zhao Date: Thu, 16 Jun 2022 19:20:09 -0400 Subject: [PATCH 4/4] Initial check in 2022-05-01-preview based on previousversion --- .../examples/Grafana_Create.json | 18 +- .../examples/Grafana_Delete.json | 2 +- .../examples/Grafana_Get.json | 8 +- .../examples/Grafana_List.json | 8 +- .../examples/Grafana_ListByResourceGroup.json | 8 +- .../examples/Grafana_Update.json | 12 +- .../examples/Operations_List.json | 2 +- .../PrivateEndpointConnections_Approve.json | 40 + .../PrivateEndpointConnections_Delete.json | 13 + .../PrivateEndpointConnections_Get.json | 32 + .../PrivateEndpointConnections_List.json | 36 + .../examples/PrivateLinkResources_Get.json | 27 + .../examples/PrivateLinkResources_List.json | 31 + .../preview/2022-05-01-preview/grafana.json | 791 ++++++++++++------ .../dashboard/resource-manager/readme.md | 13 +- 15 files changed, 786 insertions(+), 255 deletions(-) create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json create mode 100644 specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json index c318d819e4a4..6e1dfb0d7458 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Create.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-05-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace", @@ -9,8 +9,10 @@ "name": "Standard" }, "properties": { - "provisioningState": "Accepted", - "zoneRedundancy": "Enabled" + "publicNetworkAccess": "Enabled", + "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled" }, "identity": { "type": "SystemAssigned" @@ -35,6 +37,13 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], + "publicNetworkAccess": "Enabled", "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "identity": { @@ -67,6 +76,9 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "publicNetworkAccess": "Enabled", "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json index 82362f6340c1..7ad0513993be 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Delete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-05-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace" diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json index 460d9207e19c..25ddf2bf2654 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Get.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-05-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace" @@ -19,6 +19,12 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json index 3f647284cbd2..7dc5468af023 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-05-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { @@ -19,6 +19,12 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json index eff4acb0d44f..343bb050081f 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_ListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-05-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup" }, @@ -20,6 +20,12 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json index d7ce12393250..4a2a00360d09 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Grafana_Update.json @@ -1,12 +1,16 @@ { "parameters": { - "api-version": "2021-09-01-preview", + "api-version": "2022-05-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "workspaceName": "myWorkspace", "requestBodyParameters": { "tags": { "Environment": "Dev 2" + }, + "properties": { + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled" } } }, @@ -24,6 +28,12 @@ "grafanaVersion": "8.4.5", "endpoint": "https://myworkspace-abcdefghijklmnop.wus.grafana.azure.com", "zoneRedundancy": "Enabled", + "apiKey": "Enabled", + "deterministicOutboundIP": "Enabled", + "outboundIPs": [ + "192.168.0.1", + "192.168.0.2" + ], "autoGeneratedDomainNameLabelScope": "TenantReuse" }, "tags": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json index cf2cb2e7a4ad..7c4024af4dab 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-09-01-preview" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json new file mode 100644 index 000000000000..2d1c838a8daa --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Approve.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateEndpointConnectionName": "myConnection", + "privateEndpointConnection": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "test" + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", + "name": "myConnection", + "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", + "properties": { + "provisioningState": "Accepted", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "test", + "actionsRequired": "None" + }, + "groupIds": [ + "grafana" + ] + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json new file mode 100644 index 000000000000..bb846d4019f7 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateEndpointConnectionName": "myConnection" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json new file mode 100644 index 000000000000..cc1b3ffa2cde --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateEndpointConnectionName": "myConnection" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", + "name": "myConnection", + "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", + "properties": { + "provisioningState": "Accepted", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "string", + "actionsRequired": "None" + }, + "groupIds": [ + "grafana" + ] + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json new file mode 100644 index 000000000000..d9dff58b315a --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateEndpointConnections_List.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateEndpointConnections/myConnection", + "name": "myConnection", + "type": "Microsoft.Dashboard/grafana/privateEndpointConnections", + "properties": { + "provisioningState": "Accepted", + "privateEndpoint": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Network/privateEndpoint/myEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "string", + "actionsRequired": "None" + }, + "groupIds": [ + "grafana" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json new file mode 100644 index 000000000000..4d1ebff97352 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace", + "privateLinkResourceName": "grafana" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana", + "name": "grafana", + "type": "Microsoft.Dashboard/grafana/PrivateLinkResources", + "properties": { + "groupId": "grafana", + "requiredMembers": [ + "grafana" + ], + "requiredZoneNames": [ + "grafana.azure.com" + ] + } + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json new file mode 100644 index 000000000000..874046508cb3 --- /dev/null +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/examples/PrivateLinkResources_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2022-05-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "workspaceName": "myWorkspace" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/Microsoft.Dashboard/grafana/myWorkspace/privateLinkResources/grafana", + "name": "grafana", + "type": "Microsoft.Dashboard/grafana/PrivateLinkResources", + "properties": { + "groupId": "grafana", + "requiredMembers": [ + "grafana" + ], + "requiredZoneNames": [ + "grafana.azure.com" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json index 5b71e0d9aace..3c8cc85d8464 100644 --- a/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json +++ b/specification/dashboard/resource-manager/Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json @@ -3,7 +3,7 @@ "info": { "title": "Microsoft.Dashboard", "description": "The Microsoft.Dashboard Rest API spec.", - "version": "2021-09-01-preview" + "version": "2022-05-01-preview" }, "host": "management.azure.com", "schemes": [ @@ -28,20 +28,20 @@ ], "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK. Return all available API operations provided by Microsoft.Dashboard.", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -67,10 +67,10 @@ ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -83,7 +83,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -109,13 +109,13 @@ ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -128,7 +128,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -154,16 +154,16 @@ ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -176,7 +176,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -200,16 +200,16 @@ ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -236,7 +236,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -264,16 +264,16 @@ ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "in": "body", @@ -294,7 +294,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -315,16 +315,16 @@ ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/WorkspaceNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -340,7 +340,7 @@ "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -354,35 +354,314 @@ } } } - } - }, - "definitions": { - "ActionType": { - "description": "Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.", - "enum": [ - "Internal" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "modelAsString": true, - "name": "ActionType" + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Get private endpoint connections.", + "operationId": "PrivateEndpointConnections_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return the list of the private endpoint connections for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateEndpointConnections_Get": { + "$ref": "./examples/PrivateEndpointConnections_Get.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Manual approve private endpoint connection", + "operationId": "PrivateEndpointConnections_Approve", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "201": { + "description": "Created. The operation was successfully started and will complete asynchronously.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "PrivateEndpointConnections_Approve": { + "$ref": "./examples/PrivateEndpointConnections_Approve.json" + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Delete private endpoint connection", + "operationId": "PrivateEndpointConnections_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointConnectionNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The operation is accepted and will be completed asynchronously." + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-examples": { + "PrivateEndpointConnections_Delete": { + "$ref": "./examples/PrivateEndpointConnections_Delete.json" + } + } } }, - "CreatedByType": { - "description": "The type of identity that created the resource.", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "CreatedByType" + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnection" + ], + "summary": "Get private endpoint connection", + "operationId": "PrivateEndpointConnections_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return the list of the private endpoint connections for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "PrivateEndpointConnections_List": { + "$ref": "./examples/PrivateEndpointConnections_List.json" + } + } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResource" + ], + "summary": "List all private link resources information for this grafana resource", + "operationId": "PrivateLinkResources_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Return the list of the private link resources for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "PrivateLinkResources_List": { + "$ref": "./examples/PrivateLinkResources_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}": { + "get": { + "tags": [ + "PrivateLinkResource" + ], + "summary": "Get specific private link resource information for this grafana resource", + "operationId": "PrivateLinkResources_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "path", + "name": "privateLinkResourceName", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK. Return the properties of the required private link resource for Grafana resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkResources_Get": { + "$ref": "./examples/PrivateLinkResources_Get.json" + } + } + } + } + }, + "definitions": { "ManagedGrafana": { "type": "object", "description": "The grafana resource type.", @@ -413,11 +692,11 @@ }, "identity": { "description": "The managed identity of the grafana resource.", - "$ref": "#/definitions/ManagedIdentity" + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" }, "systemData": { "description": "The system meta data relating to this grafana resource.", - "$ref": "#/definitions/SystemData" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" }, "tags": { "type": "object", @@ -473,10 +752,40 @@ "type": "string", "readOnly": true }, + "publicNetworkAccess": { + "description": "Indicate the state for enable or disable traffic over the public interface.", + "$ref": "#/definitions/PublicNetworkAccess" + }, "zoneRedundancy": { + "description": "The zone redundancy setting of the Grafana instance.", "$ref": "#/definitions/ZoneRedundancy" }, + "apiKey": { + "description": "The api key setting of the Grafana instance.", + "$ref": "#/definitions/ApiKey" + }, + "deterministicOutboundIP": { + "description": "Whether a Grafana instance uses deterministic outbound IPs.", + "$ref": "#/definitions/DeterministicOutboundIP" + }, + "outboundIPs": { + "description": "List of outbound IPs if deterministicOutboundIP is enabled.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "privateEndpointConnections": { + "description": "The private endpoint connections of the Grafana instance.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true + }, "autoGeneratedDomainNameLabelScope": { + "description": "Scope for dns deterministic name hash calculation.", "$ref": "#/definitions/AutoGeneratedDomainNameLabelScope" } } @@ -487,7 +796,7 @@ "properties": { "identity": { "description": "The managed identity of the grafana resource.", - "$ref": "#/definitions/ManagedIdentity" + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" }, "tags": { "type": "object", @@ -495,145 +804,35 @@ "additionalProperties": { "type": "string" } - } - } - }, - "LastModifiedByType": { - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "LastModifiedByType" - } - }, - "ManagedIdentity": { - "description": "The managed identity of a resource.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/ManagedIdentityTypes" }, - "principalId": { - "description": "The principal id of the system assigned identity.", - "type": "string", - "readOnly": true - }, - "tenantId": { - "description": "The tenant id of the system assigned identity.", - "type": "string", - "readOnly": true - }, - "userAssignedIdentities": { - "description": "Dictionary of user assigned identities.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/UserAssignedIdentity" - } - } - } - }, - "ManagedIdentityTypes": { - "description": "The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the resource.", - "enum": [ - "None", - "SystemAssigned" - ], - "type": "string", - "x-ms-enum": { - "name": "IdentityType", - "modelAsString": true - } - }, - "OperationDisplay": { - "description": "Localized display information for this particular operation.", - "type": "object", - "properties": { - "provider": { - "description": "The localized friendly form of the resource provider name, i.e., Microsoft.Dashboard.", - "type": "string", - "readOnly": true - }, - "resource": { - "description": "The localized friendly name of the resource type related to this operation, e.g., 'grafana'.", - "type": "string", - "readOnly": true - }, - "operation": { - "description": "Operation type, e.g., read, write, delete, etc.", - "type": "string", - "readOnly": true - }, - "description": { - "description": "Description of the operation, e.g., 'Read grafana'.", - "type": "string", - "readOnly": true - } - } - }, - "OperationListResult": { - "description": "A list of REST API operations supported by Microsoft.Dashboard provider. It contains an URL link to get the next set of results.", - "type": "object", - "properties": { - "value": { - "description": "List of operations supported by the Microsoft.Dashboard provider.", - "type": "array", - "x-ms-identifiers": [], - "items": { - "$ref": "#/definitions/OperationResult" - }, - "readOnly": true - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string", - "readOnly": true + "properties": { + "description": "Properties specific to the managed grafana resource.", + "$ref": "#/definitions/ManagedGrafanaPropertiesUpdateParameters" } } }, - "OperationResult": { - "description": "A Microsoft.Dashboard REST API operation.", + "ManagedGrafanaPropertiesUpdateParameters": { "type": "object", + "description": "The properties parameters for a PATCH request to a grafana resource.", "properties": { - "name": { - "description": "Operation name, i.e., {provider}/{resource}/{operation}.", - "type": "string", - "readOnly": true - }, - "isDataAction": { - "description": "Indicates whether the operation applies to data-plane. Set \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.", - "type": "boolean", - "readOnly": true + "zoneRedundancy": { + "description": "The zone redundancy setting of the Grafana instance.", + "$ref": "#/definitions/ZoneRedundancy" }, - "display": { - "$ref": "#/definitions/OperationDisplay" + "apiKey": { + "description": "The api key setting of the Grafana instance.", + "$ref": "#/definitions/ApiKey" }, - "origin": { - "$ref": "#/definitions/Origin" + "deterministicOutboundIP": { + "description": "Whether a Grafana instance uses deterministic outbound IPs.", + "$ref": "#/definitions/DeterministicOutboundIP" }, - "actionType": { - "$ref": "#/definitions/ActionType" + "publicNetworkAccess": { + "description": "Indicate the state for enable or disable traffic over the public interface.", + "$ref": "#/definitions/PublicNetworkAccess" } } }, - "Origin": { - "description": "The intended executor of the operation.", - "enum": [ - "user", - "system", - "user,system" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "modelAsString": true, - "name": "Origin" - } - }, "ProvisioningState": { "enum": [ "Accepted", @@ -647,6 +846,7 @@ "NotSpecified" ], "type": "string", + "readOnly": true, "x-ms-enum": { "modelAsString": true, "name": "ProvisioningState" @@ -663,32 +863,6 @@ } } }, - "SystemData": { - "type": "object", - "readOnly": true, - "properties": { - "createdBy": { - "type": "string" - }, - "createdByType": { - "$ref": "#/definitions/CreatedByType" - }, - "createdAt": { - "format": "date-time", - "type": "string" - }, - "lastModifiedBy": { - "type": "string" - }, - "lastModifiedByType": { - "$ref": "#/definitions/LastModifiedByType" - }, - "lastModifiedAt": { - "format": "date-time", - "type": "string" - } - } - }, "ZoneRedundancy": { "enum": [ "Disabled", @@ -701,22 +875,44 @@ "name": "ZoneRedundancy" } }, - "UserAssignedIdentity": { - "type": "object", - "properties": { - "principalId": { - "description": "The principal id of user assigned identity.", - "type": "string", - "readOnly": true - }, - "clientId": { - "description": "The client id of user assigned identity.", - "type": "string", - "readOnly": true - } + "ApiKey": { + "enum": [ + "Disabled", + "Enabled" + ], + "default": "Disabled", + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "ApiKey" + } + }, + "DeterministicOutboundIP": { + "enum": [ + "Disabled", + "Enabled" + ], + "default": "Disabled", + "type": "string", + "x-ms-enum": { + "modelAsString": true, + "name": "DeterministicOutboundIP" + } + }, + "PublicNetworkAccess": { + "description": "Indicate the state for enable or disable traffic over the public interface.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true } }, "AutoGeneratedDomainNameLabelScope": { + "description": "Scope for dns deterministic name hash calculation", "enum": [ "TenantReuse" ], @@ -729,6 +925,132 @@ "read", "create" ] + }, + "PrivateEndpointConnection": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "x-ms-client-flatten": true, + "description": "Resource properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ], + "description": "The Private Endpoint Connection resource." + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpoint", + "description": "The resource of private end point." + }, + "privateLinkServiceConnectionState": { + "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateLinkServiceConnectionState", + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private endpoint connection group ids." + }, + "provisioningState": { + "$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnectionProvisioningState", + "description": "The provisioning state of the private endpoint connection resource." + } + }, + "required": [ + "privateLinkServiceConnectionState" + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "PrivateEndpointConnectionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private endpoint connections", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any).", + "readOnly": true + } + }, + "description": "List of private endpoint connection associated with the specified storage account" + }, + "PrivateLinkResource": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ], + "description": "A private link resource" + }, + "PrivateLinkResourceProperties": { + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning state of the resource.", + "$ref": "#/definitions/ProvisioningState" + }, + "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 + }, + "requiredZoneNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource Private link DNS zone name." + } + }, + "description": "Properties of a private link resource." + }, + "PrivateLinkResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Array of private link resources", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any).", + "readOnly": true + } + }, + "description": "A list of private link resources" } }, "securityDefinitions": { @@ -751,32 +1073,13 @@ "type": "string", "x-ms-parameter-location": "method" }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "default": "2021-09-01-preview", - "description": "The API version to be used with the HTTP request (e.g. YYYY-MM-DD).", - "minLength": 1 - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "minLength": 1, - "x-ms-parameter-location": "method", + "PrivateEndpointConnectionNameParameter": { "in": "path", + "name": "privateEndpointConnectionName", + "description": "The private endpoint connection name of Azure Managed Grafana.", "required": true, "type": "string", - "description": "The name of the resource group. The name is case insensitive." - }, - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "minLength": 1, - "x-ms-parameter-location": "client", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + "x-ms-parameter-location": "method" } } } diff --git a/specification/dashboard/resource-manager/readme.md b/specification/dashboard/resource-manager/readme.md index 7b389aa187ca..60d79f3aabf8 100644 --- a/specification/dashboard/resource-manager/readme.md +++ b/specification/dashboard/resource-manager/readme.md @@ -23,7 +23,7 @@ These are the global settings for the Dashboard API. title: DashboardManagementClient openapi-type: arm openapi-subtype: rpaas -tag: package-2021-09-01-preview +tag: package-2022-05-01-preview ``` ### Tag: package-2021-09-01-preview @@ -35,6 +35,15 @@ input-file: - Microsoft.Dashboard/preview/2021-09-01-preview/grafana.json ``` +### Tag: package-2022-05-01-preview + +These settings apply only when `--tag=package-2022-05-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2022-05-01-preview' +input-file: + - Microsoft.Dashboard/preview/2022-05-01-preview/grafana.json +``` + # Code Generation ## Swagger to SDK @@ -51,4 +60,4 @@ swagger-to-sdk: - repo: azure-sdk-for-js - repo: azure-sdk-for-java - repo: azure-powershell -``` \ No newline at end of file +```