From 2ff4b34e2dd7fda6f44b946443ce6b6dd48e7a4f Mon Sep 17 00:00:00 2001 From: dorothyhu <72949285+dorothyhu@users.noreply.github.com> Date: Tue, 20 Jun 2023 11:00:46 -0700 Subject: [PATCH 01/23] Adds base for updating Microsoft.HybridCompute from version preview/2023-04-25-preview to version 2023-06-20-preview --- .../2023-06-20-preview/HybridCompute.json | 3316 +++++++++++++++++ .../examples/DELETEExtension.json | 20 + .../examples/DeleteRunCommand.json | 20 + .../examples/ExtensionMetadata_Get.json | 22 + .../examples/ExtensionMetadata_List.json | 33 + .../examples/Extensions_Upgrade.json | 28 + .../examples/GETAgentVersions.json | 24 + .../examples/GETExtension.json | 42 + .../examples/GETLatestAgentVersion.json | 16 + .../examples/GETNetworkProfile.json | 38 + .../examples/GetHybridIdentityMetadata.json | 27 + .../examples/GetRunCommand.json | 53 + ...dentityMetadata_ListByVirtualMachines.json | 30 + .../examples/LISTExtension.json | 64 + .../examples/ListRunCommand.json | 79 + .../examples/MachineAssessPatches.json | 37 + .../examples/MachineInstallPatches.json | 44 + .../examples/Machines_CreateOrUpdate.json | 87 + .../examples/Machines_Delete.json | 12 + .../examples/Machines_Get.json | 125 + .../Machines_ListByResourceGroup.json | 157 + .../examples/Machines_ListBySubscription.json | 155 + .../examples/Machines_Update.json | 92 + .../examples/Operations_List.json | 35 + .../examples/PUTExtension.json | 53 + .../PrivateEndpointConnectionDelete.json | 20 + .../PrivateEndpointConnectionGet.json | 32 + .../PrivateEndpointConnectionList.json | 54 + .../PrivateEndpointConnectionUpdate.json | 41 + ...rivateLinkScopePrivateLinkResourceGet.json | 31 + ...teLinkScopePrivateLinkResourceListGet.json | 35 + .../examples/PrivateLinkScopesCreate.json | 77 + .../examples/PrivateLinkScopesDelete.json | 19 + .../examples/PrivateLinkScopesGet.json | 42 + .../PrivateLinkScopesGetValidation.json | 25 + ...vateLinkScopesGetValidationForMachine.json | 26 + .../examples/PrivateLinkScopesList.json | 57 + .../PrivateLinkScopesListByResourceGroup.json | 76 + .../examples/PrivateLinkScopesUpdate.json | 84 + .../PrivateLinkScopesUpdateTagsOnly.json | 51 + .../examples/PutRunCommand.json | 98 + .../examples/UpdateExtension.json | 60 + .../examples/UpdateRunCommand.json | 63 + .../2023-06-20-preview/privateLinkScopes.json | 1130 ++++++ 44 files changed, 6630 insertions(+) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json new file mode 100644 index 000000000000..c87bf8f2eaea --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -0,0 +1,3316 @@ +{ + "swagger": "2.0", + "info": { + "title": "HybridComputeManagementClient", + "description": "The Hybrid Compute Management Client.", + "version": "2023-04-25-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}": { + "put": { + "tags": [ + "machines" + ], + "operationId": "Machines_CreateOrUpdate", + "description": "The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Machine" + }, + "description": "Parameters supplied to the Create hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Machine": { + "$ref": "./examples/Machines_CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "machines" + ], + "operationId": "Machines_Update", + "description": "The operation to update a hybrid machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineUpdate" + }, + "description": "Parameters supplied to the Update hybrid machine operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a Machine": { + "$ref": "./examples/Machines_Update.json" + } + } + }, + "delete": { + "tags": [ + "machines" + ], + "operationId": "Machines_Delete", + "description": "The operation to delete a hybrid machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete a Machine": { + "$ref": "./examples/Machines_Delete.json" + } + } + }, + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_Get", + "description": "Retrieves information about the model view or the instance view of a hybrid machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": true + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Machine" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Machine": { + "$ref": "./examples/Machines_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches": { + "post": { + "tags": [ + "machines" + ], + "operationId": "Machines_AssessPatches", + "x-ms-examples": { + "Assess patch state of a machine.": { + "$ref": "./examples/MachineAssessPatches.json" + } + }, + "description": "The operation to assess patches on a hybrid machine identity in Azure.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineAssessPatchesResult" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "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": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/installPatches": { + "post": { + "tags": [ + "machines" + ], + "operationId": "Machines_InstallPatches", + "description": "The operation to install patches on a hybrid machine identity in Azure.", + "x-ms-examples": { + "Install patch state of a machine.": { + "$ref": "./examples/MachineInstallPatches.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "name", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the hybrid machine." + }, + { + "name": "installPatchesInput", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineInstallPatchesParameters" + }, + "description": "Input for InstallPatches as directly received by the API" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineInstallPatchesResult" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "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": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_ListByResourceGroup", + "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Machines by resource group": { + "$ref": "./examples/Machines_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_ListBySubscription", + "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Machines by resource group": { + "$ref": "./examples/Machines_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}": { + "put": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_CreateOrUpdate", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/PUTExtension.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Update", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine where the extension should be created or updated." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtensionUpdate" + }, + "description": "Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Machine Extension": { + "$ref": "./examples/UpdateExtension.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Delete", + "description": "The operation to delete the extension.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine where the extension should be deleted." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a Machine Extension": { + "$ref": "./examples/DELETEExtension.json" + } + } + }, + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_Get", + "description": "The operation to get the extension.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine containing the extension." + }, + { + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GET Machine Extension": { + "$ref": "./examples/GETExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions": { + "get": { + "tags": [ + "MachineExtensions" + ], + "operationId": "MachineExtensions_List", + "description": "The operation to get all extensions of a non-Azure machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine containing the extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET all Machine Extensions": { + "$ref": "./examples/LISTExtension.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions": { + "post": { + "tags": [ + "MachineExtensions Upgrade" + ], + "operationId": "UpgradeExtensions", + "description": "The operation to Upgrade Machine Extensions.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + }, + { + "name": "extensionUpgradeParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtensionUpgrade" + }, + "description": "Parameters supplied to the Upgrade Extensions operation." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Upgrade Machine Extensions": { + "$ref": "./examples/Extensions_Upgrade.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}": { + "get": { + "tags": [ + "extensions" + ], + "operationId": "ExtensionMetadata_Get", + "description": "Gets an Extension Metadata based on location, publisher, extensionType and version", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the Extension being received." + }, + { + "name": "publisher", + "in": "path", + "required": true, + "type": "string", + "description": "The publisher of the Extension being received." + }, + { + "name": "extensionType", + "in": "path", + "required": true, + "type": "string", + "description": "The extensionType of the Extension being received." + }, + { + "name": "version", + "in": "path", + "required": true, + "type": "string", + "description": "The version of the Extension being received." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExtensionValue" + } + }, + "default": { + "description": "Error in retrieving an extension metadata", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GET an extensions metadata": { + "$ref": "./examples/ExtensionMetadata_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions": { + "get": { + "tags": [ + "extensions" + ], + "operationId": "ExtensionMetadata_List", + "description": "Gets all Extension versions based on location, publisher, extensionType", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the Extension being received." + }, + { + "name": "publisher", + "in": "path", + "required": true, + "type": "string", + "description": "The publisher of the Extension being received." + }, + { + "name": "extensionType", + "in": "path", + "required": true, + "type": "string", + "description": "The extensionType of the Extension being received." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ExtensionValueListResult" + } + }, + "default": { + "description": "Error in retrieving extension list", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "x-ms-examples": { + "GET a list of extensions": { + "$ref": "./examples/ExtensionMetadata_List.json" + } + } + } + }, + "/providers/Microsoft.HybridCompute/operations": { + "get": { + "tags": [ + "operations" + ], + "operationId": "Operations_List", + "description": "Gets a list of hybrid compute operations.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Hybrid Compute Provider Operations": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/networkProfile": { + "get": { + "tags": [ + "MachineNetworkProfile" + ], + "operationId": "NetworkProfile_Get", + "description": "The operation to get network information of hybrid machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NetworkProfile" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GET Network Profile": { + "$ref": "./examples/GETNetworkProfile.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata/{metadataName}": { + "get": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_Get", + "summary": "Gets HybridIdentityMetadata.", + "description": "Implements HybridIdentityMetadata GET method.", + "x-ms-examples": { + "GetHybridIdentityMetadata": { + "$ref": "./examples/GetHybridIdentityMetadata.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" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + }, + { + "in": "path", + "name": "metadataName", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "description": "Name of the HybridIdentityMetadata." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata": { + "get": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_ListByMachines", + "summary": "Implements GET HybridIdentityMetadata in a machine.", + "description": "Returns the list of HybridIdentityMetadata of the given machine.", + "x-ms-examples": { + "HybridIdentityMetadataListByVirtualMachines": { + "$ref": "./examples/HybridIdentityMetadata_ListByVirtualMachines.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" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadataList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions": { + "get": { + "tags": [ + "AgentVersions" + ], + "operationId": "AgentVersion_List", + "description": "Gets all Agent Versions along with the download link currently present.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "osType", + "in": "path", + "required": true, + "type": "string", + "description": "Defines the os type." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AgentVersionsList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GET Agent Versions": { + "$ref": "./examples/GETAgentVersions.json" + } + } + } + }, + "/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions/{version}": { + "get": { + "tags": [ + "AgentVersions" + ], + "operationId": "AgentVersion_Get", + "description": "Gets an Agent Version along with the download link currently present.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "osType", + "in": "path", + "required": true, + "type": "string", + "description": "Defines the os type" + }, + { + "name": "version", + "in": "path", + "required": true, + "type": "string", + "description": "Defines the agent version. To get latest, use latest or else a specific agent version." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AgentVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GET Agent Versions": { + "$ref": "./examples/GETLatestAgentVersion.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}": { + "put": { + "tags": [ + "MachineRunCommands" + ], + "operationId": "MachineRunCommands_CreateOrUpdate", + "description": "The operation to create or update a run command.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/machineNameParameter" + }, + { + "name": "runCommandName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "description": "The name of the run command." + }, + { + "name": "runCommandProperties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineRunCommand" + }, + "description": "Parameters supplied to the Create Run Command." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Updated Resource", + "schema": { + "$ref": "#/definitions/MachineRunCommand" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/MachineRunCommand" + }, + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or Update a Run Command": { + "$ref": "./examples/PutRunCommand.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "MachineRunCommands" + ], + "operationId": "MachineRunCommands_Update", + "description": "The operation to update the run command.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/machineNameParameter" + }, + { + "name": "runCommandName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "description": "The name of the run command." + }, + { + "name": "runCommandProperties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineRunCommandUpdate" + }, + "description": "Parameters supplied to the Create Run Command." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineRunCommand" + } + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a Run Command": { + "$ref": "./examples/UpdateRunCommand.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "MachineRunCommands" + ], + "operationId": "MachineRunCommands_Delete", + "description": "The operation to delete a run command.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/machineNameParameter" + }, + { + "name": "runCommandName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "description": "The name of the run command." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "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": "location" + }, + "x-ms-examples": { + "Delete a Machine Run Command": { + "$ref": "./examples/DeleteRunCommand.json" + } + } + }, + "get": { + "tags": [ + "MachineRunCommands" + ], + "operationId": "MachineRunCommands_Get", + "description": "The operation to get a run command.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/machineNameParameter" + }, + { + "name": "runCommandName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "description": "The name of the run command." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineRunCommand" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get a Run Command": { + "$ref": "./examples/GetRunCommand.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands": { + "get": { + "tags": [ + "MachineRunCommands" + ], + "operationId": "MachineRunCommands_List", + "description": "The operation to get all the run commands of a non-Azure machine.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/machineNameParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineRunCommandsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET all Machine Run Commands": { + "$ref": "./examples/ListRunCommand.json" + } + } + } + } + }, + "definitions": { + "ExtensionValueListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ExtensionValue" + }, + "description": "The list of extension metadata", + "x-ms-identifiers": [] + } + }, + "description": "The List Extension Metadata response." + }, + "ExtensionValue": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ExtensionValueProperties", + "description": "The single extension based on search criteria" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "description": "Describes a Extension Metadata" + }, + "ExtensionValueProperties": { + "type": "object", + "properties": { + "version": { + "type": "string", + "readOnly": true, + "description": "The version of the Extension being received." + }, + "extensionType": { + "type": "string", + "readOnly": true, + "description": "The type of the Extension being received." + }, + "publisher": { + "type": "string", + "readOnly": true, + "description": "The publisher of the Extension being received." + } + }, + "description": "Describes Extension Metadata properties" + }, + "OperationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/OperationValue" + }, + "description": "The list of compute operations", + "x-ms-identifiers": [] + } + }, + "description": "The List Compute Operation operation response." + }, + "OperationValue": { + "type": "object", + "properties": { + "origin": { + "type": "string", + "readOnly": true, + "description": "The origin of the compute operation." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the compute operation." + }, + "display": { + "$ref": "#/definitions/OperationValueDisplay", + "description": "Display properties" + }, + "isDataAction": { + "type": "boolean", + "readOnly": true, + "description": "This property indicates if the operation is an action or a data action" + } + }, + "description": "Describes the properties of a Compute Operation value." + }, + "OperationValueDisplay": { + "type": "object", + "properties": { + "operation": { + "type": "string", + "readOnly": true, + "description": "The display name of the compute operation." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "The display name of the resource the operation applies to." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "The description of the operation." + }, + "provider": { + "type": "string", + "readOnly": true, + "description": "The resource provider for the operation." + } + }, + "description": "Describes the properties of a Hybrid Compute Operation Value Display." + }, + "PatchSettings": { + "type": "object", + "properties": { + "assessmentMode": { + "type": "string", + "description": "Specifies the assessment mode.", + "enum": [ + "ImageDefault", + "AutomaticByPlatform" + ], + "x-ms-enum": { + "name": "AssessmentModeTypes", + "modelAsString": true + } + }, + "patchMode": { + "type": "string", + "description": "Specifies the patch mode.", + "enum": [ + "ImageDefault", + "AutomaticByPlatform", + "AutomaticByOS", + "Manual" + ], + "x-ms-enum": { + "name": "PatchModeTypes", + "modelAsString": true + } + } + }, + "description": "Specifies the patch settings." + }, + "AgentConfiguration": { + "type": "object", + "readOnly": true, + "properties": { + "proxyUrl": { + "type": "string", + "readOnly": true, + "description": "Specifies the URL of the proxy to be used." + }, + "incomingConnectionsPorts": { + "type": "array", + "readOnly": true, + "description": "Specifies the list of ports that the agent will be able to listen on.", + "items": { + "type": "string" + } + }, + "extensionsAllowList": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ConfigurationExtension" + }, + "description": "Array of extensions that are allowed to be installed or updated.", + "x-ms-identifiers": [] + }, + "extensionsBlockList": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ConfigurationExtension" + }, + "description": "Array of extensions that are blocked (cannot be installed or updated)", + "x-ms-identifiers": [] + }, + "proxyBypass": { + "type": "array", + "readOnly": true, + "description": "List of service names which should not use the specified proxy server.", + "items": { + "type": "string" + } + }, + "extensionsEnabled": { + "type": "string", + "readOnly": true, + "description": "Specifies whether the extension service is enabled or disabled." + }, + "guestConfigurationEnabled": { + "type": "string", + "readOnly": true, + "description": "Specified whether the guest configuration service is enabled or disabled." + }, + "configMode": { + "type": "string", + "readOnly": true, + "description": "Name of configuration mode to use. Modes are pre-defined configurations of security controls, extension allowlists and guest configuration, maintained by Microsoft.", + "enum": [ + "full", + "monitor" + ], + "x-ms-enum": { + "name": "agent configuration mode", + "modelAsString": true + } + } + }, + "description": "Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM." + }, + "ConfigurationExtension": { + "type": "object", + "properties": { + "publisher": { + "type": "string", + "readOnly": true, + "description": "Publisher of the extension." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of the extension." + } + }, + "description": "Describes properties that can identify extensions." + }, + "ServiceStatuses": { + "type": "object", + "properties": { + "extensionService": { + "$ref": "#/definitions/ServiceStatus", + "description": "The state of the extension service on the Arc-enabled machine." + }, + "guestConfigurationService": { + "$ref": "#/definitions/ServiceStatus", + "description": "The state of the guest configuration service on the Arc-enabled machine." + } + }, + "description": "Reports the state and behavior of dependent services." + }, + "ServiceStatus": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The current status of the service." + }, + "startupType": { + "type": "string", + "description": "The behavior of the service when the Arc-enabled machine starts up." + } + }, + "description": "Describes the status and behavior of a service." + }, + "CloudMetadata": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "readOnly": true, + "description": "Specifies the cloud provider (Azure/AWS/GCP...)." + } + }, + "description": "The metadata of the cloud environment (Azure/GCP/AWS/OCI...)." + }, + "AgentUpgrade": { + "type": "object", + "properties": { + "desiredVersion": { + "type": "string", + "description": "Specifies the version info w.r.t AgentUpgrade for the machine." + }, + "correlationId": { + "type": "string", + "description": "The correlation ID passed in from RSM per upgrade." + }, + "enableAutomaticUpgrade": { + "type": "boolean", + "description": "Specifies if RSM should try to upgrade this machine" + }, + "lastAttemptDesiredVersion": { + "type": "string", + "readOnly": true, + "description": "Specifies the version of the last attempt" + }, + "lastAttemptTimestamp": { + "type": "string", + "readOnly": true, + "description": "Timestamp of last upgrade attempt" + }, + "lastAttemptStatus": { + "type": "string", + "readOnly": true, + "enum": [ + "Success", + "Failed" + ], + "x-ms-enum": { + "name": "LastAttemptStatusEnum", + "modelAsString": true + }, + "description": "Specifies the status of Agent Upgrade." + }, + "lastAttemptMessage": { + "type": "string", + "readOnly": true, + "description": "Failure message of last upgrade attempt if any." + } + }, + "description": "The info w.r.t Agent Upgrade." + }, + "OSProfile": { + "type": "object", + "properties": { + "computerName": { + "type": "string", + "readOnly": true, + "description": "Specifies the host OS name of the hybrid machine." + }, + "windowsConfiguration": { + "type": "object", + "properties": { + "patchSettings": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PatchSettings" + } + }, + "description": "Specifies the windows configuration for update management." + }, + "linuxConfiguration": { + "type": "object", + "properties": { + "patchSettings": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PatchSettings" + } + }, + "description": "Specifies the linux configuration for update management." + } + }, + "description": "Specifies the operating system settings for the hybrid machine." + }, + "DetectedProperties": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Detected properties from the machine." + }, + "MachineProperties": { + "type": "object", + "properties": { + "locationData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/locationData" + }, + "agentConfiguration": { + "$ref": "#/definitions/AgentConfiguration", + "description": "Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM." + }, + "serviceStatuses": { + "$ref": "#/definitions/ServiceStatuses", + "description": "Statuses of dependent services that are reported back to ARM." + }, + "cloudMetadata": { + "$ref": "#/definitions/CloudMetadata", + "description": "The metadata of the cloud environment (Azure/GCP/AWS/OCI...)." + }, + "agentUpgrade": { + "$ref": "#/definitions/AgentUpgrade", + "description": "The info of the machine w.r.t Agent Upgrade" + }, + "osProfile": { + "$ref": "#/definitions/OSProfile", + "description": "Specifies the operating system settings for the hybrid machine." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "status": { + "readOnly": true, + "type": "string", + "description": "The status of the hybrid machine agent.", + "enum": [ + "Connected", + "Disconnected", + "Error" + ], + "x-ms-enum": { + "name": "StatusTypes", + "modelAsString": true + } + }, + "lastStatusChange": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The time of the last status change." + }, + "errorDetails": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail" + }, + "description": "Details about the error state.", + "x-ms-identifiers": [] + }, + "agentVersion": { + "readOnly": true, + "type": "string", + "description": "The hybrid machine agent full version." + }, + "vmId": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "Specifies the hybrid machine unique ID." + }, + "displayName": { + "readOnly": true, + "type": "string", + "description": "Specifies the hybrid machine display name." + }, + "machineFqdn": { + "readOnly": true, + "type": "string", + "description": "Specifies the hybrid machine FQDN." + }, + "clientPublicKey": { + "type": "string", + "description": "Public Key that the client provides to be used during initial resource onboarding" + }, + "osName": { + "readOnly": true, + "type": "string", + "description": "The Operating System running on the hybrid machine." + }, + "osVersion": { + "readOnly": true, + "type": "string", + "description": "The version of Operating System running on the hybrid machine." + }, + "osType": { + "type": "string", + "description": "The type of Operating System (windows/linux)." + }, + "vmUuid": { + "readOnly": true, + "type": "string", + "description": "Specifies the Arc Machine's unique SMBIOS ID" + }, + "extensions": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtensionInstanceView" + }, + "description": "Machine Extensions information (deprecated field)", + "x-ms-identifiers": [] + }, + "osSku": { + "readOnly": true, + "type": "string", + "description": "Specifies the Operating System product SKU." + }, + "domainName": { + "readOnly": true, + "type": "string", + "description": "Specifies the Windows domain name." + }, + "adFqdn": { + "readOnly": true, + "type": "string", + "description": "Specifies the AD fully qualified display name." + }, + "dnsFqdn": { + "readOnly": true, + "type": "string", + "description": "Specifies the DNS fully qualified display name." + }, + "privateLinkScopeResourceId": { + "type": "string", + "description": "The resource id of the private link scope this machine is assigned to, if any." + }, + "parentClusterResourceId": { + "type": "string", + "description": "The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any." + }, + "mssqlDiscovered": { + "type": "string", + "description": "Specifies whether any MS SQL instance is discovered on the machine." + }, + "detectedProperties": { + "$ref": "#/definitions/DetectedProperties", + "description": "Detected properties from the machine." + }, + "networkProfile": { + "$ref": "#/definitions/NetworkProfile", + "description": "Information about the network the machine is on." + } + }, + "description": "Describes the properties of a hybrid machine." + }, + "MachineUpdateProperties": { + "type": "object", + "properties": { + "locationData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/locationData" + }, + "osProfile": { + "$ref": "#/definitions/OSProfile" + }, + "cloudMetadata": { + "$ref": "#/definitions/CloudMetadata", + "description": "The metadata of the cloud environment (Azure/GCP/AWS/OCI...)." + }, + "agentUpgrade": { + "$ref": "#/definitions/AgentUpgrade", + "description": "The info of the machine w.r.t Agent Upgrade" + }, + "parentClusterResourceId": { + "type": "string", + "description": "The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any." + }, + "privateLinkScopeResourceId": { + "type": "string", + "description": "The resource id of the private link scope this machine is assigned to, if any." + } + }, + "description": "Describes the ARM updatable properties of a hybrid machine." + }, + "Machine": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineProperties", + "description": "Hybrid Compute Machine properties" + }, + "resources": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "The list of extensions affiliated to the machine" + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" + }, + "kind": { + "type": "string", + "description": "Indicates which kind of VM fabric the instance is an instance of, such as HCI or SCVMM etc.", + "enum": [ + "AVS", + "HCI", + "SCVMM", + "VMware" + ], + "x-ms-enum": { + "name": "privateCloudKind", + "modelAsString": true + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a hybrid machine." + }, + "MachineUpdate": { + "type": "object", + "properties": { + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" + }, + "kind": { + "type": "string", + "description": "Indicates which kind of VM fabric the instance is an instance of, such as HCI or SCVMM etc.", + "enum": [ + "AVS", + "HCI", + "SCVMM", + "VMware" + ], + "x-ms-enum": { + "name": "privateCloudKind", + "modelAsString": true + } + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineUpdateProperties", + "description": "Hybrid Compute Machine properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceUpdate" + } + ], + "description": "Describes a hybrid machine Update." + }, + "MachineListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Machine" + }, + "description": "The list of hybrid machines." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." + } + }, + "required": [ + "value" + ], + "description": "The List hybrid machine operation response." + }, + "ResourceUpdate": { + "type": "object", + "description": "The Update Resource model definition.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + } + }, + "MachineExtension": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineExtensionProperties", + "description": "Describes Machine Extension Properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a Machine Extension." + }, + "MachineExtensionUpdate": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineExtensionUpdateProperties", + "description": "Describes Machine Extension Update Properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceUpdate" + } + ], + "description": "Describes a Machine Extension Update." + }, + "MachineExtensionProperties": { + "type": "object", + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "enableAutomaticUpgrade": { + "type": "boolean", + "description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "additionalProperties": {}, + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "additionalProperties": {}, + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "$ref": "#/definitions/MachineExtensionInstanceView", + "description": "The machine extension instance view." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionUpdateProperties": { + "type": "object", + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "enableAutomaticUpgrade": { + "type": "boolean", + "description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "additionalProperties": {}, + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "additionalProperties": {}, + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + } + }, + "description": "Describes the properties of a Machine Extension." + }, + "MachineExtensionInstanceView": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The machine extension name." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "status": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true + } + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + } + }, + "description": "Describes the Machine Extension Instance View." + }, + "MachineExtensionsListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "The list of extensions" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the next page of extensions." + } + }, + "description": "Describes the Machine Extensions List Result." + }, + "TargetVersion": { + "type": "string", + "description": "Extension Upgrade Target Version." + }, + "ExtensionTargetProperties": { + "type": "object", + "properties": { + "targetVersion": { + "type": "object", + "$ref": "#/definitions/TargetVersion", + "description": "Properties for the specified Extension to Upgrade." + } + }, + "description": "Describes the Machine Extension Target Version Properties" + }, + "ExtensionTarget": { + "type": "object", + "additionalProperties": { + "type": "object", + "$ref": "#/definitions/ExtensionTargetProperties" + }, + "description": "Describes the Machine Extension Target Properties" + }, + "MachineExtensionUpgrade": { + "type": "object", + "properties": { + "extensionTargets": { + "$ref": "#/definitions/ExtensionTarget", + "description": "Describes the Extension Target Properties." + } + }, + "description": "Describes the Machine Extension Upgrade Properties." + }, + "NetworkProfile": { + "type": "object", + "readOnly": true, + "properties": { + "networkInterfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterface" + }, + "description": "The list of network interfaces.", + "x-ms-identifiers": [] + } + }, + "description": "Describes the network information on this machine." + }, + "NetworkInterface": { + "type": "object", + "readOnly": true, + "properties": { + "ipAddresses": { + "type": "array", + "items": { + "$ref": "#/definitions/IpAddress" + }, + "description": "The list of IP addresses in this interface.", + "x-ms-identifiers": [] + } + }, + "description": "Describes a network interface." + }, + "IpAddress": { + "type": "object", + "readOnly": true, + "properties": { + "address": { + "type": "string", + "description": "Represents the IP Address." + }, + "ipAddressVersion": { + "type": "string", + "description": "Represents the Ip Address Version." + }, + "subnet": { + "type": "object", + "$ref": "#/definitions/Subnet", + "description": "The subnet to which this IP address belongs." + } + }, + "description": "Describes properties of the IP address." + }, + "Subnet": { + "type": "object", + "readOnly": true, + "properties": { + "addressPrefix": { + "type": "string", + "description": "Represents address prefix." + } + }, + "description": "Describes the subnet." + }, + "HybridIdentityMetadataList": { + "description": "List of HybridIdentityMetadata.", + "type": "object", + "properties": { + "nextLink": { + "description": "Url to follow for getting next page of HybridIdentityMetadata.", + "type": "string" + }, + "value": { + "description": "Array of HybridIdentityMetadata", + "type": "array", + "items": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + } + }, + "required": [ + "value" + ] + }, + "HybridIdentityMetadata": { + "description": "Defines the HybridIdentityMetadata.", + "required": [ + "properties" + ], + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource", + "description": "The resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags." + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Resource properties.", + "$ref": "#/definitions/HybridIdentityMetadataProperties" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "The system data." + } + }, + "x-ms-azure-resource": true + }, + "HybridIdentityMetadataProperties": { + "description": "Defines the resource properties.", + "type": "object", + "properties": { + "vmId": { + "description": "The unique identifier for the resource.", + "type": "string" + }, + "publicKey": { + "description": "The Public Key.", + "type": "string" + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity", + "readOnly": true + } + } + }, + "AgentVersionsList": { + "type": "object", + "readOnly": true, + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AgentVersion" + }, + "description": "The list of available Agent Versions.", + "x-ms-identifiers": [ + "agentVersion" + ] + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next 10 available Agent Versions." + } + }, + "description": "Describes AgentVersions List." + }, + "AgentVersion": { + "type": "object", + "readOnly": true, + "properties": { + "agentVersion": { + "type": "string", + "description": "Represents the agent version." + }, + "downloadLink": { + "type": "string", + "description": "Represents the download link of specific agent version." + }, + "osType": { + "type": "string", + "description": "Defines the os type." + } + }, + "description": "Describes properties of Agent Version." + }, + "MachineAssessPatchesResult": { + "type": "object", + "properties": { + "status": { + "type": "string", + "readOnly": true, + "description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Unknown\", \"Failed\", \"Succeeded\", or \"CompletedWithWarnings.\"", + "enum": [ + "Unknown", + "InProgress", + "Failed", + "Succeeded", + "CompletedWithWarnings" + ], + "x-ms-enum": { + "name": "PatchOperationStatus", + "modelAsString": true + } + }, + "assessmentActivityId": { + "type": "string", + "readOnly": true, + "description": "The activity ID of the operation that produced this result." + }, + "rebootPending": { + "type": "boolean", + "readOnly": true, + "description": "The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred." + }, + "availablePatchCountByClassification": { + "$ref": "#/definitions/AvailablePatchCountByClassification", + "description": "Summarization of patches available for installation on the machine by classification." + }, + "startDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation began." + }, + "lastModifiedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation finished." + }, + "startedBy": { + "type": "string", + "readOnly": true, + "enum": [ + "User", + "Platform" + ], + "x-ms-enum": { + "name": "PatchOperationStartedBy", + "modelAsString": true + }, + "description": "Indicates if operation was triggered by user or by platform." + }, + "patchServiceUsed": { + "type": "string", + "readOnly": true, + "enum": [ + "Unknown", + "WU", + "WU_WSUS", + "YUM", + "APT", + "Zypper" + ], + "x-ms-enum": { + "name": "PatchServiceUsed", + "modelAsString": true + }, + "description": "Specifies the patch service used for the operation." + }, + "osType": { + "type": "string", + "readOnly": true, + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true + }, + "description": "The operating system type of the machine." + }, + "errorDetails": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail", + "readOnly": true, + "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." + } + }, + "description": "Describes the properties of an AssessPatches result." + }, + "AvailablePatchCountByClassification": { + "type": "object", + "properties": { + "security": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of security patches available for installation." + }, + "critical": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of critical patches available for installation." + }, + "definition": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of definition patches available for installation." + }, + "updateRollup": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of update Rollup patches available for installation." + }, + "featurePack": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of feature pack patches available for installation." + }, + "servicePack": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of service pack patches available for installation." + }, + "tools": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of tools patches available for installation." + }, + "updates": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of updates category patches available for installation." + }, + "other": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Number of other patches available for installation." + } + }, + "description": "Summarization of patches available for installation on the machine by classification." + }, + "MachineInstallPatchesParameters": { + "type": "object", + "properties": { + "maximumDuration": { + "type": "string", + "description": "Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours)" + }, + "rebootSetting": { + "type": "string", + "description": "Defines when it is acceptable to reboot a VM during a software update operation.", + "enum": [ + "IfRequired", + "Never", + "Always" + ], + "x-ms-enum": { + "name": "VMGuestPatchRebootSetting", + "modelAsString": true + } + }, + "windowsParameters": { + "$ref": "#/definitions/WindowsParameters", + "description": "Input for InstallPatches on a Windows VM, as directly received by the API" + }, + "linuxParameters": { + "$ref": "#/definitions/LinuxParameters", + "description": "Input for InstallPatches on a Linux VM, as directly received by the API" + } + }, + "required": [ + "maximumDuration", + "rebootSetting" + ], + "description": "Input for InstallPatches as directly received by the API" + }, + "WindowsParameters": { + "type": "object", + "properties": { + "classificationsToInclude": { + "type": "array", + "description": "The update classifications to select when installing patches for Windows.", + "items": { + "type": "string", + "enum": [ + "Critical", + "Security", + "UpdateRollUp", + "FeaturePack", + "ServicePack", + "Definition", + "Tools", + "Updates" + ], + "x-ms-enum": { + "name": "VMGuestPatchClassification_Windows", + "modelAsString": true + } + } + }, + "kbNumbersToInclude": { + "type": "array", + "description": "Kbs to include in the patch operation", + "items": { + "type": "string" + } + }, + "kbNumbersToExclude": { + "type": "array", + "description": "Kbs to exclude in the patch operation", + "items": { + "type": "string" + } + }, + "excludeKbsRequiringReboot": { + "type": "boolean", + "description": "Filters out Kbs that don't have an InstallationRebootBehavior of 'NeverReboots' when this is set to true." + }, + "maxPatchPublishDate": { + "type": "string", + "format": "date-time", + "description": "This is used to install patches that were published on or before this given max published date." + } + }, + "description": "Input for InstallPatches on a Windows VM, as directly received by the API" + }, + "LinuxParameters": { + "type": "object", + "properties": { + "classificationsToInclude": { + "type": "array", + "description": "The update classifications to select when installing patches for Linux.", + "items": { + "type": "string", + "enum": [ + "Critical", + "Security", + "Other" + ], + "x-ms-enum": { + "name": "VMGuestPatchClassification_Linux", + "modelAsString": true + } + } + }, + "packageNameMasksToInclude": { + "type": "array", + "description": "packages to include in the patch operation. Format: packageName_packageVersion", + "items": { + "type": "string" + } + }, + "packageNameMasksToExclude": { + "type": "array", + "description": "packages to exclude in the patch operation. Format: packageName_packageVersion", + "items": { + "type": "string" + } + } + }, + "description": "Input for InstallPatches on a Linux VM, as directly received by the API" + }, + "MachineInstallPatchesResult": { + "type": "object", + "properties": { + "status": { + "type": "string", + "readOnly": true, + "description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Failed\", \"Succeeded\", \"Unknown\" or \"CompletedWithWarnings.\"", + "enum": [ + "Unknown", + "InProgress", + "Failed", + "Succeeded", + "CompletedWithWarnings" + ], + "x-ms-enum": { + "name": "PatchOperationStatus", + "modelAsString": true + } + }, + "installationActivityId": { + "type": "string", + "readOnly": true, + "description": "The activity ID of the operation that produced this result." + }, + "rebootStatus": { + "type": "string", + "readOnly": true, + "description": "The reboot state of the VM following completion of the operation.", + "enum": [ + "Unknown", + "NotNeeded", + "Required", + "Started", + "Failed", + "Completed" + ], + "x-ms-enum": { + "name": "VMGuestPatchRebootStatus", + "modelAsString": true + } + }, + "maintenanceWindowExceeded": { + "type": "boolean", + "readOnly": true, + "description": "Whether the operation ran out of time before it completed all its intended actions." + }, + "excludedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that were not installed due to the user blocking their installation." + }, + "notSelectedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that were detected as available for install, but did not meet the operation's criteria." + }, + "pendingPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that were identified as meeting the installation criteria, but were not able to be installed. Typically this happens when maintenanceWindowExceeded == true." + }, + "installedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches successfully installed." + }, + "failedPatchCount": { + "type": "integer", + "readOnly": true, + "format": "int32", + "description": "The number of patches that could not be installed due to some issue. See errors for details." + }, + "startDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation began." + }, + "lastModifiedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The UTC timestamp when the operation finished." + }, + "startedBy": { + "type": "string", + "readOnly": true, + "enum": [ + "User", + "Platform" + ], + "x-ms-enum": { + "name": "PatchOperationStartedBy", + "modelAsString": true + }, + "description": "Indicates if operation was triggered by user or by platform." + }, + "patchServiceUsed": { + "type": "string", + "readOnly": true, + "enum": [ + "Unknown", + "WU", + "WU_WSUS", + "YUM", + "APT", + "Zypper" + ], + "x-ms-enum": { + "name": "PatchServiceUsed", + "modelAsString": true + }, + "description": "Specifies the patch service used for the operation." + }, + "osType": { + "type": "string", + "readOnly": true, + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OsType", + "modelAsString": true + }, + "description": "The operating system type of the machine." + }, + "errorDetails": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail", + "readOnly": true, + "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." + } + }, + "description": "The result summary of an installation operation." + }, + "MachineRunCommand": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineRunCommandProperties", + "description": "Describes Run Command Properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a Run Command" + }, + "MachineRunCommandProperties": { + "type": "object", + "properties": { + "source": { + "$ref": "#/definitions/MachineRunCommandScriptSource", + "description": "The source of the run command script." + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/RunCommandInputParameter" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "The parameters used by the script." + }, + "protectedParameters": { + "type": "array", + "items": { + "$ref": "#/definitions/RunCommandInputParameter" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "The parameters used by the script." + }, + "asyncExecution": { + "type": "boolean", + "default": false, + "description": "Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete." + }, + "runAsUser": { + "type": "string", + "description": "Specifies the user account on the machine when executing the run command." + }, + "runAsPassword": { + "type": "string", + "description": "Specifies the user account password on the machine when executing the run command.", + "x-ms-secret": true + }, + "timeoutInSeconds": { + "type": "integer", + "format": "int32", + "description": "The timeout in seconds to execute the run command." + }, + "outputBlobUri": { + "type": "string", + "description": "Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. " + }, + "errorBlobUri": { + "type": "string", + "description": "Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter." + }, + "outputBlobManagedIdentity": { + "$ref": "#/definitions/RunCommandManagedIdentity", + "description": "User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged " + }, + "errorBlobManagedIdentity": { + "$ref": "#/definitions/RunCommandManagedIdentity", + "description": "User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged " + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "readOnly": true, + "$ref": "#/definitions/MachineRunCommandInstanceView", + "description": "The machine run command instance view." + } + }, + "description": "Describes the properties of a run command." + }, + "MachineRunCommandScriptSource": { + "type": "object", + "properties": { + "script": { + "type": "string", + "description": "Specifies the script content to be executed on the machine." + }, + "scriptUri": { + "type": "string", + "description": "Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI." + }, + "commandId": { + "type": "string", + "description": "Specifies the commandId of predefined built-in script." + }, + "scriptUriManagedIdentity": { + "$ref": "#/definitions/RunCommandManagedIdentity", + "description": "User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged." + } + }, + "description": "Describes the script sources for run command. Use only one of script, scriptUri, commandId." + }, + "MachineRunCommandInstanceView": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The run command name." + }, + "status": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true + } + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + } + }, + "description": "Describes the Machine Extension Instance View." + }, + "MachineRunCommandsListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MachineRunCommand" + }, + "description": "The list of run commands" + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands." + } + }, + "description": "Describes the Run Commands List Result." + }, + "MachineRunCommandUpdate": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceUpdate" + } + ], + "description": "Describes a Machine Extension Update." + }, + "RunCommandInputParameter": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The run command parameter name." + }, + "value": { + "type": "string", + "description": "The run command parameter value." + } + }, + "required": [ + "name", + "value" + ], + "description": "Describes the properties of a run command parameter." + }, + "RunCommandManagedIdentity": { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided." + }, + "objectId": { + "type": "string", + "description": "Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided." + } + }, + "description": " Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged." + } + }, + "parameters": { + "machineNameParameter": { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "description": "The name of the hybrid machine.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json new file mode 100644 index 000000000000..1638094b1de6 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "extensionName": "MMA", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + }, + "204": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json new file mode 100644 index 000000000000..25b8b714390e --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "runCommandName": "myRunCommand", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + }, + "204": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json new file mode 100644 index 000000000000..458e1490b9a2 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "location": "EastUS", + "publisher": "microsoft.azure.monitor", + "extensionType": "azuremonitorlinuxagent", + "version": "1.9.1", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.1", + "properties": { + "version": "1.9.1", + "extensionType": "azuremonitorlinuxagent", + "publisher": "microsoft.azure.monitor" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json new file mode 100644 index 000000000000..cbd876be3397 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "location": "EastUS", + "publisher": "microsoft.azure.monitor", + "extensionType": "azuremonitorlinuxagent", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "version": "1.9.1", + "extensionType": "azuremonitorlinuxagent", + "publisher": "microsoft.azure.monitor" + }, + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.1" + }, + { + "properties": { + "version": "1.9.2", + "extensionType": "azuremonitorlinuxagent", + "publisher": "microsoft.azure.monitor" + }, + "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.HybridCompute/locations/eastus/publishers/microsoft.azure.monitor/extensionTypes/azuremonitorlinuxagent/versions/1.9.2" + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json new file mode 100644 index 000000000000..817f6d37cbc9 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview", + "extensionUpgradeParameters": { + "extensionTargets": { + "Microsoft.Compute.CustomScriptExtension": { + "targetVersion": "1.10" + }, + "Microsoft.Azure.Monitoring": { + "targetVersion": "2.0" + } + } + } + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json new file mode 100644 index 000000000000..f2ee5c14dae5 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "osType": "myOsType", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "agentVersion": "1.26", + "downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi", + "osType": "myOsType" + }, + { + "agentVersion": "1.27", + "downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi", + "osType": "myOsType" + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json new file mode 100644 index 000000000000..c000528229b0 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.HybridCompute/machines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + }, + "protectedSettings": {}, + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json new file mode 100644 index 000000000000..3660912a5883 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "osType": "myOsType", + "version": "1.27", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "agentVersion": "1.27", + "downloadLink": "https://download.microsoft.com/download/8/4/5/845d5e04-bb09-4ed2-9ca8-bb51184cddc9/AzureConnectedMachineAgent.msi", + "osType": "myOsType" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json new file mode 100644 index 000000000000..e86c48241a91 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "networkInterfaces": [ + { + "ipAddresses": [ + { + "address": "192.168.12.345", + "ipAddressVersion": "IPv4", + "subnet": { + "addressPrefix": "192.168.12.0/24" + } + } + ] + }, + { + "ipAddresses": [ + { + "address": "1001:0:34aa:5000:1234:aaaa:bbbb:cccc", + "ipAddressVersion": "IPv6", + "subnet": { + "addressPrefix": "1001:0:34aa:5000::/64" + } + } + ] + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json new file mode 100644 index 000000000000..fc60004e5ae5 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "machineName": "ContosoVm", + "metadataName": "default" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/ContosoVm/hybridIdentityMetadata/default", + "name": "testItem", + "type": "Microsoft.HybridCompute/machines/hybridIdentityMetadata", + "properties": { + "vmId": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json new file mode 100644 index 000000000000..9527819b5927 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "runCommandName": "myRunCommand", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", + "name": "myRunCommand", + "type": "Microsoft.HybridCompute/machines/runcommands", + "location": "eastus2", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "source": { + "script": "Write-Host Hello World!" + }, + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "protectedParameters": [], + "asyncExecution": false, + "runAsUser": "user1", + "timeoutInSeconds": 3600, + "provisioningState": "Succeeded", + "instanceView": { + "name": "myRunCommand", + "status": { + "code": "success", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json new file mode 100644 index 000000000000..e062b0eab7c8 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "testrg", + "machineName": "ContosoVm" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/ContosoVm/hybridIdentityMetadata/default", + "name": "testItem", + "type": "Microsoft.HybridCompute/machines/hybridIdentityMetadata", + "properties": { + "vmId": "f8b82dff-38ef-4220-99ef-d3a3f86ddc6c", + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", + "identity": { + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", + "type": "SystemAssigned" + } + } + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json new file mode 100644 index 000000000000..e1f17f9a3296 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "location": "eastus2euap", + "type": "Microsoft.HybridCompute/machines/extensions", + "properties": { + "publisher": "Microsoft.Compute", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + }, + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "displayStatus": "Provisioning succeeded", + "message": "formattedMessage: Finished executing command, StdOut: , StdErr: ", + "time": "2020-08-13T17:18:57.405Z" + } + } + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/winosupdateextension", + "name": "winosupdateextension", + "location": "eastus2euap", + "type": "Microsoft.HybridCompute/machines/extensions", + "properties": { + "publisher": "microsoft.softwareupdatemanagement.test", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "autoUpgradeMinorVersion": false, + "settings": {}, + "provisioningState": "Creating", + "instanceView": { + "name": "winosupdateextension", + "type": "windowsosupdateextension", + "typeHandlerVersion": "1.0.0.0", + "status": {} + } + } + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json new file mode 100644 index 000000000000..9a406faf9575 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand_1", + "name": "myRunCommand_1", + "location": "eastus2", + "type": "Microsoft.HybridCompute/machines/runcommands", + "properties": { + "source": { + "script": "Write-Host Hello World!" + }, + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "protectedParameters": [], + "asyncExecution": false, + "runAsUser": "user1", + "timeoutInSeconds": 3600, + "provisioningState": "Succeeded", + "instanceView": { + "name": "myRunCommand_1", + "status": { + "code": "success", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand_2", + "name": "myRunCommand_2", + "location": "eastus2", + "type": "Microsoft.HybridCompute/machines/runcommands", + "properties": { + "source": { + "script": "Get-Process | Where-Object { $_.CPU -gt 10000 }" + }, + "parameters": [], + "protectedParameters": [], + "asyncExecution": false, + "runAsUser": "userA", + "timeoutInSeconds": 100, + "provisioningState": "Succeeded", + "instanceView": { + "name": "myRunCommand_2", + "status": { + "code": "success", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json new file mode 100644 index 000000000000..c936f2408444 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroupName", + "name": "myMachineName", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "assessmentActivityId": "68f8b292-dfc2-4646-9781-33cc88631968", + "rebootPending": true, + "startDateTime": "2021-08-22T02:15:20.9340000Z", + "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", + "availablePatchCountByClassification": { + "security": 0, + "updateRollup": 1, + "featurePack": 0, + "servicePack": 0, + "definition": 0, + "critical": 0, + "updates": 1, + "tools": 0 + }, + "startedBy": "User", + "osType": "Windows", + "errorDetails": null + } + }, + "202": { + "headers": { + "Location": "eastus2euap" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json new file mode 100644 index 000000000000..ad3a25feb725 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroupName", + "name": "myMachineName", + "api-version": "2023-04-25-preview", + "installPatchesInput": { + "maximumDuration": "PT4H", + "rebootSetting": "IfRequired", + "windowsParameters": { + "classificationsToInclude": [ + "Critical", + "Security" + ], + "maxPatchPublishDate": "2021-08-19T02:36:43.0539904+00:00" + } + } + }, + "responses": { + "200": { + "body": { + "status": "Succeeded", + "installationActivityId": "68f8b292-dfc2-4646-9781-33cc88631968", + "rebootStatus": "Completed", + "maintenanceWindowExceeded": false, + "excludedPatchCount": 0, + "notSelectedPatchCount": 0, + "pendingPatchCount": 2, + "installedPatchCount": 3, + "failedPatchCount": 0, + "startDateTime": "2021-08-22T02:15:06.9740000Z", + "lastModifiedDateTime": "2021-08-22T02:16:06.9740000Z", + "startedBy": "User", + "osType": "Windows", + "errorDetails": null + } + }, + "202": { + "headers": { + "Location": "eastus2euap" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json new file mode 100644 index 000000000000..a7e957eff034 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview", + "parameters": { + "location": "eastus2euap", + "properties": { + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "string", + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" + }, + "identity": { + "type": "SystemAssigned" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "vmUuid": null, + "osSku": null, + "domainName": null, + "adFqdn": null, + "dnsFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + } + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond", + "city": "redmond", + "district": null, + "countryOrRegion": "usa" + }, + "clientPublicKey": "string", + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "mssqlDiscovered": "false", + "detectedProperties": { + "cloudprovider": "N/A", + "manufacturer": "Microsoft Corporation", + "model": "Virtual Machine" + }, + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json new file mode 100644 index 000000000000..b7636114f27b --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json new file mode 100644 index 000000000000..20d780a2c719 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json @@ -0,0 +1,125 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "vmUuid": null, + "osSku": null, + "domainName": null, + "adFqdn": null, + "dnsFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + } + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond", + "city": "redmond", + "district": null, + "countryOrRegion": "usa" + }, + "clientPublicKey": "string", + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "mssqlDiscovered": "false", + "detectedProperties": { + "cloudprovider": "N/A", + "manufacturer": "Microsoft Corporation", + "model": "Virtual Machine" + }, + "agentConfiguration": { + "proxyUrl": "https://test.test", + "incomingConnectionsPorts": [ + "22", + "23" + ], + "extensionsAllowList": null, + "extensionsBlockList": null, + "proxyBypass": [ + "proxy1", + "proxy2" + ], + "extensionsEnabled": "true", + "guestConfigurationEnabled": "true", + "configMode": "full" + }, + "serviceStatuses": { + "extensionService": { + "status": "Running", + "startupType": "Automatic" + }, + "guestConfigurationService": { + "status": "Running", + "startupType": "Automatic" + } + }, + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName", + "networkProfile": { + "networkInterfaces": [ + { + "ipAddresses": [ + { + "address": "192.168.12.345", + "ipAddressVersion": "IPv4", + "subnet": { + "addressPrefix": "192.168.12.0/24" + } + } + ] + }, + { + "ipAddresses": [ + { + "address": "1001:0:34aa:5000:1234:aaaa:bbbb:cccc", + "ipAddressVersion": "IPv6", + "subnet": { + "addressPrefix": "1001:0:34aa:5000::/64" + } + } + ] + } + ] + } + }, + "resources": [] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json new file mode 100644 index 000000000000..cfae35caee5a --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json @@ -0,0 +1,157 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "f7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "vmUuid": null, + "osSku": null, + "domainName": null, + "adFqdn": null, + "dnsFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + } + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "string", + "parentClusterResourceId": null, + "mssqlDiscovered": "false", + "detectedProperties": { + "cloudprovider": "N/A", + "manufacturer": "Microsoft Corporation", + "model": "Virtual Machine" + }, + "agentConfiguration": { + "proxyUrl": "https://test.test", + "incomingConnectionsPorts": [ + "22", + "23" + ], + "extensionsAllowList": null, + "extensionsBlockList": null, + "proxyBypass": [ + "proxy1", + "proxy2" + ], + "extensionsEnabled": "true", + "guestConfigurationEnabled": "true", + "configMode": "full" + }, + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine2", + "name": "myMachine2", + "location": "westus2", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + } + }, + "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "string", + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "mssqlDiscovered": "true", + "detectedProperties": { + "cloudprovider": "N/A", + "manufacturer": "Microsoft Corporation", + "model": "Surfacebook" + }, + "agentConfiguration": { + "proxyUrl": "https://test.test", + "incomingConnectionsPorts": [ + "22", + "23" + ], + "extensionsAllowList": null, + "extensionsBlockList": null, + "proxyBypass": [ + "proxy1", + "proxy2" + ], + "extensionsEnabled": "true", + "guestConfigurationEnabled": "true", + "configMode": "full" + }, + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json new file mode 100644 index 000000000000..92c05f76f87f --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json @@ -0,0 +1,155 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "vmUuid": null, + "osSku": null, + "domainName": null, + "adFqdn": null, + "dnsFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + } + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "string", + "parentClusterResourceId": null, + "mssqlDiscovered": "false", + "detectedProperties": { + "cloudprovider": "N/A", + "manufacturer": "Microsoft Corporation", + "model": "Virtual Machine" + }, + "agentConfiguration": { + "proxyUrl": "https://test.test", + "incomingConnectionsPorts": [ + "22", + "23" + ], + "extensionsAllowList": null, + "extensionsBlockList": null, + "proxyBypass": [ + "proxy1", + "proxy2" + ], + "extensionsEnabled": "true", + "guestConfigurationEnabled": "true", + "configMode": "full" + }, + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" + } + }, + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup2/providers/Microsoft.HybridCompute/machines/myMachine2", + "name": "myMachine2", + "location": "westus2", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "e7a068cc-b0b8-46e8-a203-22f301a62a8f", + "tenantId": "c4098cc-91b8-46c2-a205-d82ab1a62a8f" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + } + }, + "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "string", + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "mssqlDiscovered": "true", + "detectedProperties": { + "cloudprovider": "N/A", + "manufacturer": "Microsoft Corporation", + "model": "Surfacebook" + }, + "agentConfiguration": { + "proxyUrl": "https://test.test", + "incomingConnectionsPorts": [ + "22", + "23" + ], + "extensionsAllowList": null, + "extensionsBlockList": null, + "proxyBypass": [ + "proxy1", + "proxy2" + ], + "extensionsEnabled": "true", + "guestConfigurationEnabled": "true", + "configMode": "full" + } + } + } + ], + "nextLink": "string" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json new file mode 100644 index 000000000000..8ec18c5096a7 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-04-25-preview", + "location": "eastus2euap", + "kind": null, + "parameters": { + "properties": { + "locationData": { + "name": "Redmond" + }, + "osProfile": { + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": "ImageDefault", + "patchMode": "Manual" + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": "ImageDefault", + "patchMode": "Manual" + } + } + }, + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" + }, + "identity": { + "type": "SystemAssigned" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "vmUuid": null, + "osSku": null, + "domainName": null, + "adFqdn": null, + "dnsFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": "ImageDefault", + "patchMode": "Manual" + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": "ImageDefault", + "patchMode": "Manual" + } + } + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond" + }, + "clientPublicKey": "string", + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "detectedProperties": null, + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json new file mode 100644 index 000000000000..03ac8adfebe4 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "origin": "user,system", + "name": "Microsoft.HybridCompute/operations/read", + "display": { + "operation": "Read all Operations", + "resource": "Microsoft.HybridCompute Resource Provider", + "description": "Read all Operations for Azure Arc for Servers", + "provider": "Microsoft HybridCompute" + }, + "isDataAction": true + }, + { + "origin": "user,system", + "name": "Microsoft.HybridCompute/register/action", + "display": { + "operation": "Register Subscription for Azure Arc for Servers", + "resource": "Microsoft.HybridCompute Resource Provider", + "description": "Registers the subscription for the Microsoft.HybridCompute Resource Provider", + "provider": "Microsoft HybridCompute" + }, + "isDataAction": true + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json new file mode 100644 index 000000000000..78ce9420e6e3 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2023-04-25-preview", + "extensionParameters": { + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.HybridCompute/machines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "autoUpgradeMinorVersion": false, + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + }, + "protectedSettings": {}, + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2020-08-08T20:42:10.999Z" + } + } + } + } + }, + "202": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json new file mode 100644 index 000000000000..64a8a4b09fa1 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "myResourceGroup", + "scopeName": "myPrivateLinkScope", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + }, + "204": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json new file mode 100644 index 000000000000..6e9db485ba93 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "myResourceGroup", + "scopeName": "myPrivateLinkScope", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupIds": [ + "hybridcompute" + ] + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json new file mode 100644 index 000000000000..b044db15efdb --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "myResourceGroup", + "scopeName": "myPrivateLinkScope", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + }, + "groupIds": [ + "hybridcompute" + ] + } + }, + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name-2", + "name": "private-endpoint-connection-name-2", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name-2" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Please approve my connection.", + "actionsRequired": "None" + }, + "groupIds": [ + "hybridcompute" + ] + } + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json new file mode 100644 index 000000000000..114b57086ea3 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "myResourceGroup", + "scopeName": "myPrivateLinkScope", + "privateEndpointConnectionName": "private-endpoint-connection-name", + "api-version": "2023-04-25-preview", + "parameters": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Approved by johndoe@contoso.com", + "actionsRequired": "None" + }, + "groupIds": [ + "hybridcompute" + ] + } + } + }, + "202": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json new file mode 100644 index 000000000000..09a57f23e338 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "myResourceGroup", + "scopeName": "myPrivateLinkScope", + "api-version": "2023-04-25-preview", + "groupName": "hybridcompute" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateLinkResources/hybridcompute", + "name": "hybridcompute", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateLinkResources", + "properties": { + "groupId": "hybridcompute", + "requiredMembers": [ + "HybridCompute.Server", + "HybridCompute.K8sConfiguration", + "GuestConfig.DP" + ], + "requiredZoneNames": [ + "privatelink.his.arc.azure.com", + "privatelink.kubernetesconfiguration.azure.com", + "privatelink.Guestconfiguration.azure.com" + ] + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json new file mode 100644 index 000000000000..984a72cba81d --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "myResourceGroup", + "scopeName": "myPrivateLinkScope", + "api-version": "2023-04-25-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateLinkResources/hybridcompute", + "name": "hybridcompute", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateLinkResources", + "properties": { + "groupId": "hybridcompute", + "requiredMembers": [ + "HybridCompute.ServerDP", + "HybridCompute.K8sConfigurationDP", + "HybridCompute.GuestConfigDP" + ], + "requiredZoneNames": [ + "privatelink.his.arc.azure.com", + "privatelink.kubernetesconfiguration.azure.com", + "privatelink.Guestconfiguration.azure.com" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json new file mode 100644 index 000000000000..9efb3e288933 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope", + "parameters": { + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": {}, + "properties": { + "privateLinkScopeId": "e5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": {}, + "properties": { + "privateLinkScopeId": "e5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json new file mode 100644 index 000000000000..e48ab64c7983 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope" + }, + "responses": { + "200": {}, + "204": {}, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json new file mode 100644 index 000000000000..70124b6bf13d --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": {}, + "properties": { + "privateLinkScopeId": "f5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json new file mode 100644 index 000000000000..90317bdb0ccb --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "location": "wus2", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "privateLinkScopeId": "f5dc51d3-92ed-4d7e-947a-775ea79b4919" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "publicNetworkAccess": "Disabled", + "connectionDetails": [ + { + "id": "id", + "privateIpAddress": "ip", + "linkIdentifier": "linkId", + "groupId": "groupId", + "memberName": "memberName" + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json new file mode 100644 index 000000000000..9be50f662c20 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "location": "wus2", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "machineName": "machineName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "publicNetworkAccess": "Disabled", + "connectionDetails": [ + { + "id": "id", + "privateIpAddress": "ip", + "linkIdentifier": "linkId", + "groupId": "groupId", + "memberName": "memberName" + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json new file mode 100644 index 000000000000..e654989888c1 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": {}, + "properties": { + "privateLinkScopeId": "e5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled" + } + }, + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-other-privatelinkscope", + "name": "my-other-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": {}, + "properties": { + "privateLinkScopeId": "f5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json new file mode 100644 index 000000000000..f4f6aca11497 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": {}, + "properties": { + "privateLinkScopeId": "f5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + }, + { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-other-privatelinkscope", + "name": "my-other-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": {}, + "properties": { + "privateLinkScopeId": "a5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json new file mode 100644 index 000000000000..2433d530401c --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope", + "parameters": { + "location": "westus", + "tags": { + "Tag1": "Value1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridCompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": { + "Tag1": "Value1" + }, + "properties": { + "privateLinkScopeId": "e5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4919/resourceGroups/my-resource-group/providers/microsoft.hybridCompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": { + "Tag1": "Value1" + }, + "properties": { + "privateLinkScopeId": "e5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json new file mode 100644 index 000000000000..cec39f05e87a --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2023-04-25-preview", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "scopeName": "my-privatelinkscope", + "PrivateLinkScopeTags": { + "tags": { + "Tag1": "Value1", + "Tag2": "Value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope", + "name": "my-privatelinkscope", + "type": "Microsoft.HybridCompute/privateLinkScopes", + "location": "westus", + "tags": { + "Tag1": "Value1", + "Tag2": "Value2" + }, + "properties": { + "privateLinkScopeId": "e5dc51d3-92ed-4d7e-947a-775ea79b4919", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "privateEndpointConnections": [ + { + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name", + "name": "private-endpoint-connection-name", + "type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json new file mode 100644 index 000000000000..682ba599e133 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "runCommandName": "myRunCommand", + "api-version": "2023-04-25-preview", + "runCommandProperties": { + "location": "eastus2", + "properties": { + "source": { + "script": "Write-Host Hello World!" + }, + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "asyncExecution": false, + "runAsUser": "user1", + "runAsPassword": "", + "timeoutInSeconds": 3600, + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", + "name": "myRunCommand", + "type": "Microsoft.HybridCompute/machines/runcommands", + "location": "eastus2", + "properties": { + "source": { + "script": "Write-Host Hello World!" + }, + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "asyncExecution": false, + "runAsUser": "user1", + "timeoutInSeconds": 3600, + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + }, + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", + "name": "myRunCommand", + "type": "Microsoft.HybridCompute/machines/runcommands", + "location": "eastus2", + "properties": { + "source": { + "script": "Write-Host Hello World!" + }, + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "asyncExecution": false, + "runAsUser": "user1", + "timeoutInSeconds": 3600, + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json new file mode 100644 index 000000000000..bf3482139dc0 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "extensionName": "CustomScriptExtension", + "api-version": "2023-04-25-preview", + "extensionParameters": { + "properties": { + "publisher": "Microsoft.Compute", + "typeHandlerVersion": "1.10", + "enableAutomaticUpgrade": true, + "type": "CustomScriptExtension", + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/Extensions/CustomScriptExtension", + "name": "CustomScriptExtension", + "type": "Microsoft.HybridCompute/machines/extensions", + "location": "eastus2euap", + "properties": { + "publisher": "Microsoft.Compute", + "type": "string", + "typeHandlerVersion": "1.10.3", + "enableAutomaticUpgrade": true, + "autoUpgradeMinorVersion": false, + "settings": { + "commandToExecute": "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"" + }, + "protectedSettings": {}, + "provisioningState": "Succeeded", + "instanceView": { + "name": "CustomScriptExtension", + "type": "CustomScriptExtension", + "typeHandlerVersion": "1.10.3", + "status": { + "code": "success", + "level": "Information", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2020-01-08T20:42:10.999Z" + } + } + } + } + }, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json new file mode 100644 index 000000000000..1035312882f8 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "runCommandName": "myRunCommand", + "api-version": "2023-04-25-preview", + "runCommandProperties": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", + "name": "myRunCommand", + "type": "Microsoft.HybridCompute/machines/runcommands", + "location": "eastus2", + "properties": { + "source": { + "script": "Write-Host Hello World!" + }, + "parameters": [ + { + "name": "param1", + "value": "value1" + }, + { + "name": "param2", + "value": "value2" + } + ], + "asyncExecution": false, + "runAsUser": "user1", + "timeoutInSeconds": 3600, + "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", + "provisioningState": "Succeeded", + "instanceView": { + "name": "myRunCommand", + "status": { + "code": "success", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "Finished executing command, StdOut: , StdErr:", + "time": "2019-08-08T20:42:10.999Z" + } + } + } + } + }, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json new file mode 100644 index 000000000000..6879c0591500 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json @@ -0,0 +1,1130 @@ +{ + "swagger": "2.0", + "info": { + "title": "HybridComputeManagementClient", + "x-ms-code-generation-settings": { + "name": "HybridComputeManagementClient" + }, + "description": "Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management.", + "version": "2023-04-25-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/privateLinkScopes": { + "get": { + "description": "Gets a list of all Azure Arc PrivateLinkScopes within a subscription.", + "operationId": "PrivateLinkScopes_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more Azure Arc PrivateLinkScope definitions.", + "schema": { + "$ref": "#/definitions/HybridComputePrivateLinkScopeListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopesList.json": { + "$ref": "./examples/PrivateLinkScopesList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes": { + "get": { + "description": "Gets a list of Azure Arc PrivateLinkScopes within a resource group.", + "operationId": "PrivateLinkScopes_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more Azure Arc PrivateLinkScope definitions.", + "schema": { + "$ref": "#/definitions/HybridComputePrivateLinkScopeListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeListByResourceGroup": { + "$ref": "./examples/PrivateLinkScopesListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}": { + "delete": { + "description": "Deletes a Azure Arc PrivateLinkScope.", + "operationId": "PrivateLinkScopes_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Successful request when deleting an Azure Arc PrivateLinkScope." + }, + "202": { + "description": "Accepted.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "204": { + "description": "The specified PrivateLinkScope does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "PrivateLinkScopesDelete": { + "$ref": "./examples/PrivateLinkScopesDelete.json" + } + } + }, + "get": { + "description": "Returns a Azure Arc PrivateLinkScope.", + "operationId": "PrivateLinkScopes_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Azure Arc PrivateLinkScope definition.", + "schema": { + "$ref": "#/definitions/HybridComputePrivateLinkScope" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeGet": { + "$ref": "./examples/PrivateLinkScopesGet.json" + } + } + }, + "put": { + "description": "Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.", + "operationId": "PrivateLinkScopes_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "parameters", + "description": "Properties that need to be specified to create or update a Azure Arc for Servers and Clusters PrivateLinkScope.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/HybridComputePrivateLinkScope" + } + } + ], + "responses": { + "200": { + "description": "Successful request when creating or updating a Azure Arc PrivateLinkScope. The updated PrivateLinkScope is returned.", + "schema": { + "$ref": "#/definitions/HybridComputePrivateLinkScope" + } + }, + "201": { + "description": "Successful request when creating or updating a Azure Arc PrivateLinkScope. The updated PrivateLinkScope was created and is returned.", + "schema": { + "$ref": "#/definitions/HybridComputePrivateLinkScope" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeCreate": { + "$ref": "./examples/PrivateLinkScopesCreate.json" + }, + "PrivateLinkScopeUpdate": { + "$ref": "./examples/PrivateLinkScopesUpdate.json" + } + } + }, + "patch": { + "description": "Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "PrivateLinkScopes_UpdateTags", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "PrivateLinkScopeTags", + "description": "Updated tag information to set into the PrivateLinkScope instance.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsResource" + } + } + ], + "responses": { + "200": { + "description": "Updating the Azure Arc PrivateLinkScope's tags was successful. PrivateLinkScope tags are updated and returned with the rest of the PrivateLinkScope's object properties.", + "schema": { + "$ref": "#/definitions/HybridComputePrivateLinkScope" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeUpdateTagsOnly": { + "$ref": "./examples/PrivateLinkScopesUpdateTagsOnly.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.", + "operationId": "PrivateLinkResources_ListByPrivateLinkScope", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/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" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateLinkScopePrivateLinkResourceListGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "description": "Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.", + "operationId": "PrivateLinkResources_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/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" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "$ref": "#/parameters/GroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private link resource.", + "schema": { + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateLinkScopePrivateLinkResourceGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets a private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "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" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved a specified private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets private endpoint connection.": { + "$ref": "./examples/PrivateEndpointConnectionGet.json" + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Approve or reject a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/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" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "200": { + "description": "Successfully approved or rejected private endpoint connection.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Approve or reject a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionUpdate.json" + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Deletes a private endpoint connection with a given name.", + "operationId": "PrivateEndpointConnections_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/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" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + }, + { + "name": "privateEndpointConnectionName", + "in": "path", + "description": "The name of the private endpoint connection.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successfully deleted private endpoint connection." + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "204": { + "description": "Private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes a private endpoint connection with a given name.": { + "$ref": "./examples/PrivateEndpointConnectionDelete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "description": "Gets all private endpoint connections on a private link scope.", + "operationId": "PrivateEndpointConnections_ListByPrivateLinkScope", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/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" + }, + { + "$ref": "#/parameters/PrivateLinkScopeName" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets list of private endpoint connections on a private link scope.": { + "$ref": "./examples/PrivateEndpointConnectionList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/privateLinkScopes/{privateLinkScopeId}": { + "get": { + "description": "Returns a Azure Arc PrivateLinkScope's validation details.", + "operationId": "PrivateLinkScopes_GetValidationDetails", + "parameters": [ + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PrivateLinkScopeId" + } + ], + "responses": { + "200": { + "description": "Azure Arc PrivateLinkScope validation details definition.", + "schema": { + "$ref": "#/definitions/PrivateLinkScopeValidationDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeGet": { + "$ref": "./examples/PrivateLinkScopesGetValidation.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/privateLinkScopes/current": { + "get": { + "description": "Returns a Azure Arc PrivateLinkScope's validation details for a given machine.", + "operationId": "PrivateLinkScopes_GetValidationDetailsForMachine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MachineNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure Arc PrivateLinkScope validation details definition.", + "schema": { + "$ref": "#/definitions/PrivateLinkScopeValidationDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PrivateLinkScopeGet": { + "$ref": "./examples/PrivateLinkScopesGetValidationForMachine.json" + } + } + } + } + }, + "definitions": { + "PrivateLinkScopesResource": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "TagsResource": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "A container holding only the Tags for a resource, allowing the user to update the tags on a PrivateLinkScope instance." + }, + "HybridComputePrivateLinkScope": { + "type": "object", + "properties": { + "properties": { + "description": "Properties that define a Azure Arc PrivateLinkScope resource.", + "$ref": "#/definitions/HybridComputePrivateLinkScopeProperties" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "#/definitions/PrivateLinkScopesResource" + } + ], + "description": "An Azure Arc PrivateLinkScope definition." + }, + "PrivateLinkScopeValidationDetails": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "publicNetworkAccess": { + "description": "Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.", + "$ref": "#/definitions/PublicNetworkAccessType" + }, + "connectionDetails": { + "type": "array", + "description": "List of Private Endpoint Connection details.", + "items": { + "$ref": "#/definitions/ConnectionDetail" + } + } + } + }, + "ConnectionDetail": { + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "privateIpAddress": { + "type": "string", + "readOnly": true, + "description": "The private endpoint connection private ip address" + }, + "linkIdentifier": { + "type": "string", + "readOnly": true, + "description": "The private endpoint connection link identifier" + }, + "groupId": { + "type": "string", + "readOnly": true, + "description": "The private endpoint connection group id" + }, + "memberName": { + "type": "string", + "readOnly": true, + "description": "The private endpoint connection member name" + } + } + }, + "HybridComputePrivateLinkScopeProperties": { + "type": "object", + "description": "Properties that define a Azure Arc PrivateLinkScope resource.", + "properties": { + "publicNetworkAccess": { + "description": "Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.", + "$ref": "#/definitions/PublicNetworkAccessType" + }, + "provisioningState": { + "type": "string", + "description": "Current state of this PrivateLinkScope: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Provisioning ,Succeeded, Canceled and Failed.", + "readOnly": true + }, + "privateLinkScopeId": { + "readOnly": true, + "description": "The Guid id of the private link scope.", + "type": "string" + }, + "privateEndpointConnections": { + "readOnly": true, + "description": "The collection of associated Private Endpoint Connections.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnectionDataModel" + } + } + } + }, + "HybridComputePrivateLinkScopeListResult": { + "type": "object", + "description": "Describes the list of Azure Arc PrivateLinkScope resources.", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of Azure Arc PrivateLinkScope definitions.", + "items": { + "$ref": "#/definitions/HybridComputePrivateLinkScope" + } + }, + "nextLink": { + "type": "string", + "description": "The URI to get the next set of Azure Arc PrivateLinkScope definitions if too many PrivateLinkScopes where returned in the result set." + } + } + }, + "PrivateLinkResourceListResult": { + "type": "object", + "description": "A list of private link resources", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateLinkResource": { + "type": "object", + "description": "A private link resource", + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties." + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "PrivateLinkResourceProperties": { + "type": "object", + "description": "Properties of a private link resource.", + "properties": { + "groupId": { + "description": "The private link resource group id.", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { + "description": "Required DNS zone names of the the private link resource.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "PrivateEndpointConnectionDataModel": { + "type": "object", + "description": "The Data Model for a Private Endpoint Connection associated with a Private Link Scope", + "properties": { + "id": { + "description": "The ARM Resource Id of the Private Endpoint.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The Name of the Private Endpoint.", + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "The Private Endpoint Connection properties." + } + } + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "description": "Properties of a private endpoint connection.", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpointProperty", + "description": "Private endpoint which the connection belongs to." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty", + "description": "Connection state of the private endpoint connection." + }, + "provisioningState": { + "description": "State of the private endpoint connection.", + "type": "string", + "readOnly": true + }, + "groupIds": { + "description": "List of group IDs.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "PrivateEndpointProperty": { + "type": "object", + "description": "Private endpoint which the connection belongs to.", + "properties": { + "id": { + "description": "Resource id of the private endpoint.", + "type": "string" + } + } + }, + "PrivateLinkServiceConnectionStateProperty": { + "type": "object", + "description": "State of the private endpoint connection.", + "required": [ + "status", + "description" + ], + "properties": { + "status": { + "description": "The private link service connection status.", + "type": "string" + }, + "description": { + "description": "The private link service connection description.", + "type": "string" + }, + "actionsRequired": { + "description": "The actions required for private link service connection.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateEndpointConnection": { + "type": "object", + "description": "A private endpoint connection", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Resource properties." + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" + } + } + }, + "PrivateEndpointConnectionListResult": { + "type": "object", + "description": "A list of private endpoint connections.", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "PublicNetworkAccessType": { + "type": "string", + "description": "The network access policy to determine if Azure Arc agents can use public Azure Arc service endpoints. Defaults to disabled (access to Azure Arc services only via private link).", + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccessType", + "modelAsString": true, + "values": [ + { + "value": "Enabled", + "description": "Allows Azure Arc agents to communicate with Azure Arc services over both public (internet) and private endpoints." + }, + { + "value": "Disabled", + "description": "Does not allow Azure Arc agents to communicate with Azure Arc services over public (internet) endpoints. The agents must use the private link." + } + ] + } + } + }, + "parameters": { + "PrivateLinkScopeName": { + "name": "scopeName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure Arc PrivateLinkScope resource.", + "x-ms-parameter-location": "method" + }, + "PrivateLinkScopeId": { + "name": "privateLinkScopeId", + "in": "path", + "required": true, + "type": "string", + "description": "The id (Guid) of the Azure Arc PrivateLinkScope resource.", + "x-ms-parameter-location": "method" + }, + "GroupNameParameter": { + "name": "groupName", + "in": "path", + "description": "The name of the private link resource.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The location of the target resource.", + "minLength": 1 + }, + "MachineNameParameter": { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the target machine to get the private link scope validation details for.", + "minLength": 1, + "x-ms-parameter-location": "method" + } + } +} From 5b5246490e5795d96090c703d21fbda261c39ebe Mon Sep 17 00:00:00 2001 From: dorothyhu <72949285+dorothyhu@users.noreply.github.com> Date: Tue, 20 Jun 2023 11:00:50 -0700 Subject: [PATCH 02/23] Updates readme --- .../hybridcompute/resource-manager/readme.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/specification/hybridcompute/resource-manager/readme.md b/specification/hybridcompute/resource-manager/readme.md index 21af2a70fc7b..1207fb1dee30 100644 --- a/specification/hybridcompute/resource-manager/readme.md +++ b/specification/hybridcompute/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the HybridCompute API. ``` yaml openapi-type: arm -tag: package-preview-2023-04 +tag: package-preview-2023-06 directive: - where: - $.definitions.Machine.properties @@ -35,15 +35,25 @@ directive: ``` +### Tag: package-preview-2023-06 + +These settings apply only when `--tag=package-preview-2023-06` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-06' +input-file: + - Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json + - Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json +``` ### Tag: package-preview-2023-04 These settings apply only when `--tag=package-preview-2023-04` is specified on the command line. -```yaml $(tag) == 'package-preview-2023-04' +``` yaml $(tag) == 'package-preview-2023-04' input-file: - Microsoft.HybridCompute/preview/2023-04-25-preview/HybridCompute.json - Microsoft.HybridCompute/preview/2023-04-25-preview/privateLinkScopes.json ``` + ### Tag: package-preview-2023-03 These settings apply only when `--tag=package-preview-2023-03` is specified on the command line. From 21612f7c665a04c12ce811fd798c0b7480f3d018 Mon Sep 17 00:00:00 2001 From: dorothyhu <72949285+dorothyhu@users.noreply.github.com> Date: Tue, 20 Jun 2023 11:00:54 -0700 Subject: [PATCH 03/23] Updates API version in new specs and examples --- .../preview/2023-06-20-preview/HybridCompute.json | 2 +- .../preview/2023-06-20-preview/examples/DELETEExtension.json | 2 +- .../preview/2023-06-20-preview/examples/DeleteRunCommand.json | 2 +- .../2023-06-20-preview/examples/ExtensionMetadata_Get.json | 2 +- .../2023-06-20-preview/examples/ExtensionMetadata_List.json | 2 +- .../preview/2023-06-20-preview/examples/Extensions_Upgrade.json | 2 +- .../preview/2023-06-20-preview/examples/GETAgentVersions.json | 2 +- .../preview/2023-06-20-preview/examples/GETExtension.json | 2 +- .../2023-06-20-preview/examples/GETLatestAgentVersion.json | 2 +- .../preview/2023-06-20-preview/examples/GETNetworkProfile.json | 2 +- .../2023-06-20-preview/examples/GetHybridIdentityMetadata.json | 2 +- .../preview/2023-06-20-preview/examples/GetRunCommand.json | 2 +- .../examples/HybridIdentityMetadata_ListByVirtualMachines.json | 2 +- .../preview/2023-06-20-preview/examples/LISTExtension.json | 2 +- .../preview/2023-06-20-preview/examples/ListRunCommand.json | 2 +- .../2023-06-20-preview/examples/MachineAssessPatches.json | 2 +- .../2023-06-20-preview/examples/MachineInstallPatches.json | 2 +- .../2023-06-20-preview/examples/Machines_CreateOrUpdate.json | 2 +- .../preview/2023-06-20-preview/examples/Machines_Delete.json | 2 +- .../preview/2023-06-20-preview/examples/Machines_Get.json | 2 +- .../examples/Machines_ListByResourceGroup.json | 2 +- .../examples/Machines_ListBySubscription.json | 2 +- .../preview/2023-06-20-preview/examples/Machines_Update.json | 2 +- .../preview/2023-06-20-preview/examples/Operations_List.json | 2 +- .../preview/2023-06-20-preview/examples/PUTExtension.json | 2 +- .../examples/PrivateEndpointConnectionDelete.json | 2 +- .../examples/PrivateEndpointConnectionGet.json | 2 +- .../examples/PrivateEndpointConnectionList.json | 2 +- .../examples/PrivateEndpointConnectionUpdate.json | 2 +- .../examples/PrivateLinkScopePrivateLinkResourceGet.json | 2 +- .../examples/PrivateLinkScopePrivateLinkResourceListGet.json | 2 +- .../2023-06-20-preview/examples/PrivateLinkScopesCreate.json | 2 +- .../2023-06-20-preview/examples/PrivateLinkScopesDelete.json | 2 +- .../2023-06-20-preview/examples/PrivateLinkScopesGet.json | 2 +- .../examples/PrivateLinkScopesGetValidation.json | 2 +- .../examples/PrivateLinkScopesGetValidationForMachine.json | 2 +- .../2023-06-20-preview/examples/PrivateLinkScopesList.json | 2 +- .../examples/PrivateLinkScopesListByResourceGroup.json | 2 +- .../2023-06-20-preview/examples/PrivateLinkScopesUpdate.json | 2 +- .../examples/PrivateLinkScopesUpdateTagsOnly.json | 2 +- .../preview/2023-06-20-preview/examples/PutRunCommand.json | 2 +- .../preview/2023-06-20-preview/examples/UpdateExtension.json | 2 +- .../preview/2023-06-20-preview/examples/UpdateRunCommand.json | 2 +- .../preview/2023-06-20-preview/privateLinkScopes.json | 2 +- 44 files changed, 44 insertions(+), 44 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index c87bf8f2eaea..ec50168c07d2 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -3,7 +3,7 @@ "info": { "title": "HybridComputeManagementClient", "description": "The Hybrid Compute Management Client.", - "version": "2023-04-25-preview" + "version": "2023-06-20-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json index 1638094b1de6..ca1d79628113 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "extensionName": "MMA", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": {}, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json index 25b8b714390e..d8f92935686e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "runCommandName": "myRunCommand", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": {}, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json index 458e1490b9a2..495bb9128f21 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json @@ -5,7 +5,7 @@ "publisher": "microsoft.azure.monitor", "extensionType": "azuremonitorlinuxagent", "version": "1.9.1", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json index cbd876be3397..61859b6f36e2 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json @@ -4,7 +4,7 @@ "location": "EastUS", "publisher": "microsoft.azure.monitor", "extensionType": "azuremonitorlinuxagent", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json index 817f6d37cbc9..464e2a085505 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "extensionUpgradeParameters": { "extensionTargets": { "Microsoft.Compute.CustomScriptExtension": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json index f2ee5c14dae5..9c0b5ef532e1 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json @@ -1,7 +1,7 @@ { "parameters": { "osType": "myOsType", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json index c000528229b0..51df909cfb51 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "extensionName": "CustomScriptExtension", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json index 3660912a5883..246c3853a3bb 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json @@ -2,7 +2,7 @@ "parameters": { "osType": "myOsType", "version": "1.27", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json index e86c48241a91..498c27b3adc1 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json index fc60004e5ae5..aa04200c9e58 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "machineName": "ContosoVm", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json index 9527819b5927..8c2fa5c2e96e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "runCommandName": "myRunCommand", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json index e062b0eab7c8..d906ec7b19a1 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_ListByVirtualMachines.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", "resourceGroupName": "testrg", "machineName": "ContosoVm" diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json index e1f17f9a3296..abe91df97c4b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json index 9a406faf9575..6ef8721be714 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json index c936f2408444..212250fcae4b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroupName", "name": "myMachineName", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json index ad3a25feb725..8f27ee0bcd7f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroupName", "name": "myMachineName", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "installPatchesInput": { "maximumDuration": "PT4H", "rebootSetting": "IfRequired", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json index a7e957eff034..a1857596e78c 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "parameters": { "location": "eastus2euap", "properties": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json index b7636114f27b..30ce93eaf749 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": {}, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json index 20d780a2c719..5dd377dd3021 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json index cfae35caee5a..c1a4f0a8da55 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json index 92c05f76f87f..5d707108f716 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "{subscription-id}", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json index 8ec18c5096a7..4ea2a570b4d8 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "location": "eastus2euap", "kind": null, "parameters": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json index 03ac8adfebe4..984e068fb926 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json index 78ce9420e6e3..a241baf544ca 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "extensionName": "CustomScriptExtension", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "extensionParameters": { "location": "eastus2euap", "properties": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json index 64a8a4b09fa1..838ac2275b40 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "scopeName": "myPrivateLinkScope", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": {}, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json index 6e9db485ba93..4e4387f0d823 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "scopeName": "myPrivateLinkScope", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json index b044db15efdb..d768ea5fa6ca 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "myResourceGroup", "scopeName": "myPrivateLinkScope", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json index 114b57086ea3..d661f60ff84d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "scopeName": "myPrivateLinkScope", "privateEndpointConnectionName": "private-endpoint-connection-name", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "parameters": { "properties": { "privateLinkServiceConnectionState": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json index 09a57f23e338..b90af661b12b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "myResourceGroup", "scopeName": "myPrivateLinkScope", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "groupName": "hybridcompute" }, "responses": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json index 984a72cba81d..3270ca8eecc1 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-1111-2222-3333-444444444444", "resourceGroupName": "myResourceGroup", "scopeName": "myPrivateLinkScope", - "api-version": "2023-04-25-preview" + "api-version": "2023-06-20-preview" }, "responses": { "200": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json index 9efb3e288933..f311be083db7 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", "resourceGroupName": "my-resource-group", "scopeName": "my-privatelinkscope", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json index e48ab64c7983..aada5caa206d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", "resourceGroupName": "my-resource-group", "scopeName": "my-privatelinkscope" diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json index 70124b6bf13d..fddef3aa053f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", "resourceGroupName": "my-resource-group", "scopeName": "my-privatelinkscope" diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json index 90317bdb0ccb..53e1aff90f35 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "location": "wus2", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", "privateLinkScopeId": "f5dc51d3-92ed-4d7e-947a-775ea79b4919" diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json index 9be50f662c20..eecdf7f9af0f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "location": "wus2", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", "resourceGroupName": "my-resource-group", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json index e654989888c1..2dc194117a2d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919" }, "responses": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json index f4f6aca11497..de7905edc959 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", "resourceGroupName": "my-resource-group" }, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json index 2433d530401c..98294662e7ed 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "86dc51d3-92ed-4d7e-947a-775ea79b4919", "resourceGroupName": "my-resource-group", "scopeName": "my-privatelinkscope", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json index cec39f05e87a..8c8a1996568e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "scopeName": "my-privatelinkscope", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json index 682ba599e133..d4055e40ff3f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "runCommandName": "myRunCommand", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "runCommandProperties": { "location": "eastus2", "properties": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json index bf3482139dc0..a3fbda27f297 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "extensionName": "CustomScriptExtension", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "extensionParameters": { "properties": { "publisher": "Microsoft.Compute", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json index 1035312882f8..feba83e3240f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json @@ -4,7 +4,7 @@ "resourceGroupName": "myResourceGroup", "machineName": "myMachine", "runCommandName": "myRunCommand", - "api-version": "2023-04-25-preview", + "api-version": "2023-06-20-preview", "runCommandProperties": { "tags": { "tag1": "value1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json index 6879c0591500..5d39236ae16b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json @@ -6,7 +6,7 @@ "name": "HybridComputeManagementClient" }, "description": "Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management.", - "version": "2023-04-25-preview" + "version": "2023-06-20-preview" }, "host": "management.azure.com", "schemes": [ From 60db4b26e95701b077aacb1c2e7e315602be0bd2 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Fri, 30 Jun 2023 13:43:17 -0700 Subject: [PATCH 04/23] license profile API --- .../2023-06-20-preview/HybridCompute.json | 1744 ++++++++--------- ...rsion.json => AgentVersion_GetLatest.json} | 0 ...ntVersions.json => AgentVersions_Get.json} | 0 .../examples/GetRunCommand.json | 53 - ...a.json => HybridIdentityMetadata_Get.json} | 0 .../examples/ListRunCommand.json | 79 - ...rkProfile.json => NetworkProfile_Get.json} | 0 .../examples/PutRunCommand.json | 98 - .../examples/UpdateRunCommand.json | 63 - .../ExtensionMetadata_Get.json | 0 .../ExtensionMetadata_List.json | 0 .../Extension_CreateOrUpdate.json} | 0 .../Extension_Delete.json} | 0 .../Extension_Get.json} | 0 .../Extension_List.json} | 0 .../Extension_Update.json} | 0 .../{ => extension}/Extensions_Upgrade.json | 0 .../LicenseProfile_CreateOrUpdate.json | 97 + .../LicenseProfile_Delete.json} | 2 +- .../licenseProfile/LicenseProfile_Get.json | 47 + .../licenseProfile/LicenseProfile_List.json | 51 + .../licenseProfile/LicenseProfile_Update.json | 61 + .../Machine_AssessPatches.json} | 0 .../Machine_InstallPatches.json} | 0 .../Machines_CreateOrUpdate.json | 12 + .../{ => machine}/Machines_Delete.json | 0 .../examples/{ => machine}/Machines_Get.json | 12 + .../Machines_ListByResourceGroup.json | 0 .../Machines_ListBySubscription.json | 0 .../{ => machine}/Machines_Update.json | 12 + .../PrivateEndpointConnection_Delete.json} | 0 .../PrivateEndpointConnection_Get.json} | 0 .../PrivateEndpointConnection_List.json} | 0 .../PrivateEndpointConnection_Update.json} | 0 ...vateLinkScopePrivateLinkResource_Get.json} | 0 ...LinkScopePrivateLinkResource_ListGet.json} | 0 .../PrivateLinkScopes_Create.json} | 0 .../PrivateLinkScopes_Delete.json} | 0 .../PrivateLinkScopes_Get.json} | 0 .../PrivateLinkScopes_GetValidation.json} | 0 ...teLinkScopes_GetValidationForMachine.json} | 0 .../PrivateLinkScopes_List.json} | 0 ...rivateLinkScopes_ListByResourceGroup.json} | 0 .../PrivateLinkScopes_Update.json} | 0 .../PrivateLinkScopes_UpdateTagsOnly.json} | 0 .../2023-06-20-preview/privateLinkScopes.json | 30 +- 46 files changed, 1163 insertions(+), 1198 deletions(-) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{GETLatestAgentVersion.json => AgentVersion_GetLatest.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{GETAgentVersions.json => AgentVersions_Get.json} (100%) delete mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{GetHybridIdentityMetadata.json => HybridIdentityMetadata_Get.json} (100%) delete mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{GETNetworkProfile.json => NetworkProfile_Get.json} (100%) delete mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json delete mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => extension}/ExtensionMetadata_Get.json (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => extension}/ExtensionMetadata_List.json (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PUTExtension.json => extension/Extension_CreateOrUpdate.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{DELETEExtension.json => extension/Extension_Delete.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{GETExtension.json => extension/Extension_Get.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{LISTExtension.json => extension/Extension_List.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{UpdateExtension.json => extension/Extension_Update.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => extension}/Extensions_Upgrade.json (100%) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{DeleteRunCommand.json => licenseProfile/LicenseProfile_Delete.json} (91%) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{MachineAssessPatches.json => machine/Machine_AssessPatches.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{MachineInstallPatches.json => machine/Machine_InstallPatches.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => machine}/Machines_CreateOrUpdate.json (89%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => machine}/Machines_Delete.json (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => machine}/Machines_Get.json (92%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => machine}/Machines_ListByResourceGroup.json (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => machine}/Machines_ListBySubscription.json (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{ => machine}/Machines_Update.json (89%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateEndpointConnectionDelete.json => privateEndpoint/PrivateEndpointConnection_Delete.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateEndpointConnectionGet.json => privateEndpoint/PrivateEndpointConnection_Get.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateEndpointConnectionList.json => privateEndpoint/PrivateEndpointConnection_List.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateEndpointConnectionUpdate.json => privateEndpoint/PrivateEndpointConnection_Update.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopePrivateLinkResourceGet.json => privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopePrivateLinkResourceListGet.json => privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesCreate.json => privateLinkScope/PrivateLinkScopes_Create.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesDelete.json => privateLinkScope/PrivateLinkScopes_Delete.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesGet.json => privateLinkScope/PrivateLinkScopes_Get.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesGetValidation.json => privateLinkScope/PrivateLinkScopes_GetValidation.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesGetValidationForMachine.json => privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesList.json => privateLinkScope/PrivateLinkScopes_List.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesListByResourceGroup.json => privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesUpdate.json => privateLinkScope/PrivateLinkScopes_Update.json} (100%) rename specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/{PrivateLinkScopesUpdateTagsOnly.json => privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json} (100%) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index ec50168c07d2..df67642b5236 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -87,7 +87,7 @@ }, "x-ms-examples": { "Create or Update a Machine": { - "$ref": "./examples/Machines_CreateOrUpdate.json" + "$ref": "./examples/machine/Machines_CreateOrUpdate.json" } } }, @@ -143,7 +143,7 @@ }, "x-ms-examples": { "Update a Machine": { - "$ref": "./examples/Machines_Update.json" + "$ref": "./examples/machine/Machines_Update.json" } } }, @@ -190,7 +190,7 @@ }, "x-ms-examples": { "Delete a Machine": { - "$ref": "./examples/Machines_Delete.json" + "$ref": "./examples/machine/Machines_Delete.json" } } }, @@ -251,58 +251,87 @@ }, "x-ms-examples": { "Get Machine": { - "$ref": "./examples/Machines_Get.json" + "$ref": "./examples/machine/Machines_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles/{licenseProfileName}": { + "put": { "tags": [ - "machines" + "licenseProfiles" ], - "operationId": "Machines_AssessPatches", - "x-ms-examples": { - "Assess patch state of a machine.": { - "$ref": "./examples/MachineAssessPatches.json" - } - }, - "description": "The operation to assess patches on a hybrid machine identity in Azure.", + "operationId": "LicenseProfiles_CreateOrUpdate", + "description": "The operation to create or update a license profile.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", - "in": "path", + "$ref": "#/parameters/machineNameParameter" + }, + { + "$ref": "#/parameters/licenseProfileNameParameter" + }, + { + "name": "parameters", + "in": "body", "required": true, - "type": "string", - "description": "The name of the hybrid machine." + "schema": { + "$ref": "#/definitions/LicenseProfile" + }, + "description": "Parameters supplied to the Create license profile operation." } ], "responses": { "200": { - "description": "OK", + "description": "Updated Resource", "schema": { - "$ref": "#/definitions/MachineAssessPatchesResult" + "$ref": "#/definitions/LicenseProfile" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/LicenseProfile" + }, + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } } }, "202": { - "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "description": "Accepted", "headers": { "Location": { "description": "The URL of the resource used to check the status of the asynchronous operation.", "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" } } }, @@ -314,67 +343,66 @@ } }, "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" + "x-ms-examples": { + "Create or Update a License Profile": { + "$ref": "./examples/licenseProfile/LicenseProfile_CreateOrUpdate.json" + } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/installPatches": { - "post": { + }, + "patch": { "tags": [ - "machines" + "licenseProfiles" ], - "operationId": "Machines_InstallPatches", - "description": "The operation to install patches on a hybrid machine identity in Azure.", - "x-ms-examples": { - "Install patch state of a machine.": { - "$ref": "./examples/MachineInstallPatches.json" - } - }, + "operationId": "LicenseProfiles_Update", + "description": "The operation to update a license profile.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "name", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the hybrid machine." + "$ref": "#/parameters/machineNameParameter" }, { - "name": "installPatchesInput", + "$ref": "#/parameters/licenseProfileNameParameter" + }, + { + "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/MachineInstallPatchesParameters" + "$ref": "#/definitions/LicenseProfileUpdate" }, - "description": "Input for InstallPatches as directly received by the API" + "description": "Parameters supplied to the Update license profile operation." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineInstallPatchesResult" + "$ref": "#/definitions/LicenseProfile" } }, "202": { - "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "description": "Accepted", "headers": { "Location": { "description": "The URL of the resource used to check the status of the asynchronous operation.", "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" } } }, @@ -386,18 +414,18 @@ } }, "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" + "x-ms-examples": { + "Update a License Profile": { + "$ref": "./examples/licenseProfile/LicenseProfile_Update.json" + } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { + }, "get": { "tags": [ - "machines" + "licenseProfiles" ], - "operationId": "Machines_ListByResourceGroup", - "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", + "operationId": "LicenseProfiles_Get", + "description": "Retrieves information about the view of a license profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -407,13 +435,19 @@ }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/machineNameParameter" + }, + { + "$ref": "#/parameters/licenseProfileNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineListResult" + "$ref": "#/definitions/LicenseProfile" } }, "default": { @@ -424,37 +458,59 @@ } }, "x-ms-examples": { - "List Machines by resource group": { - "$ref": "./examples/Machines_ListByResourceGroup.json" + "Get License Profile": { + "$ref": "./examples/licenseProfile/LicenseProfile_Get.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { - "get": { + }, + "delete": { "tags": [ - "machines" + "licenseProfiles" ], - "operationId": "Machines_ListBySubscription", - "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", + "operationId": "LicenseProfiles_Delete", + "description": "The operation to delete a license profile.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/machineNameParameter" + }, + { + "$ref": "#/parameters/licenseProfileNameParameter" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/MachineListResult" + "description": "OK" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } } }, + "204": { + "description": "No Content" + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -462,23 +518,21 @@ } } }, + "x-ms-long-running-operation": true, "x-ms-examples": { - "List Machines by resource group": { - "$ref": "./examples/Machines_ListBySubscription.json" + "Delete a License Profile": { + "$ref": "./examples/licenseProfile/LicenseProfile_Delete.json" } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/licenseProfiles": { + "get": { "tags": [ - "MachineExtensions" + "licenseProfiles" ], - "operationId": "MachineExtensions_CreateOrUpdate", - "description": "The operation to create or update the extension.", + "operationId": "licenseProfiles_List", + "description": "The operation to get all license profiles of a non-Azure machine", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" @@ -491,23 +545,7 @@ "pattern": "[a-zA-Z0-9-_\\.]", "minLength": 1, "maxLength": 54, - "description": "The name of the machine where the extension should be created or updated." - }, - { - "name": "extensionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine extension." - }, - { - "name": "extensionParameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/MachineExtension" - }, - "description": "Parameters supplied to the Create Machine Extension operation." + "description": "The name of the machine." }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -520,12 +558,9 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineExtension" + "$ref": "#/definitions/LicenseProfilesListResult" } }, - "202": { - "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -533,78 +568,63 @@ } } }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "x-ms-examples": { - "Create or Update a Machine Extension": { - "$ref": "./examples/PUTExtension.json" + "GET all Machine Extensions": { + "$ref": "./examples/licenseProfile/LicenseProfile_List.json" } - }, - "x-ms-long-running-operation": true - }, - "patch": { + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/assessPatches": { + "post": { "tags": [ - "MachineExtensions" + "machines" ], - "operationId": "MachineExtensions_Update", - "description": "The operation to create or update the extension.", + "operationId": "Machines_AssessPatches", + "x-ms-examples": { + "Assess patch state of a machine.": { + "$ref": "./examples/machine/Machine_AssessPatches.json" + } + }, + "description": "The operation to assess patches on a hybrid machine identity in Azure.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { - "name": "machineName", - "in": "path", - "required": true, - "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "minLength": 1, - "maxLength": 54, - "description": "The name of the machine where the extension should be created or updated." + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "extensionName", + "name": "resourceGroupName", "in": "path", "required": true, "type": "string", - "description": "The name of the machine extension." + "description": "The name of the resource group." }, { - "name": "extensionParameters", - "in": "body", + "name": "name", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/MachineExtensionUpdate" - }, - "description": "Parameters supplied to the Create Machine Extension operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "type": "string", + "description": "The name of the hybrid machine." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineExtension" + "$ref": "#/definitions/MachineAssessPatchesResult" } }, "202": { - "description": "Accepted", + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", "headers": { "Location": { "description": "The URL of the resource used to check the status of the asynchronous operation.", "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" } } }, @@ -615,72 +635,71 @@ } } }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/installPatches": { + "post": { + "tags": [ + "machines" + ], + "operationId": "Machines_InstallPatches", + "description": "The operation to install patches on a hybrid machine identity in Azure.", "x-ms-examples": { - "Create or Update a Machine Extension": { - "$ref": "./examples/UpdateExtension.json" + "Install patch state of a machine.": { + "$ref": "./examples/machine/Machine_InstallPatches.json" } }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "MachineExtensions" - ], - "operationId": "MachineExtensions_Delete", - "description": "The operation to delete the extension.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" }, { - "name": "machineName", + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "resourceGroupName", "in": "path", "required": true, "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "minLength": 1, - "maxLength": 54, - "description": "The name of the machine where the extension should be deleted." + "description": "The name of the resource group." }, { - "name": "extensionName", + "name": "name", "in": "path", "required": true, "type": "string", - "description": "The name of the machine extension." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "description": "The name of the hybrid machine." }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "name": "installPatchesInput", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineInstallPatchesParameters" + }, + "description": "Input for InstallPatches as directly received by the API" } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineInstallPatchesResult" + } }, "202": { - "description": "Accepted", + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", "headers": { "Location": { "description": "The URL of the resource used to check the status of the asynchronous operation.", "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" } } }, - "204": { - "description": "No Content" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -689,39 +708,61 @@ } }, "x-ms-long-running-operation": true, - "x-ms-examples": { - "Delete a Machine Extension": { - "$ref": "./examples/DELETEExtension.json" - } + "x-ms-long-running-operation-options": { + "final-state-via": "location" } - }, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines": { "get": { "tags": [ - "MachineExtensions" + "machines" ], - "operationId": "MachineExtensions_Get", - "description": "The operation to get the extension.", + "operationId": "Machines_ListByResourceGroup", + "description": "Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "machineName", - "in": "path", - "required": true, - "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "minLength": 1, - "maxLength": 54, - "description": "The name of the machine containing the extension." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "extensionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the machine extension." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineListResult" + } }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Machines by resource group": { + "$ref": "./examples/machine/Machines_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines": { + "get": { + "tags": [ + "machines" + ], + "operationId": "Machines_ListBySubscription", + "description": "Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.", + "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, @@ -733,7 +774,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineExtension" + "$ref": "#/definitions/MachineListResult" } }, "default": { @@ -744,19 +785,22 @@ } }, "x-ms-examples": { - "GET Machine Extension": { - "$ref": "./examples/GETExtension.json" + "List Machines by resource group": { + "$ref": "./examples/machine/Machines_ListBySubscription.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}": { + "put": { "tags": [ "MachineExtensions" ], - "operationId": "MachineExtensions_List", - "description": "The operation to get all extensions of a non-Azure machine", + "operationId": "MachineExtensions_CreateOrUpdate", + "description": "The operation to create or update the extension.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" @@ -769,14 +813,23 @@ "pattern": "[a-zA-Z0-9-_\\.]", "minLength": 1, "maxLength": 54, - "description": "The name of the machine containing the extension." + "description": "The name of the machine where the extension should be created or updated." }, { - "name": "$expand", - "in": "query", - "required": false, + "name": "extensionName", + "in": "path", + "required": true, "type": "string", - "description": "The expand expression to apply on the operation." + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtension" + }, + "description": "Parameters supplied to the Create Machine Extension operation." }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -789,9 +842,12 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineExtensionsListResult" + "$ref": "#/definitions/MachineExtension" } }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously." + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -799,30 +855,20 @@ } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "GET all Machine Extensions": { - "$ref": "./examples/LISTExtension.json" + "Create or Update a Machine Extension": { + "$ref": "./examples/extension/Extension_CreateOrUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions": { - "post": { + }, + "x-ms-long-running-operation": true + }, + "patch": { "tags": [ - "MachineExtensions Upgrade" + "MachineExtensions" ], - "operationId": "UpgradeExtensions", - "description": "The operation to Upgrade Machine Extensions.", + "operationId": "MachineExtensions_Update", + "description": "The operation to create or update the extension.", "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, @@ -834,24 +880,40 @@ "pattern": "[a-zA-Z0-9-_\\.]", "minLength": 1, "maxLength": 54, - "description": "The name of the hybrid machine." + "description": "The name of the machine where the extension should be created or updated." }, { - "name": "extensionUpgradeParameters", + "name": "extensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the machine extension." + }, + { + "name": "extensionParameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/MachineExtensionUpgrade" + "$ref": "#/definitions/MachineExtensionUpdate" }, - "description": "Parameters supplied to the Upgrade Extensions operation." + "description": "Parameters supplied to the Create Machine Extension operation." + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/MachineExtension" + } }, "202": { - "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "description": "Accepted", "headers": { "Location": { "description": "The URL of the resource used to check the status of the asynchronous operation.", @@ -876,154 +938,180 @@ } }, "x-ms-examples": { - "Upgrade Machine Extensions": { - "$ref": "./examples/Extensions_Upgrade.json" + "Create or Update a Machine Extension": { + "$ref": "./examples/extension/Extension_Update.json" } }, "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}": { - "get": { + }, + "delete": { "tags": [ - "extensions" + "MachineExtensions" ], - "operationId": "ExtensionMetadata_Get", - "description": "Gets an Extension Metadata based on location, publisher, extensionType and version", + "operationId": "MachineExtensions_Delete", + "description": "The operation to delete the extension.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "location", + "name": "machineName", "in": "path", "required": true, "type": "string", - "description": "The location of the Extension being received." + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine where the extension should be deleted." }, { - "name": "publisher", + "name": "extensionName", "in": "path", "required": true, "type": "string", - "description": "The publisher of the Extension being received." + "description": "The name of the machine extension." }, { - "name": "extensionType", - "in": "path", - "required": true, - "type": "string", - "description": "The extensionType of the Extension being received." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "version", - "in": "path", - "required": true, - "type": "string", - "description": "The version of the Extension being received." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ExtensionValue" + "description": "OK" + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } } }, + "204": { + "description": "No Content" + }, "default": { - "description": "Error in retrieving an extension metadata", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, + "x-ms-long-running-operation": true, "x-ms-examples": { - "GET an extensions metadata": { - "$ref": "./examples/ExtensionMetadata_Get.json" + "Delete a Machine Extension": { + "$ref": "./examples/extension/Extension_Delete.json" } } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions": { + }, "get": { "tags": [ - "extensions" + "MachineExtensions" ], - "operationId": "ExtensionMetadata_List", - "description": "Gets all Extension versions based on location, publisher, extensionType", + "operationId": "MachineExtensions_Get", + "description": "The operation to get the extension.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "location", + "name": "machineName", "in": "path", "required": true, "type": "string", - "description": "The location of the Extension being received." + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine containing the extension." }, { - "name": "publisher", + "name": "extensionName", "in": "path", "required": true, "type": "string", - "description": "The publisher of the Extension being received." + "description": "The name of the machine extension." }, { - "name": "extensionType", - "in": "path", - "required": true, - "type": "string", - "description": "The extensionType of the Extension being received." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ExtensionValueListResult" + "$ref": "#/definitions/MachineExtension" } }, "default": { - "description": "Error in retrieving extension list", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": null - }, "x-ms-examples": { - "GET a list of extensions": { - "$ref": "./examples/ExtensionMetadata_List.json" + "GET Machine Extension": { + "$ref": "./examples/extension/Extension_Get.json" } } } }, - "/providers/Microsoft.HybridCompute/operations": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions": { "get": { "tags": [ - "operations" + "MachineExtensions" ], - "operationId": "Operations_List", - "description": "Gets a list of hybrid compute operations.", + "operationId": "MachineExtensions_List", + "description": "The operation to get all extensions of a non-Azure machine", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the machine containing the extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "#/definitions/MachineExtensionsListResult" } }, "default": { @@ -1033,23 +1121,23 @@ } } }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "x-ms-examples": { - "List Hybrid Compute Provider Operations": { - "$ref": "./examples/Operations_List.json" + "GET all Machine Extensions": { + "$ref": "./examples/extension/Extension_List.json" } - }, - "x-ms-pageable": { - "nextLinkName": null } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/networkProfile": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions": { + "post": { "tags": [ - "MachineNetworkProfile" + "MachineExtensions Upgrade" ], - "operationId": "NetworkProfile_Get", - "description": "The operation to get network information of hybrid machine", + "operationId": "UpgradeExtensions", + "description": "The operation to Upgrade Machine Extensions.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1069,13 +1157,37 @@ "minLength": 1, "maxLength": 54, "description": "The name of the hybrid machine." + }, + { + "name": "extensionUpgradeParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MachineExtensionUpgrade" + }, + "description": "Parameters supplied to the Upgrade Extensions operation." } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/NetworkProfile" + "description": "OK" + }, + "202": { + "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } } }, "default": { @@ -1086,280 +1198,206 @@ } }, "x-ms-examples": { - "GET Network Profile": { - "$ref": "./examples/GETNetworkProfile.json" + "Upgrade Machine Extensions": { + "$ref": "./examples/extension/Extensions_Upgrade.json" } - } + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata/{metadataName}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}": { "get": { "tags": [ - "HybridIdentityMetadata" - ], - "operationId": "HybridIdentityMetadata_Get", - "summary": "Gets HybridIdentityMetadata.", - "description": "Implements HybridIdentityMetadata GET method.", - "x-ms-examples": { - "GetHybridIdentityMetadata": { - "$ref": "./examples/GetHybridIdentityMetadata.json" - } - }, - "produces": [ - "application/json" + "extensions" ], + "operationId": "ExtensionMetadata_Get", + "description": "Gets an Extension Metadata based on location, publisher, extensionType and version", "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location of the Extension being received." }, { - "name": "machineName", + "name": "publisher", "in": "path", "required": true, "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "minLength": 1, - "maxLength": 54, - "description": "The name of the hybrid machine." + "description": "The publisher of the Extension being received." }, { + "name": "extensionType", "in": "path", - "name": "metadataName", "required": true, "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "description": "Name of the HybridIdentityMetadata." + "description": "The extensionType of the Extension being received." }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "name": "version", + "in": "path", + "required": true, + "type": "string", + "description": "The version of the Extension being received." } ], "responses": { "200": { - "description": "Success", + "description": "OK", "schema": { - "$ref": "#/definitions/HybridIdentityMetadata" + "$ref": "#/definitions/ExtensionValue" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error in retrieving an extension metadata", "schema": { "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "GET an extensions metadata": { + "$ref": "./examples/extension/ExtensionMetadata_Get.json" + } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata": { + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions": { "get": { "tags": [ - "HybridIdentityMetadata" - ], - "operationId": "HybridIdentityMetadata_ListByMachines", - "summary": "Implements GET HybridIdentityMetadata in a machine.", - "description": "Returns the list of HybridIdentityMetadata of the given machine.", - "x-ms-examples": { - "HybridIdentityMetadataListByVirtualMachines": { - "$ref": "./examples/HybridIdentityMetadata_ListByVirtualMachines.json" - } - }, - "produces": [ - "application/json" + "extensions" ], + "operationId": "ExtensionMetadata_List", + "description": "Gets all Extension versions based on location, publisher, extensionType", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "machineName", + "name": "location", "in": "path", "required": true, "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "minLength": 1, - "maxLength": 54, - "description": "The name of the hybrid machine." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/HybridIdentityMetadataList" - } + "description": "The location of the Extension being received." }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions": { - "get": { - "tags": [ - "AgentVersions" - ], - "operationId": "AgentVersion_List", - "description": "Gets all Agent Versions along with the download link currently present.", - "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "name": "publisher", + "in": "path", + "required": true, + "type": "string", + "description": "The publisher of the Extension being received." }, { - "name": "osType", + "name": "extensionType", "in": "path", "required": true, "type": "string", - "description": "Defines the os type." + "description": "The extensionType of the Extension being received." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/AgentVersionsList" + "$ref": "#/definitions/ExtensionValueListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error in retrieving extension list", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, + "x-ms-pageable": { + "nextLinkName": null + }, "x-ms-examples": { - "GET Agent Versions": { - "$ref": "./examples/GETAgentVersions.json" + "GET a list of extensions": { + "$ref": "./examples/extension/ExtensionMetadata_List.json" } } } }, - "/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions/{version}": { + "/providers/Microsoft.HybridCompute/operations": { "get": { "tags": [ - "AgentVersions" + "operations" ], - "operationId": "AgentVersion_Get", - "description": "Gets an Agent Version along with the download link currently present.", + "operationId": "Operations_List", + "description": "Gets a list of hybrid compute operations.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "osType", - "in": "path", - "required": true, - "type": "string", - "description": "Defines the os type" - }, - { - "name": "version", - "in": "path", - "required": true, - "type": "string", - "description": "Defines the agent version. To get latest, use latest or else a specific agent version." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/AgentVersion" + "$ref": "#/definitions/OperationListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GET Agent Versions": { - "$ref": "./examples/GETLatestAgentVersion.json" + "List Hybrid Compute Provider Operations": { + "$ref": "./examples/Operations_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": null } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/networkProfile": { + "get": { "tags": [ - "MachineRunCommands" + "MachineNetworkProfile" ], - "operationId": "MachineRunCommands_CreateOrUpdate", - "description": "The operation to create or update a run command.", + "operationId": "NetworkProfile_Get", + "description": "The operation to get network information of hybrid machine", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/machineNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "name": "runCommandName", - "in": "path", - "required": true, - "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "description": "The name of the run command." + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "runCommandProperties", - "in": "body", + "name": "machineName", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/MachineRunCommand" - }, - "description": "Parameters supplied to the Create Run Command." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Updated Resource", - "schema": { - "$ref": "#/definitions/MachineRunCommand" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MachineRunCommand" - }, - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/NetworkProfile" } }, "default": { @@ -1370,75 +1408,62 @@ } }, "x-ms-examples": { - "Create or Update a Run Command": { - "$ref": "./examples/PutRunCommand.json" + "GET Network Profile": { + "$ref": "./examples/NetworkProfile_Get.json" } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" } - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata/{metadataName}": { + "get": { "tags": [ - "MachineRunCommands" + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_Get", + "summary": "Gets HybridIdentityMetadata.", + "description": "Implements HybridIdentityMetadata GET method.", + "x-ms-examples": { + "GetHybridIdentityMetadata": { + "$ref": "./examples/HybridIdentityMetadata_Get.json" + } + }, + "produces": [ + "application/json" ], - "operationId": "MachineRunCommands_Update", - "description": "The operation to update the run command.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/machineNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "runCommandName", + "name": "machineName", "in": "path", "required": true, "type": "string", "pattern": "[a-zA-Z0-9-_\\.]", - "description": "The name of the run command." + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." }, { - "name": "runCommandProperties", - "in": "body", + "in": "path", + "name": "metadataName", "required": true, - "schema": { - "$ref": "#/definitions/MachineRunCommandUpdate" - }, - "description": "Parameters supplied to the Create Run Command." + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]", + "description": "Name of the HybridIdentityMetadata." }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK", + "description": "Success", "schema": { - "$ref": "#/definitions/MachineRunCommand" - } - }, - "202": { - "description": "HTTP 202 (Accepted) if the operation was successfully started and will complete asynchronously.", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } + "$ref": "#/definitions/HybridIdentityMetadata" } }, "default": { @@ -1447,67 +1472,53 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } - }, + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata": { + "get": { + "tags": [ + "HybridIdentityMetadata" + ], + "operationId": "HybridIdentityMetadata_ListByMachines", + "summary": "Implements GET HybridIdentityMetadata in a machine.", + "description": "Returns the list of HybridIdentityMetadata of the given machine.", "x-ms-examples": { - "Update a Run Command": { - "$ref": "./examples/UpdateRunCommand.json" + "HybridIdentityMetadataListByVirtualMachines": { + "$ref": "./examples/HybridIdentityMetadata_ListByVirtualMachines.json" } }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "MachineRunCommands" + "produces": [ + "application/json" ], - "operationId": "MachineRunCommands_Delete", - "description": "The operation to delete a run command.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/machineNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "name": "runCommandName", + "name": "machineName", "in": "path", "required": true, "type": "string", "pattern": "[a-zA-Z0-9-_\\.]", - "description": "The name of the run command." + "minLength": 1, + "maxLength": 54, + "description": "The name of the hybrid machine." }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK" - }, - "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } + "description": "Success", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadataList" } }, - "204": { - "description": "No Content" - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -1515,98 +1526,82 @@ } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Delete a Machine Run Command": { - "$ref": "./examples/DeleteRunCommand.json" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, + } + }, + "/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions": { "get": { "tags": [ - "MachineRunCommands" + "AgentVersions" ], - "operationId": "MachineRunCommands_Get", - "description": "The operation to get a run command.", + "operationId": "AgentVersion_List", + "description": "Gets all Agent Versions along with the download link currently present.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/machineNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "runCommandName", + "name": "osType", "in": "path", "required": true, "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", - "description": "The name of the run command." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "description": "Defines the os type." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineRunCommand" + "$ref": "#/definitions/AgentVersionsList" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Get a Run Command": { - "$ref": "./examples/GetRunCommand.json" + "GET Agent Versions": { + "$ref": "./examples/AgentVersions_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands": { + "/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions/{version}": { "get": { "tags": [ - "MachineRunCommands" + "AgentVersions" ], - "operationId": "MachineRunCommands_List", - "description": "The operation to get all the run commands of a non-Azure machine.", + "operationId": "AgentVersion_Get", + "description": "Gets an Agent Version along with the download link currently present.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/machineNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "name": "$expand", - "in": "query", - "required": false, + "name": "osType", + "in": "path", + "required": true, "type": "string", - "description": "The expand expression to apply on the operation." - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + "description": "Defines the os type" }, { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + "name": "version", + "in": "path", + "required": true, + "type": "string", + "description": "Defines the agent version. To get latest, use latest or else a specific agent version." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/MachineRunCommandsListResult" + "$ref": "#/definitions/AgentVersion" } }, "default": { @@ -1616,12 +1611,9 @@ } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "GET all Machine Run Commands": { - "$ref": "./examples/ListRunCommand.json" + "GET Agent Versions": { + "$ref": "./examples/AgentVersion_GetLatest.json" } } } @@ -2013,6 +2005,10 @@ "$ref": "#/definitions/OSProfile", "description": "Specifies the operating system settings for the hybrid machine." }, + "esuProperties": { + "$ref": "#/definitions/MachineEsuProperties", + "description": "Specifies the ESU related properties for a machine." + }, "provisioningState": { "readOnly": true, "type": "string", @@ -2186,24 +2182,99 @@ "items": { "$ref": "#/definitions/MachineExtension" }, - "description": "The list of extensions affiliated to the machine" - }, - "identity": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" - }, - "kind": { - "type": "string", - "description": "Indicates which kind of VM fabric the instance is an instance of, such as HCI or SCVMM etc.", - "enum": [ - "AVS", - "HCI", - "SCVMM", - "VMware" - ], - "x-ms-enum": { - "name": "privateCloudKind", - "modelAsString": true - } + "description": "The list of extensions affiliated to the machine" + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" + }, + "kind": { + "$ref": "#/definitions/ArcKindEnum " + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a hybrid machine." + }, + "ArcKindEnum ": { + "type": "string", + "description": "Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc.", + "enum": [ + "AVS", + "HCI", + "SCVMM", + "VMware", + "EPS", + "GCP", + "AWS" + ], + "x-ms-enum": { + "name": "ArcKindEnum ", + "modelAsString": true + } + }, + "MachineUpdate": { + "type": "object", + "properties": { + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" + }, + "kind": { + "$ref": "#/definitions/ArcKindEnum " + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MachineUpdateProperties", + "description": "Hybrid Compute Machine properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceUpdate" + } + ], + "description": "Describes a hybrid machine Update." + }, + "MachineListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Machine" + }, + "description": "The list of hybrid machines." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." + } + }, + "required": [ + "value" + ], + "description": "The List hybrid machine operation response." + }, + "LicenseProfile": { + "type": "object", + "properties": { + "properties": { + "type": "object", + "properties": { + "esuProfile": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EsuProfileProperties", + "description": "Hybrid Compute ESU Profile properties" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + } + }, + "description": "Describe the properties of a license profile." } }, "allOf": [ @@ -2211,32 +2282,21 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ], - "description": "Describes a hybrid machine." + "description": "Describes a license profile in a hybrid machine." }, - "MachineUpdate": { + "LicenseProfileUpdate": { "type": "object", "properties": { - "identity": { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" - }, - "kind": { - "type": "string", - "description": "Indicates which kind of VM fabric the instance is an instance of, such as HCI or SCVMM etc.", - "enum": [ - "AVS", - "HCI", - "SCVMM", - "VMware" - ], - "x-ms-enum": { - "name": "privateCloudKind", - "modelAsString": true - } - }, "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MachineUpdateProperties", - "description": "Hybrid Compute Machine properties" + "type": "object", + "properties": { + "esuProfile": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EsuProfileUpdateProperties", + "description": "Hybrid Compute ESU Profile Update properties" + } + }, + "description": "Describe the Update properties of a license profile." } }, "allOf": [ @@ -2244,21 +2304,21 @@ "$ref": "#/definitions/ResourceUpdate" } ], - "description": "Describes a hybrid machine Update." + "description": "Describes a License Profile Update." }, - "MachineListResult": { + "LicenseProfilesListResult": { "type": "object", "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/Machine" + "$ref": "#/definitions/LicenseProfile" }, - "description": "The list of hybrid machines." + "description": "The list of license profiles." }, "nextLink": { "type": "string", - "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of hybrid machines." + "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of license profile." } }, "required": [ @@ -2266,6 +2326,113 @@ ], "description": "The List hybrid machine operation response." }, + "EsuKey": { + "type": "object", + "properties": { + "esuSku": { + "type": "string", + "description": "SKU number." + }, + "licenseStatus": { + "type": "string", + "description": "The current status of the license profile key." + } + } + }, + "ArcEnabledEsuStatus": { + "type": "string", + "enum": [ + "enrolled", + "unenrolled", + "ineligible", + "unknown" + ], + "x-ms-enum": { + "name": "ArcEnabledEsuStatus", + "modelAsString": true + }, + "description": "The ESU enrollment state." + }, + "EsuEnrollmentUpdateRecord": { + "type": "object", + "properties": { + "oldState": { + "$ref": "#/definitions/ArcEnabledEsuStatus", + "description": "The old ESU enrollment state." + }, + "newState": { + "$ref": "#/definitions/ArcEnabledEsuStatus", + "description": "The new ESU enrollment state." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time that the state has been changed." + } + } + }, + "EsuProfileProperties": { + "type": "object", + "properties": { + "arcEsuEnrolled": { + "$ref": "#/definitions/ArcEsuEnrolled" + }, + "esuKeys": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/EsuKey" + }, + "description": "The list of ESU keys.", + "x-ms-identifiers": [] + }, + "esuEnrollmentHistory": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/EsuEnrollmentUpdateRecord" + }, + "description": "The time records represent the state change of ESU enrollment.", + "x-ms-identifiers": [] + } + }, + "description": "Describes the properties of a License Profile." + }, + "ArcEsuEnrolled": { + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "ArcEsuEnrolled", + "modelAsString": true + }, + "description": "Specifies wether the machine has enrolled in ESU or not." + }, + "EsuProfileUpdateProperties": { + "type": "object", + "properties": { + "arcEsuEnrolled": { + "$ref": "#/definitions/ArcEsuEnrolled" + } + }, + "description": "Describes the Update properties of a License Profile." + }, + "MachineEsuProperties": { + "readOnly": true, + "type": "object", + "properties": { + "esuKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/EsuKey" + }, + "description": "The list of ESU keys.", + "x-ms-identifiers": [] + } + } + }, "ResourceUpdate": { "type": "object", "description": "The Update Resource model definition.", @@ -3083,223 +3250,6 @@ } }, "description": "The result summary of an installation operation." - }, - "MachineRunCommand": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MachineRunCommandProperties", - "description": "Describes Run Command Properties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" - } - ], - "description": "Describes a Run Command" - }, - "MachineRunCommandProperties": { - "type": "object", - "properties": { - "source": { - "$ref": "#/definitions/MachineRunCommandScriptSource", - "description": "The source of the run command script." - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/RunCommandInputParameter" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The parameters used by the script." - }, - "protectedParameters": { - "type": "array", - "items": { - "$ref": "#/definitions/RunCommandInputParameter" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The parameters used by the script." - }, - "asyncExecution": { - "type": "boolean", - "default": false, - "description": "Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete." - }, - "runAsUser": { - "type": "string", - "description": "Specifies the user account on the machine when executing the run command." - }, - "runAsPassword": { - "type": "string", - "description": "Specifies the user account password on the machine when executing the run command.", - "x-ms-secret": true - }, - "timeoutInSeconds": { - "type": "integer", - "format": "int32", - "description": "The timeout in seconds to execute the run command." - }, - "outputBlobUri": { - "type": "string", - "description": "Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. " - }, - "errorBlobUri": { - "type": "string", - "description": "Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter." - }, - "outputBlobManagedIdentity": { - "$ref": "#/definitions/RunCommandManagedIdentity", - "description": "User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged " - }, - "errorBlobManagedIdentity": { - "$ref": "#/definitions/RunCommandManagedIdentity", - "description": "User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged " - }, - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state, which only appears in the response." - }, - "instanceView": { - "readOnly": true, - "$ref": "#/definitions/MachineRunCommandInstanceView", - "description": "The machine run command instance view." - } - }, - "description": "Describes the properties of a run command." - }, - "MachineRunCommandScriptSource": { - "type": "object", - "properties": { - "script": { - "type": "string", - "description": "Specifies the script content to be executed on the machine." - }, - "scriptUri": { - "type": "string", - "description": "Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI." - }, - "commandId": { - "type": "string", - "description": "Specifies the commandId of predefined built-in script." - }, - "scriptUriManagedIdentity": { - "$ref": "#/definitions/RunCommandManagedIdentity", - "description": "User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged." - } - }, - "description": "Describes the script sources for run command. Use only one of script, scriptUri, commandId." - }, - "MachineRunCommandInstanceView": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The run command name." - }, - "status": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "The status code." - }, - "level": { - "type": "string", - "description": "The level code.", - "enum": [ - "Info", - "Warning", - "Error" - ], - "x-ms-enum": { - "name": "StatusLevelTypes", - "modelAsString": true - } - }, - "displayStatus": { - "type": "string", - "description": "The short localizable label for the status." - }, - "message": { - "type": "string", - "description": "The detailed status message, including for alerts and error messages." - }, - "time": { - "type": "string", - "format": "date-time", - "description": "The time of the status." - } - }, - "description": "Instance view status." - } - }, - "description": "Describes the Machine Extension Instance View." - }, - "MachineRunCommandsListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MachineRunCommand" - }, - "description": "The list of run commands" - }, - "nextLink": { - "type": "string", - "description": "The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands." - } - }, - "description": "Describes the Run Commands List Result." - }, - "MachineRunCommandUpdate": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ResourceUpdate" - } - ], - "description": "Describes a Machine Extension Update." - }, - "RunCommandInputParameter": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The run command parameter name." - }, - "value": { - "type": "string", - "description": "The run command parameter value." - } - }, - "required": [ - "name", - "value" - ], - "description": "Describes the properties of a run command parameter." - }, - "RunCommandManagedIdentity": { - "type": "object", - "properties": { - "clientId": { - "type": "string", - "description": "Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided." - }, - "objectId": { - "type": "string", - "description": "Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided." - } - }, - "description": " Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged." } }, "parameters": { @@ -3308,9 +3258,25 @@ "in": "path", "required": true, "type": "string", - "pattern": "[a-zA-Z0-9-_\\.]", + "pattern": "[a-zA-Z0-9-_\\.]+", "description": "The name of the hybrid machine.", "x-ms-parameter-location": "method" + }, + "licenseProfileNameParameter": { + "name": "licenseProfileName", + "in": "path", + "description": "The name of the license profile.", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]+", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method", + "x-ms-enum": { + "name": "LicenseProfileName", + "modelAsString": false + } } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/AgentVersion_GetLatest.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETLatestAgentVersion.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/AgentVersion_GetLatest.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/AgentVersions_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETAgentVersions.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/AgentVersions_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json deleted file mode 100644 index 8c2fa5c2e96e..000000000000 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetRunCommand.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "myResourceGroup", - "machineName": "myMachine", - "runCommandName": "myRunCommand", - "api-version": "2023-06-20-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", - "name": "myRunCommand", - "type": "Microsoft.HybridCompute/machines/runcommands", - "location": "eastus2", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "source": { - "script": "Write-Host Hello World!" - }, - "parameters": [ - { - "name": "param1", - "value": "value1" - }, - { - "name": "param2", - "value": "value2" - } - ], - "protectedParameters": [], - "asyncExecution": false, - "runAsUser": "user1", - "timeoutInSeconds": 3600, - "provisioningState": "Succeeded", - "instanceView": { - "name": "myRunCommand", - "status": { - "code": "success", - "level": "Info", - "displayStatus": "Provisioning succeeded", - "message": "Finished executing command, StdOut: , StdErr:", - "time": "2019-08-08T20:42:10.999Z" - } - } - } - } - } - } -} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GetHybridIdentityMetadata.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/HybridIdentityMetadata_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json deleted file mode 100644 index 6ef8721be714..000000000000 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ListRunCommand.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "myResourceGroup", - "machineName": "myMachine", - "api-version": "2023-06-20-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand_1", - "name": "myRunCommand_1", - "location": "eastus2", - "type": "Microsoft.HybridCompute/machines/runcommands", - "properties": { - "source": { - "script": "Write-Host Hello World!" - }, - "parameters": [ - { - "name": "param1", - "value": "value1" - }, - { - "name": "param2", - "value": "value2" - } - ], - "protectedParameters": [], - "asyncExecution": false, - "runAsUser": "user1", - "timeoutInSeconds": 3600, - "provisioningState": "Succeeded", - "instanceView": { - "name": "myRunCommand_1", - "status": { - "code": "success", - "level": "Info", - "displayStatus": "Provisioning succeeded", - "message": "Finished executing command, StdOut: , StdErr:", - "time": "2019-08-08T20:42:10.999Z" - } - } - } - }, - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand_2", - "name": "myRunCommand_2", - "location": "eastus2", - "type": "Microsoft.HybridCompute/machines/runcommands", - "properties": { - "source": { - "script": "Get-Process | Where-Object { $_.CPU -gt 10000 }" - }, - "parameters": [], - "protectedParameters": [], - "asyncExecution": false, - "runAsUser": "userA", - "timeoutInSeconds": 100, - "provisioningState": "Succeeded", - "instanceView": { - "name": "myRunCommand_2", - "status": { - "code": "success", - "level": "Info", - "displayStatus": "Provisioning succeeded", - "message": "Finished executing command, StdOut: , StdErr:", - "time": "2019-08-08T20:42:10.999Z" - } - } - } - } - ] - } - } - } -} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/NetworkProfile_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETNetworkProfile.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/NetworkProfile_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json deleted file mode 100644 index d4055e40ff3f..000000000000 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PutRunCommand.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "myResourceGroup", - "machineName": "myMachine", - "runCommandName": "myRunCommand", - "api-version": "2023-06-20-preview", - "runCommandProperties": { - "location": "eastus2", - "properties": { - "source": { - "script": "Write-Host Hello World!" - }, - "parameters": [ - { - "name": "param1", - "value": "value1" - }, - { - "name": "param2", - "value": "value2" - } - ], - "asyncExecution": false, - "runAsUser": "user1", - "runAsPassword": "", - "timeoutInSeconds": 3600, - "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", - "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", - "name": "myRunCommand", - "type": "Microsoft.HybridCompute/machines/runcommands", - "location": "eastus2", - "properties": { - "source": { - "script": "Write-Host Hello World!" - }, - "parameters": [ - { - "name": "param1", - "value": "value1" - }, - { - "name": "param2", - "value": "value2" - } - ], - "asyncExecution": false, - "runAsUser": "user1", - "timeoutInSeconds": 3600, - "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", - "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", - "provisioningState": "Succeeded" - } - } - }, - "201": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - }, - "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", - "name": "myRunCommand", - "type": "Microsoft.HybridCompute/machines/runcommands", - "location": "eastus2", - "properties": { - "source": { - "script": "Write-Host Hello World!" - }, - "parameters": [ - { - "name": "param1", - "value": "value1" - }, - { - "name": "param2", - "value": "value2" - } - ], - "asyncExecution": false, - "runAsUser": "user1", - "timeoutInSeconds": 3600, - "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", - "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", - "provisioningState": "Creating" - } - } - } - } -} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json deleted file mode 100644 index feba83e3240f..000000000000 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateRunCommand.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscriptionId}", - "resourceGroupName": "myResourceGroup", - "machineName": "myMachine", - "runCommandName": "myRunCommand", - "api-version": "2023-06-20-preview", - "runCommandProperties": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand", - "name": "myRunCommand", - "type": "Microsoft.HybridCompute/machines/runcommands", - "location": "eastus2", - "properties": { - "source": { - "script": "Write-Host Hello World!" - }, - "parameters": [ - { - "name": "param1", - "value": "value1" - }, - { - "name": "param2", - "value": "value2" - } - ], - "asyncExecution": false, - "runAsUser": "user1", - "timeoutInSeconds": 3600, - "outputBlobUri": "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", - "errorBlobUri": "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt?sp=racw&st=2022-10-07T19:40:21Z&se=2022-10-08T03:40:21Z&spr=https&sv=2021-06-08&sr=b&sig=Yh7B%2Fy83olbYBdfsfbUREvd7ol8Dq5EVP3lAO4Kj4xDcN8%3D", - "provisioningState": "Succeeded", - "instanceView": { - "name": "myRunCommand", - "status": { - "code": "success", - "level": "Info", - "displayStatus": "Provisioning succeeded", - "message": "Finished executing command, StdOut: , StdErr:", - "time": "2019-08-08T20:42:10.999Z" - } - } - } - } - }, - "202": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - } - } - } -} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/ExtensionMetadata_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_Get.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/ExtensionMetadata_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/ExtensionMetadata_List.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/ExtensionMetadata_List.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/ExtensionMetadata_List.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_CreateOrUpdate.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PUTExtension.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_CreateOrUpdate.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_Delete.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DELETEExtension.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_Delete.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/GETExtension.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_List.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/LISTExtension.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_List.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_Update.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/UpdateExtension.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extension_Update.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extensions_Upgrade.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Extensions_Upgrade.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/extension/Extensions_Upgrade.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json new file mode 100644 index 000000000000..bdf24efb094e --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "licenseProfileName": "default", + "api-version": "2023-06-20-preview", + "parameters": { + "location": "eastus2euap", + "properties": { + "esuProfile": { + "arcEsuEnrolled": "false" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/licenseProfiles/default", + "name": "default", + "type": "Microsoft.HybridCompute/machines/licenseProfiles", + "location": "eastus2euap", + "tags": null, + "properties": { + "esuProfile": { + "arcEsuEnrolled": "false", + "esuKeys": [ + { + "esuSku": "esuSkuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "esuSkuNumber2", + "licenseStatus": "licenseStatus2" + } + ], + "esuEnrollmentHistory": [ + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + }, + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + } + ] + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/licenseProfiles/default", + "name": "default", + "type": "Microsoft.HybridCompute/machines/licenseProfiles", + "location": "eastus2euap", + "properties": { + "esuProfile": { + "arcEsuEnrolled": "false", + "esuKeys": [ + { + "esuSku": "esuSkuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "esuSkuNumber2", + "licenseStatus": "licenseStatus2" + } + ], + "esuEnrollmentHistory": [ + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + }, + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + } + ] + } + } + } + }, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Delete.json similarity index 91% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Delete.json index d8f92935686e..e75960d556bc 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/DeleteRunCommand.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Delete.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", - "runCommandName": "myRunCommand", + "licenseProfileName": "default", "api-version": "2023-06-20-preview" }, "responses": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json new file mode 100644 index 000000000000..0df3c5b9eeb6 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "licenseProfileName": "default", + "api-version": "2023-06-20-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/licenseProfiles/default", + "name": "default", + "type": "Microsoft.HybridCompute/machines/licenseProfiles", + "location": "eastus2euap", + "tags": null, + "properties": { + "esuProfile": { + "arcEsuEnrolled": "true", + "esuKeys": [ + { + "esuSku": "esuSkuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "esuSkuNumber2", + "licenseStatus": "licenseStatus2" + } + ], + "esuEnrollmentHistory": [ + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + }, + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + } + ] + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json new file mode 100644 index 000000000000..cb40c5ddc09c --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "licenseProfileName": "default", + "api-version": "2023-06-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/licenseProfiles/default", + "name": "default", + "type": "Microsoft.HybridCompute/machines/licenseProfiles", + "location": "eastus2euap", + "tags": null, + "properties": { + "esuProfile": { + "arcEsuEnrolled": "true", + "esuKeys": [ + { + "esuSku": "esuSkuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "esuSkuNumber2", + "licenseStatus": "licenseStatus2" + } + ], + "esuEnrollmentHistory": [ + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + }, + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json new file mode 100644 index 000000000000..2c5c3f20a1a7 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "licenseProfileName": "default", + "api-version": "2023-06-20-preview", + "parameters": { + "properties": { + "esuProfile": { + "arcEsuEnrolled": "false" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/licenseProfiles/default", + "name": "default", + "type": "Microsoft.HybridCompute/machines/licenseProfiles", + "location": "eastus2euap", + "tags": null, + "properties": { + "esuProfile": { + "arcEsuEnrolled": "false", + "esuKeys": [ + { + "esuSku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ], + "esuEnrollmentHistory": [ + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + }, + { + "oldState": "oldState", + "newState": "newState", + "time": "2020-08-08T20:42:10.999Z" + } + ] + } + } + } + }, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machine_AssessPatches.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineAssessPatches.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machine_AssessPatches.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machine_InstallPatches.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/MachineInstallPatches.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machine_InstallPatches.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json similarity index 89% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index a1857596e78c..ed32d7937443 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -64,6 +64,18 @@ } } }, + "esuProperties": { + "esuKeys": [ + { + "esuSku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { "name": "Redmond", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Delete.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Delete.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Delete.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json similarity index 92% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index 5dd377dd3021..241f2e57f76e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -49,6 +49,18 @@ } } }, + "esuProperties": { + "esuKeys": [ + { + "esuSku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { "name": "Redmond", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListByResourceGroup.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListByResourceGroup.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListByResourceGroup.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListBySubscription.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_ListBySubscription.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListBySubscription.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json similarity index 89% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index 4ea2a570b4d8..a8adb518bc72 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -77,6 +77,18 @@ } } }, + "esuProperties": { + "esuKeys": [ + { + "esuSku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "esuSku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { "name": "Redmond" diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionDelete.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionGet.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionList.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateEndpointConnectionUpdate.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesCreate.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesDelete.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGet.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidation.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesGetValidationForMachine.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_List.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesList.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_List.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesListByResourceGroup.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Update.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdate.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_Update.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json similarity index 100% rename from specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/PrivateLinkScopesUpdateTagsOnly.json rename to specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json index 5d39236ae16b..e3b9dfa4ee75 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json @@ -65,7 +65,7 @@ }, "x-ms-examples": { "PrivateLinkScopesList.json": { - "$ref": "./examples/PrivateLinkScopesList.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_List.json" } }, "x-ms-pageable": { @@ -104,7 +104,7 @@ }, "x-ms-examples": { "PrivateLinkScopeListByResourceGroup": { - "$ref": "./examples/PrivateLinkScopesListByResourceGroup.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json" } }, "x-ms-pageable": { @@ -165,7 +165,7 @@ "x-ms-long-running-operation": true, "x-ms-examples": { "PrivateLinkScopesDelete": { - "$ref": "./examples/PrivateLinkScopesDelete.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_Delete.json" } } }, @@ -202,7 +202,7 @@ }, "x-ms-examples": { "PrivateLinkScopeGet": { - "$ref": "./examples/PrivateLinkScopesGet.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_Get.json" } } }, @@ -254,10 +254,10 @@ }, "x-ms-examples": { "PrivateLinkScopeCreate": { - "$ref": "./examples/PrivateLinkScopesCreate.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_Create.json" }, "PrivateLinkScopeUpdate": { - "$ref": "./examples/PrivateLinkScopesUpdate.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_Update.json" } } }, @@ -303,7 +303,7 @@ }, "x-ms-examples": { "PrivateLinkScopeUpdateTagsOnly": { - "$ref": "./examples/PrivateLinkScopesUpdateTagsOnly.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json" } } } @@ -348,7 +348,7 @@ }, "x-ms-examples": { "Gets private endpoint connection.": { - "$ref": "./examples/PrivateLinkScopePrivateLinkResourceListGet.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json" } } } @@ -393,7 +393,7 @@ }, "x-ms-examples": { "Gets private endpoint connection.": { - "$ref": "./examples/PrivateLinkScopePrivateLinkResourceGet.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json" } } } @@ -442,7 +442,7 @@ }, "x-ms-examples": { "Gets private endpoint connection.": { - "$ref": "./examples/PrivateEndpointConnectionGet.json" + "$ref": "./examples/privateEndpoint/PrivateEndpointConnection_Get.json" } } }, @@ -501,7 +501,7 @@ "x-ms-long-running-operation": true, "x-ms-examples": { "Approve or reject a private endpoint connection with a given name.": { - "$ref": "./examples/PrivateEndpointConnectionUpdate.json" + "$ref": "./examples/privateEndpoint/PrivateEndpointConnection_Update.json" } } }, @@ -567,7 +567,7 @@ "x-ms-long-running-operation": true, "x-ms-examples": { "Deletes a private endpoint connection with a given name.": { - "$ref": "./examples/PrivateEndpointConnectionDelete.json" + "$ref": "./examples/privateEndpoint/PrivateEndpointConnection_Delete.json" } } } @@ -612,7 +612,7 @@ }, "x-ms-examples": { "Gets list of private endpoint connections on a private link scope.": { - "$ref": "./examples/PrivateEndpointConnectionList.json" + "$ref": "./examples/privateEndpoint/PrivateEndpointConnection_List.json" } } } @@ -651,7 +651,7 @@ }, "x-ms-examples": { "PrivateLinkScopeGet": { - "$ref": "./examples/PrivateLinkScopesGetValidation.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_GetValidation.json" } } } @@ -690,7 +690,7 @@ }, "x-ms-examples": { "PrivateLinkScopeGet": { - "$ref": "./examples/PrivateLinkScopesGetValidationForMachine.json" + "$ref": "./examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json" } } } From ebb247e8f2613daf67a15cc55ad9d5c01015e2cd Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 12 Jul 2023 11:47:22 -0700 Subject: [PATCH 05/23] fixed lint errors --- .../2023-06-20-preview/HybridCompute.json | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index df67642b5236..91a829c56ceb 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -317,24 +317,6 @@ } } }, - "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -487,9 +469,6 @@ } ], "responses": { - "200": { - "description": "OK" - }, "202": { "description": "Accepted", "headers": { @@ -2188,7 +2167,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" }, "kind": { - "$ref": "#/definitions/ArcKindEnum " + "$ref": "#/definitions/ArcKindEnum" } }, "allOf": [ @@ -2450,7 +2429,6 @@ "type": "object", "properties": { "properties": { - "x-ms-client-flatten": true, "$ref": "#/definitions/MachineExtensionProperties", "description": "Describes Machine Extension Properties." } From 602a4ccae6c73db4e52c1fa0bac6973b0f99eb3f Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 12 Jul 2023 13:43:37 -0700 Subject: [PATCH 06/23] updated examples --- .../preview/2023-06-20-preview/HybridCompute.json | 2 +- .../licenseProfile/LicenseProfile_CreateOrUpdate.json | 11 ++++++----- .../licenseProfile/LicenseProfile_Delete.json | 1 - 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 91a829c56ceb..0c5267048ba1 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -2177,7 +2177,7 @@ ], "description": "Describes a hybrid machine." }, - "ArcKindEnum ": { + "ArcKindEnum": { "type": "string", "description": "Indicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc.", "enum": [ diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index bdf24efb094e..72db8b1d3f52 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -52,6 +52,11 @@ } }, "201": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + }, "body": { "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/licenseProfiles/default", "name": "default", @@ -87,11 +92,7 @@ } }, "202": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - } + } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Delete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Delete.json index e75960d556bc..5993531e67c5 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Delete.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Delete.json @@ -7,7 +7,6 @@ "api-version": "2023-06-20-preview" }, "responses": { - "200": {}, "202": { "headers": { "Location": "{callbackUrl}", From b67eadb09f9f135e82ab2211757f34441c205ebf Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 12 Jul 2023 14:16:19 -0700 Subject: [PATCH 07/23] removed extra space --- .../preview/2023-06-20-preview/HybridCompute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 0c5267048ba1..3e0a00d5ba13 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -2201,7 +2201,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Identity" }, "kind": { - "$ref": "#/definitions/ArcKindEnum " + "$ref": "#/definitions/ArcKindEnum" }, "properties": { "x-ms-client-flatten": true, From b6442e2fc5b2c5d4548ed625a18fff46f1674b76 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 12 Jul 2023 14:17:31 -0700 Subject: [PATCH 08/23] ran prettier --- .../licenseProfile/LicenseProfile_CreateOrUpdate.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index 72db8b1d3f52..ad39622c474e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -91,8 +91,6 @@ } } }, - "202": { - - } + "202": {} } } From 1e4f5d6e0763e7bc6c9934457c5c4d9239a2e669 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 12 Jul 2023 14:23:35 -0700 Subject: [PATCH 09/23] removed 202 from examples --- .../examples/licenseProfile/LicenseProfile_CreateOrUpdate.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index ad39622c474e..942be655bf2d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -90,7 +90,6 @@ } } } - }, - "202": {} + } } } From 781798857afe4c5d5ad9b506c2ff2cb3c77a0442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Kirby=20=F0=9F=8D=81?= Date: Mon, 17 Jul 2023 15:50:55 -0700 Subject: [PATCH 10/23] update esu properties for licenseProfile and machines, and updated examples --- .../2023-06-20-preview/HybridCompute.json | 43 +++++++++++++++---- .../LicenseProfile_CreateOrUpdate.json | 20 +++------ .../licenseProfile/LicenseProfile_Get.json | 10 ++--- .../licenseProfile/LicenseProfile_List.json | 10 ++--- .../licenseProfile/LicenseProfile_Update.json | 10 ++--- .../machine/Machines_CreateOrUpdate.json | 2 + .../examples/machine/Machines_Get.json | 2 + .../examples/machine/Machines_Update.json | 2 + 8 files changed, 55 insertions(+), 44 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 3e0a00d5ba13..f7f384fad91f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -2321,10 +2321,10 @@ "ArcEnabledEsuStatus": { "type": "string", "enum": [ - "enrolled", - "unenrolled", - "ineligible", - "unknown" + "Enrolled", + "NotEnrolled", + "Ineligible", + "Unknown" ], "x-ms-enum": { "name": "ArcEnabledEsuStatus", @@ -2332,16 +2332,28 @@ }, "description": "The ESU enrollment state." }, + "EsuKeyState": { + "type": "string", + "enum": [ + "NotActive", + "Active" + ], + "x-ms-enum": { + "name": "EsuKeyState", + "modelAsString": true + }, + "description": "The ESU key state." + }, "EsuEnrollmentUpdateRecord": { "type": "object", "properties": { - "oldState": { + "arcEsuEnrollmentState": { "$ref": "#/definitions/ArcEnabledEsuStatus", - "description": "The old ESU enrollment state." + "description": "The Arc ESU enrollment state." }, - "newState": { - "$ref": "#/definitions/ArcEnabledEsuStatus", - "description": "The new ESU enrollment state." + "esuKeyState": { + "$ref": "#/definitions/EsuKeyState", + "description": "The ESU Key state." }, "time": { "type": "string", @@ -2356,6 +2368,11 @@ "arcEsuEnrolled": { "$ref": "#/definitions/ArcEsuEnrolled" }, + "esuKeyActive": { + "readOnly": true, + "type": "boolean", + "description": "Indicates whether there is an ESU Key currently active for the machine." + }, "esuKeys": { "readOnly": true, "type": "array", @@ -2402,6 +2419,14 @@ "readOnly": true, "type": "object", "properties": { + "arcEsuEnrollmentState": { + "$ref": "#/definitions/ArcEnabledEsuStatus", + "description": "The Arc ESU enrollment state." + }, + "esuKeyActive": { + "type": "boolean", + "description": "Indicates whether there is an ESU Key currently active for the machine." + }, "esuKeys": { "type": "array", "items": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index 942be655bf2d..e1e82ede8d1b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -25,6 +25,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", + "esuKeyActive": false, "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -37,13 +38,8 @@ ], "esuEnrollmentHistory": [ { - "oldState": "oldState", - "newState": "newState", - "time": "2020-08-08T20:42:10.999Z" - }, - { - "oldState": "oldState", - "newState": "newState", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "time": "2020-08-08T20:42:10.999Z" } ] @@ -65,6 +61,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", + "esuKeyActive": false, "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -77,13 +74,8 @@ ], "esuEnrollmentHistory": [ { - "oldState": "oldState", - "newState": "newState", - "time": "2020-08-08T20:42:10.999Z" - }, - { - "oldState": "oldState", - "newState": "newState", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json index 0df3c5b9eeb6..12063621a94a 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json @@ -17,6 +17,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "true", + "esuKeyActive": false, "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -29,13 +30,8 @@ ], "esuEnrollmentHistory": [ { - "oldState": "oldState", - "newState": "newState", - "time": "2020-08-08T20:42:10.999Z" - }, - { - "oldState": "oldState", - "newState": "newState", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json index cb40c5ddc09c..4dd8d549fb9e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json @@ -19,6 +19,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "true", + "esuKeyActive": false, "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -31,13 +32,8 @@ ], "esuEnrollmentHistory": [ { - "oldState": "oldState", - "newState": "newState", - "time": "2020-08-08T20:42:10.999Z" - }, - { - "oldState": "oldState", - "newState": "newState", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json index 2c5c3f20a1a7..7bdf296c4a97 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -24,6 +24,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", + "esuKeyActive": false, "esuKeys": [ { "esuSku": "skuNumber1", @@ -36,13 +37,8 @@ ], "esuEnrollmentHistory": [ { - "oldState": "oldState", - "newState": "newState", - "time": "2020-08-08T20:42:10.999Z" - }, - { - "oldState": "oldState", - "newState": "newState", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index ed32d7937443..c8abb83c7e59 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -65,6 +65,8 @@ } }, "esuProperties": { + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "esuKeys": [ { "esuSku": "skuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index 241f2e57f76e..fc40c321faf3 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -50,6 +50,8 @@ } }, "esuProperties": { + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "esuKeys": [ { "esuSku": "skuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index a8adb518bc72..eb54cec11750 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -78,6 +78,8 @@ } }, "esuProperties": { + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "NotActive", "esuKeys": [ { "esuSku": "skuNumber1", From b6f87f3c2009f82940b06782de2b0dbd215a0f8f Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 19 Jul 2023 10:29:39 -0700 Subject: [PATCH 11/23] fixed warnings --- .../preview/2023-06-20-preview/HybridCompute.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 3e0a00d5ba13..4c6daa45215b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -1104,7 +1104,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "GET all Machine Extensions": { + "GET all Machine Extensions - List": { "$ref": "./examples/extension/Extension_List.json" } } @@ -2240,6 +2240,7 @@ "type": "object", "properties": { "properties": { + "x-ms-client-flatten": true, "type": "object", "properties": { "esuProfile": { @@ -2267,6 +2268,7 @@ "type": "object", "properties": { "properties": { + "x-ms-client-flatten": true, "type": "object", "properties": { "esuProfile": { @@ -2316,7 +2318,8 @@ "type": "string", "description": "The current status of the license profile key." } - } + }, + "description":"ESU key" }, "ArcEnabledEsuStatus": { "type": "string", @@ -2348,7 +2351,8 @@ "format": "date-time", "description": "The time that the state has been changed." } - } + }, + "description": "ESU enrollment record." }, "EsuProfileProperties": { "type": "object", From bdeafe4368c08eac2084a3e7cab30ca87d8f4d3c Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 19 Jul 2023 10:33:45 -0700 Subject: [PATCH 12/23] fixed warnings --- .../2023-06-20-preview/HybridCompute.json | 31 ++++++++++++++----- .../LicenseProfile_CreateOrUpdate.json | 4 +-- .../machine/Machines_CreateOrUpdate.json | 2 +- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index c26d574738c0..90b332b247a2 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -2319,7 +2319,7 @@ "description": "The current status of the license profile key." } }, - "description":"ESU key" + "description": "ESU key" }, "ArcEnabledEsuStatus": { "type": "string", @@ -2372,9 +2372,17 @@ "arcEsuEnrolled": { "$ref": "#/definitions/ArcEsuEnrolled" }, - "esuKeyActive": { - "readOnly": true, - "type": "boolean", + "esuKeyActive": { + "readOnly": true, + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "esuKeyActive", + "modelAsString": true + }, "description": "Indicates whether there is an ESU Key currently active for the machine." }, "esuKeys": { @@ -2427,8 +2435,16 @@ "$ref": "#/definitions/ArcEnabledEsuStatus", "description": "The Arc ESU enrollment state." }, - "esuKeyActive": { - "type": "boolean", + "esuKeyActive": { + "type": "string", + "enum": [ + "true", + "false" + ], + "x-ms-enum": { + "name": "esuKeyActiveInMachineEsuProperties", + "modelAsString": true + }, "description": "Indicates whether there is an ESU Key currently active for the machine." }, "esuKeys": { @@ -2439,7 +2455,8 @@ "description": "The list of ESU keys.", "x-ms-identifiers": [] } - } + }, + "description": "Properties for the Machine ESU profile." }, "ResourceUpdate": { "type": "object", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index e1e82ede8d1b..e9feed08ee7b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -25,7 +25,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", - "esuKeyActive": false, + "esuKeyActive": false, "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -61,7 +61,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", - "esuKeyActive": false, + "esuKeyActive": false, "esuKeys": [ { "esuSku": "esuSkuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index c8abb83c7e59..96c8ff6a9d07 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -66,7 +66,7 @@ }, "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyState": "NotActive", "esuKeys": [ { "esuSku": "skuNumber1", From e33b2a246cb0efa5b3d7dc254669a15c715e3778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Kirby=20=F0=9F=8D=81?= Date: Wed, 19 Jul 2023 10:40:47 -0700 Subject: [PATCH 13/23] add property in esuProperties for server type --- .../preview/2023-06-20-preview/HybridCompute.json | 12 ++++++++++++ .../examples/machine/Machines_CreateOrUpdate.json | 1 + .../examples/machine/Machines_Get.json | 1 + .../examples/machine/Machines_Update.json | 1 + 4 files changed, 15 insertions(+) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 90b332b247a2..9eb2af9ba3b8 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -2447,6 +2447,18 @@ }, "description": "Indicates whether there is an ESU Key currently active for the machine." }, + "serverType": { + "type": "string", + "enum": [ + "Standard", + "Datacenter" + ], + "x-ms-enum": { + "name": "arcServerType", + "modelAsString": true + }, + "description": "Indicates whether server is a Standard or Datacenter Sku." + }, "esuKeys": { "type": "array", "items": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index 96c8ff6a9d07..af6f82b8e50f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -67,6 +67,7 @@ "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", "esuKeyState": "NotActive", + "serverType": "Standard", "esuKeys": [ { "esuSku": "skuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index fc40c321faf3..c51e3d5fec01 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -52,6 +52,7 @@ "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", "esuKeyState": "NotActive", + "serverType": "Standard", "esuKeys": [ { "esuSku": "skuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index eb54cec11750..2bff359cd48d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -80,6 +80,7 @@ "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", "esuKeyState": "NotActive", + "serverType": "Standard", "esuKeys": [ { "esuSku": "skuNumber1", From a1762152e9bb01edbe4a275098ab81c742ea3608 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 19 Jul 2023 12:58:41 -0700 Subject: [PATCH 14/23] updated example type from bool to enum --- .../licenseProfile/LicenseProfile_CreateOrUpdate.json | 4 ++-- .../examples/licenseProfile/LicenseProfile_List.json | 2 +- .../examples/licenseProfile/LicenseProfile_Update.json | 2 +- .../examples/machine/Machines_CreateOrUpdate.json | 2 +- .../2023-06-20-preview/examples/machine/Machines_Get.json | 2 +- .../2023-06-20-preview/examples/machine/Machines_Update.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index e9feed08ee7b..c009bc26b51f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -25,7 +25,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", - "esuKeyActive": false, + "esuKeyActive": "false", "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -61,7 +61,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", - "esuKeyActive": false, + "esuKeyActive": "false", "esuKeys": [ { "esuSku": "esuSkuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json index 4dd8d549fb9e..6bde29416cc6 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json @@ -19,7 +19,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "true", - "esuKeyActive": false, + "esuKeyActive": "false", "esuKeys": [ { "esuSku": "esuSkuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json index 7bdf296c4a97..69e1faa09c40 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -24,7 +24,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "false", - "esuKeyActive": false, + "esuKeyActive": "false", "esuKeys": [ { "esuSku": "skuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index af6f82b8e50f..7b7dd5824fc6 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -67,7 +67,7 @@ "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", "esuKeyState": "NotActive", - "serverType": "Standard", + "serverType": "Standard", "esuKeys": [ { "esuSku": "skuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index c51e3d5fec01..797588106d48 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -52,7 +52,7 @@ "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", "esuKeyState": "NotActive", - "serverType": "Standard", + "serverType": "Standard", "esuKeys": [ { "esuSku": "skuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index 2bff359cd48d..0ab429e12f28 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -80,7 +80,7 @@ "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", "esuKeyState": "NotActive", - "serverType": "Standard", + "serverType": "Standard", "esuKeys": [ { "esuSku": "skuNumber1", From e96a25a37ecafaec9d4179171c27eadaf9040144 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 19 Jul 2023 14:46:31 -0700 Subject: [PATCH 15/23] fixed machine examples --- .../examples/licenseProfile/LicenseProfile_Get.json | 2 +- .../examples/machine/Machines_CreateOrUpdate.json | 2 +- .../2023-06-20-preview/examples/machine/Machines_Get.json | 2 +- .../2023-06-20-preview/examples/machine/Machines_Update.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json index 12063621a94a..891fc71ccb57 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json @@ -17,7 +17,7 @@ "properties": { "esuProfile": { "arcEsuEnrolled": "true", - "esuKeyActive": false, + "esuKeyActive": "false", "esuKeys": [ { "esuSku": "esuSkuNumber1", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index 7b7dd5824fc6..8260e3ec9d8c 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -66,7 +66,7 @@ }, "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyActive": "false", "serverType": "Standard", "esuKeys": [ { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index 797588106d48..808dc65fe693 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -51,7 +51,7 @@ }, "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyActive": "false", "serverType": "Standard", "esuKeys": [ { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index 0ab429e12f28..07fd59d7878b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -79,7 +79,7 @@ }, "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyActive": "false", "serverType": "Standard", "esuKeys": [ { From c56415daffbabb4933c13bba65ed57b4ffc1c7dd Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Wed, 26 Jul 2023 14:58:50 -0700 Subject: [PATCH 16/23] addressed code reviews --- .../2023-06-20-preview/HybridCompute.json | 61 +++++++------------ .../LicenseProfile_CreateOrUpdate.json | 14 ++--- .../licenseProfile/LicenseProfile_Get.json | 6 +- .../licenseProfile/LicenseProfile_List.json | 6 +- .../licenseProfile/LicenseProfile_Update.json | 8 +-- .../machine/Machines_CreateOrUpdate.json | 2 +- .../examples/machine/Machines_Get.json | 2 +- .../examples/machine/Machines_Update.json | 2 +- 8 files changed, 43 insertions(+), 58 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 9eb2af9ba3b8..2d7b4f4b01a2 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -2251,6 +2251,20 @@ "provisioningState": { "readOnly": true, "type": "string", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Accepted", + "Canceled", + "Deleted" + ], + "x-ms-enum": { + "name": "LicenseProfileProvisioningState", + "modelAsString": true + }, "description": "The provisioning state, which only appears in the response." } }, @@ -2338,7 +2352,7 @@ "EsuKeyState": { "type": "string", "enum": [ - "NotActive", + "Inactive", "Active" ], "x-ms-enum": { @@ -2369,20 +2383,11 @@ "EsuProfileProperties": { "type": "object", "properties": { - "arcEsuEnrolled": { - "$ref": "#/definitions/ArcEsuEnrolled" + "arcEsuEnrollmentState": { + "$ref": "#/definitions/ArcEnabledEsuStatus" }, - "esuKeyActive": { - "readOnly": true, - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "esuKeyActive", - "modelAsString": true - }, + "esuKeyState": { + "$ref": "#/definitions/EsuKeyState", "description": "Indicates whether there is an ESU Key currently active for the machine." }, "esuKeys": { @@ -2406,23 +2411,11 @@ }, "description": "Describes the properties of a License Profile." }, - "ArcEsuEnrolled": { - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "ArcEsuEnrolled", - "modelAsString": true - }, - "description": "Specifies wether the machine has enrolled in ESU or not." - }, "EsuProfileUpdateProperties": { "type": "object", "properties": { - "arcEsuEnrolled": { - "$ref": "#/definitions/ArcEsuEnrolled" + "arcEsuEnrollmentState": { + "$ref": "#/definitions/ArcEnabledEsuStatus" } }, "description": "Describes the Update properties of a License Profile." @@ -2435,16 +2428,8 @@ "$ref": "#/definitions/ArcEnabledEsuStatus", "description": "The Arc ESU enrollment state." }, - "esuKeyActive": { - "type": "string", - "enum": [ - "true", - "false" - ], - "x-ms-enum": { - "name": "esuKeyActiveInMachineEsuProperties", - "modelAsString": true - }, + "esuKeyState": { + "$ref": "#/definitions/EsuKeyState", "description": "Indicates whether there is an ESU Key currently active for the machine." }, "serverType": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index c009bc26b51f..72a1577a87ee 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -9,7 +9,7 @@ "location": "eastus2euap", "properties": { "esuProfile": { - "arcEsuEnrolled": "false" + "arcEsuEnrollmentState": "NotEnrolled" } } } @@ -24,8 +24,8 @@ "tags": null, "properties": { "esuProfile": { - "arcEsuEnrolled": "false", - "esuKeyActive": "false", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "Inactive", "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -39,7 +39,7 @@ "esuEnrollmentHistory": [ { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyState": "Inactive", "time": "2020-08-08T20:42:10.999Z" } ] @@ -60,8 +60,8 @@ "location": "eastus2euap", "properties": { "esuProfile": { - "arcEsuEnrolled": "false", - "esuKeyActive": "false", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "Inactive", "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -75,7 +75,7 @@ "esuEnrollmentHistory": [ { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyState": "Inactive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json index 891fc71ccb57..51039be86009 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json @@ -16,8 +16,8 @@ "tags": null, "properties": { "esuProfile": { - "arcEsuEnrolled": "true", - "esuKeyActive": "false", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "Inactive", "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -31,7 +31,7 @@ "esuEnrollmentHistory": [ { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyState": "Inactive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json index 6bde29416cc6..5f9c9a78afe4 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json @@ -18,8 +18,8 @@ "tags": null, "properties": { "esuProfile": { - "arcEsuEnrolled": "true", - "esuKeyActive": "false", + "arcEsuEnrollmentState": "Enrolled", + "esuKeyState": "Inactive", "esuKeys": [ { "esuSku": "esuSkuNumber1", @@ -33,7 +33,7 @@ "esuEnrollmentHistory": [ { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyState": "Inactive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json index 69e1faa09c40..e6b963531543 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -8,7 +8,7 @@ "parameters": { "properties": { "esuProfile": { - "arcEsuEnrolled": "false" + "arcEsuEnrollmentState": "NotEnrolled" } } } @@ -23,8 +23,8 @@ "tags": null, "properties": { "esuProfile": { - "arcEsuEnrolled": "false", - "esuKeyActive": "false", + "arcEsuEnrollmentState": "NotEnrolled", + "esuKeyState": "Inactive", "esuKeys": [ { "esuSku": "skuNumber1", @@ -38,7 +38,7 @@ "esuEnrollmentHistory": [ { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "NotActive", + "esuKeyState": "Inactive", "time": "2020-08-08T20:42:10.999Z" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index 8260e3ec9d8c..3e501a619c10 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -66,7 +66,7 @@ }, "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyActive": "false", + "esuKeyState": "Inactive", "serverType": "Standard", "esuKeys": [ { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index 808dc65fe693..194d1ff3a97d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -51,7 +51,7 @@ }, "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyActive": "false", + "esuKeyState": "Inactive", "serverType": "Standard", "esuKeys": [ { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index 07fd59d7878b..808830b3f906 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -79,7 +79,7 @@ }, "esuProperties": { "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyActive": "false", + "esuKeyState": "Inactive", "serverType": "Standard", "esuKeys": [ { From 80868259ce287c241b69ebf4630aeb1d175cfd7d Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Thu, 31 Aug 2023 14:30:38 -0700 Subject: [PATCH 17/23] squash new api changes --- .../2023-06-20-preview/HybridCompute.json | 818 ++++++++++++++++-- .../license/License_CreateOrUpdate.json | 69 ++ .../examples/license/License_Delete.json | 18 + .../examples/license/License_Get.json | 31 + .../license/License_ListByResourceGroup.json | 35 + .../license/License_ListBySubscription.json | 34 + .../examples/license/License_Update.json | 49 ++ .../license/License_ValidateLicense.json | 69 ++ .../LicenseProfile_CreateOrUpdate.json | 34 +- .../licenseProfile/LicenseProfile_Get.json | 16 +- .../licenseProfile/LicenseProfile_List.json | 16 +- .../licenseProfile/LicenseProfile_Update.json | 19 +- .../machine/Machines_CreateOrUpdate.json | 23 +- .../examples/machine/Machines_Get.json | 23 +- .../examples/machine/Machines_Update.json | 23 +- 15 files changed, 1115 insertions(+), 162 deletions(-) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 2d7b4f4b01a2..f8cdd62536ed 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -34,6 +34,394 @@ } }, "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/validateLicense": { + "post": { + "tags": [ + "licenses" + ], + "operationId": "Licenses_ValidateLicense", + "description": "The operation to validate a license.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/License" + }, + "description": "Parameters supplied to the license validation operation." + } + ], + "responses": { + "200": { + "description": "Updated Resource", + "schema": { + "$ref": "#/definitions/License" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/License" + }, + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Validate a License": { + "$ref": "./examples/license/License_ValidateLicense.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses/{licenseName}": { + "put": { + "tags": [ + "licenses" + ], + "operationId": "Licenses_CreateOrUpdate", + "description": "The operation to create or update a license.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/licenseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/License" + }, + "description": "Parameters supplied to the Create license operation." + } + ], + "responses": { + "200": { + "description": "Updated Resource", + "schema": { + "$ref": "#/definitions/License" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/License" + }, + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or Update a License": { + "$ref": "./examples/license/License_CreateOrUpdate.json" + } + } + }, + "patch": { + "tags": [ + "licenses" + ], + "operationId": "Licenses_Update", + "description": "The operation to update a license.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/licenseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LicenseUpdate" + }, + "description": "Parameters supplied to the Update license operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/License" + } + }, + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a License": { + "$ref": "./examples/license/License_Update.json" + } + } + }, + "get": { + "tags": [ + "licenses" + ], + "operationId": "Licenses_Get", + "description": "Retrieves information about the view of a license.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/licenseNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/License" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get License": { + "$ref": "./examples/license/License_Get.json" + } + } + }, + "delete": { + "tags": [ + "licenses" + ], + "operationId": "Licenses_Delete", + "description": "The operation to delete a license.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/licenseNameParameter" + } + ], + "responses": { + "202": { + "description": "Accepted", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + }, + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int32" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + } + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a License": { + "$ref": "./examples/license/License_Delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/licenses": { + "get": { + "tags": [ + "licenses" + ], + "operationId": "licenses_ListByResourceGroup", + "description": "The operation to get all licenses of a non-Azure machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LicensesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET all Machine Extensions": { + "$ref": "./examples/license/License_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/licenses": { + "get": { + "tags": [ + "licenses" + ], + "operationId": "licenses_ListBySubscription", + "description": "The operation to get all licenses of a non-Azure machine", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LicensesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Licenses by Subscription": { + "$ref": "./examples/license/License_ListBySubscription.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}": { "put": { "tags": [ @@ -61,6 +449,13 @@ "maxLength": 54, "description": "The name of the hybrid machine." }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." + }, { "name": "parameters", "in": "body", @@ -551,7 +946,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "GET all Machine Extensions": { + "List all License Profiles": { "$ref": "./examples/licenseProfile/LicenseProfile_List.json" } } @@ -708,6 +1103,13 @@ }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." } ], "responses": { @@ -1984,8 +2386,8 @@ "$ref": "#/definitions/OSProfile", "description": "Specifies the operating system settings for the hybrid machine." }, - "esuProperties": { - "$ref": "#/definitions/MachineEsuProperties", + "licenseProfile": { + "$ref": "#/definitions/LicenseProfileMachineInstanceView", "description": "Specifies the ESU related properties for a machine." }, "provisioningState": { @@ -2236,6 +2638,225 @@ ], "description": "The List hybrid machine operation response." }, + "ProvisioningState": { + "readOnly": true, + "type": "string", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Accepted", + "Canceled", + "Deleted" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "description": "The provisioning state, which only appears in the response." + }, + "License": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LicenseProperties", + "description": "Hybrid Compute License properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "description": "Describes a license in a hybrid machine." + }, + "LicenseProperties": { + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state, which only appears in the response." + }, + "tenantId": { + "type": "string", + "description": "TODO" + }, + "licenseType": { + "$ref": "#/definitions/LicenseType", + "description": "The type of the license resource." + }, + "licenseDetails": { + "$ref": "#/definitions/LicenseDetails", + "description": "Describes the properties of a License." + } + }, + "description": "Describes the properties of a License Profile." + }, + "LicenseUpdate": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/LicenseUpdateProperties", + "description": "License Update properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ResourceUpdate" + } + ], + "description": "Describes a License Update." + }, + "LicenseUpdateProperties": { + "type": "object", + "properties": { + "licenseType": { + "$ref": "#/definitions/LicenseType", + "description": "The type of the license resource." + }, + "licenseDetails": { + "x-ms-client-flatten": true, + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/LicenseState" + }, + "target": { + "$ref": "#/definitions/LicenseTarget" + }, + "edition": { + "$ref": "#/definitions/LicenseEdition" + }, + "type": { + "$ref": "#/definitions/LicenseCoreType" + }, + "processors": { + "type": "integer", + "format": "int32", + "description": "TODO" + } + } + } + }, + "description": "Describes the Update properties of a License Profile." + }, + "LicenseDetails": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/LicenseState" + }, + "target": { + "$ref": "#/definitions/LicenseTarget" + }, + "edition": { + "$ref": "#/definitions/LicenseEdition" + }, + "type": { + "$ref": "#/definitions/LicenseCoreType" + }, + "processors": { + "type": "integer", + "format": "int32", + "description": "TODO" + }, + "assignedLicenses": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "TODO" + }, + "immutableId": { + "readOnly": true, + "type": "string", + "description": "TODO" + } + }, + "description": "Describes the properties of a License." + }, + "LicenseType": { + "type": "string", + "enum": [ + "ESU" + ], + "x-ms-enum": { + "name": "LicenseType", + "modelAsString": true + }, + "description": "The type of the license resource." + }, + "LicenseState": { + "type": "string", + "enum": [ + "Activated", + "Deactivated" + ], + "x-ms-enum": { + "name": "LicenseState", + "modelAsString": true + }, + "description": "TODO" + }, + "LicenseEdition": { + "type": "string", + "enum": [ + "Standard", + "Datacenter" + ], + "x-ms-enum": { + "name": "LicenseEdition", + "modelAsString": true + }, + "description": "TODO" + }, + "LicenseTarget": { + "type": "string", + "enum": [ + "Windows Server 2012", + "Windows Server 2012 R2" + ], + "x-ms-enum": { + "name": "LicenseTarget", + "modelAsString": true + }, + "description": "TODO" + }, + "LicenseCoreType": { + "type": "string", + "enum": [ + "pCore", + "vCore" + ], + "x-ms-enum": { + "name": "LicenseCoreType", + "modelAsString": true + }, + "description": "TODO" + }, + "LicensesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/License" + }, + "description": "The list of licenses." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next page of license profile." + } + }, + "required": [ + "value" + ], + "description": "The List license operation response." + }, "LicenseProfile": { "type": "object", "properties": { @@ -2245,26 +2866,11 @@ "properties": { "esuProfile": { "x-ms-client-flatten": true, - "$ref": "#/definitions/EsuProfileProperties", + "$ref": "#/definitions/LicenseProfileArmEsuProperties", "description": "Hybrid Compute ESU Profile properties" }, "provisioningState": { - "readOnly": true, - "type": "string", - "enum": [ - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Failed", - "Accepted", - "Canceled", - "Deleted" - ], - "x-ms-enum": { - "name": "LicenseProfileProvisioningState", - "modelAsString": true - }, + "$ref": "#/definitions/ProvisioningState", "description": "The provisioning state, which only appears in the response." } }, @@ -2319,12 +2925,37 @@ "required": [ "value" ], - "description": "The List hybrid machine operation response." + "description": "The List hybrid machine license profile operation response." + }, + "EsuServerType": { + "type": "string", + "enum": [ + "Standard", + "Datacenter" + ], + "x-ms-enum": { + "name": "EsuServerType", + "modelAsString": true + }, + "description": "The server types for Esu." + }, + "EsuEligibility": { + "type": "string", + "enum": [ + "Eligible", + "Ineligible", + "Unknown" + ], + "x-ms-enum": { + "name": "EsuEligibility", + "modelAsString": true + }, + "description": "The ESU eligibility." }, "EsuKey": { "type": "object", "properties": { - "esuSku": { + "sku": { "type": "string", "description": "SKU number." }, @@ -2335,20 +2966,6 @@ }, "description": "ESU key" }, - "ArcEnabledEsuStatus": { - "type": "string", - "enum": [ - "Enrolled", - "NotEnrolled", - "Ineligible", - "Unknown" - ], - "x-ms-enum": { - "name": "ArcEnabledEsuStatus", - "modelAsString": true - }, - "description": "The ESU enrollment state." - }, "EsuKeyState": { "type": "string", "enum": [ @@ -2361,34 +2978,13 @@ }, "description": "The ESU key state." }, - "EsuEnrollmentUpdateRecord": { + "LicenseProfileStorageModelEsuProperties": { "type": "object", "properties": { - "arcEsuEnrollmentState": { - "$ref": "#/definitions/ArcEnabledEsuStatus", - "description": "The Arc ESU enrollment state." - }, - "esuKeyState": { - "$ref": "#/definitions/EsuKeyState", - "description": "The ESU Key state." - }, - "time": { + "assignedLicenseImmutableId": { + "readOnly": true, "type": "string", - "format": "date-time", - "description": "The time that the state has been changed." - } - }, - "description": "ESU enrollment record." - }, - "EsuProfileProperties": { - "type": "object", - "properties": { - "arcEsuEnrollmentState": { - "$ref": "#/definitions/ArcEnabledEsuStatus" - }, - "esuKeyState": { - "$ref": "#/definitions/EsuKeyState", - "description": "Indicates whether there is an ESU Key currently active for the machine." + "description": "The guid id of the license." }, "esuKeys": { "readOnly": true, @@ -2398,61 +2994,86 @@ }, "description": "The list of ESU keys.", "x-ms-identifiers": [] - }, - "esuEnrollmentHistory": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/EsuEnrollmentUpdateRecord" - }, - "description": "The time records represent the state change of ESU enrollment.", - "x-ms-identifiers": [] } }, - "description": "Describes the properties of a License Profile." + "description": "License profile storage model for ESU properties." }, - "EsuProfileUpdateProperties": { + "LicenseProfileArmEsuProperties": { "type": "object", "properties": { - "arcEsuEnrollmentState": { - "$ref": "#/definitions/ArcEnabledEsuStatus" + "assignedLicense": { + "type": "string", + "description": "The resource id of the license." } }, - "description": "Describes the Update properties of a License Profile." + "allOf": [ + { + "$ref": "#/definitions/LicenseProfileArmEsuPropertiesWithoutAssignedLicense" + } + ], + "description": "Describes the properties of a License Profile ARM model." }, - "MachineEsuProperties": { - "readOnly": true, + "LicenseProfileArmEsuPropertiesWithoutAssignedLicense": { "type": "object", "properties": { - "arcEsuEnrollmentState": { - "$ref": "#/definitions/ArcEnabledEsuStatus", - "description": "The Arc ESU enrollment state." + "serverType": { + "readOnly": true, + "$ref": "#/definitions/EsuServerType", + "description": "The type of the Esu servers." + }, + "esuEligibility": { + "readOnly": true, + "$ref": "#/definitions/EsuEligibility", + "description": "Indicates the eligibility state of Esu." }, "esuKeyState": { + "readOnly": true, "$ref": "#/definitions/EsuKeyState", "description": "Indicates whether there is an ESU Key currently active for the machine." + } + }, + "allOf": [ + { + "$ref": "#/definitions/LicenseProfileStorageModelEsuProperties" + } + ], + "description": "Describes the properties of a License Profile ARM model." + }, + "EsuProfileUpdateProperties": { + "type": "object", + "properties": { + "assignedLicense": { + "type": "string", + "description": "The resource id of the license." + } + }, + "description": "Describes the Update properties of a License Profile." + }, + "LicenseProfileMachineInstanceView": { + "type": "object", + "properties": { + "assignedLicense": { + "$ref": "#/definitions/LicenseProperties", + "description": "The assigned license resource." }, - "serverType": { + "licenseAssignmentState": { "type": "string", + "description": "TODO", "enum": [ - "Standard", - "Datacenter" + "Assigned", + "NotAssigned" ], "x-ms-enum": { - "name": "arcServerType", + "name": "licenseAssignmentState", "modelAsString": true - }, - "description": "Indicates whether server is a Standard or Datacenter Sku." - }, - "esuKeys": { - "type": "array", - "items": { - "$ref": "#/definitions/EsuKey" - }, - "description": "The list of ESU keys.", - "x-ms-identifiers": [] + } } }, + "allOf": [ + { + "$ref": "#/definitions/LicenseProfileArmEsuPropertiesWithoutAssignedLicense" + } + ], "description": "Properties for the Machine ESU profile." }, "ResourceUpdate": { @@ -3298,6 +3919,15 @@ "name": "LicenseProfileName", "modelAsString": false } + }, + "licenseNameParameter": { + "name": "licenseName", + "in": "path", + "required": true, + "type": "string", + "pattern": "[a-zA-Z0-9-_\\.]+", + "description": "The name of the license.", + "x-ms-parameter-location": "method" } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json new file mode 100644 index 000000000000..a9a30e061517 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "licenseName": "{licenseName}", + "api-version": "2023-06-20-preview", + "parameters": { + "location": "eastus2euap", + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "immutableId": "" + } + } + } + }, + "201": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + }, + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json new file mode 100644 index 000000000000..51a142aff02a --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "licenseName": "{licenseName}", + "api-version": "2023-06-20-preview" + }, + "responses": { + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + }, + "204": {} + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json new file mode 100644 index 000000000000..ae50ea0815f3 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "licenseName": "{licenseName}", + "api-version": "2023-06-20-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json new file mode 100644 index 000000000000..f7905528ca1f --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "licenseName": "{licenseName}", + "api-version": "2023-06-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + } + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json new file mode 100644 index 000000000000..684e6e468b87 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "licenseName": "{licenseName}", + "api-version": "2023-06-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + } + } + ] + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json new file mode 100644 index 000000000000..3f3cb887e040 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "licenseName": "{licenseName}", + "api-version": "2023-06-20-preview", + "parameters": { + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + } + } + }, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json new file mode 100644 index 000000000000..a9a30e061517 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "licenseName": "{licenseName}", + "api-version": "2023-06-20-preview", + "parameters": { + "location": "eastus2euap", + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "immutableId": "" + } + } + } + }, + "201": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + }, + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + } + } + } + } +} diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index 72a1577a87ee..6763ffc0658f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -9,7 +9,7 @@ "location": "eastus2euap", "properties": { "esuProfile": { - "arcEsuEnrollmentState": "NotEnrolled" + "assignedLicense": "{LicenseResourceId}" } } } @@ -24,24 +24,20 @@ "tags": null, "properties": { "esuProfile": { - "arcEsuEnrollmentState": "NotEnrolled", + "assignedLicense": "{LicenseResourceId}", + "assignedLicenseImmutableId": "{Guid}", + "esuEligibility": "Eligible", + "serverType": "Standard", "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "esuSkuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "esuSkuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } - ], - "esuEnrollmentHistory": [ - { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", - "time": "2020-08-08T20:42:10.999Z" - } ] } } @@ -60,24 +56,20 @@ "location": "eastus2euap", "properties": { "esuProfile": { - "arcEsuEnrollmentState": "NotEnrolled", + "assignedLicense": "{LicenseResourceId}", + "assignedLicenseImmutableId": "{Guid}", + "esuEligibility": "Eligible", + "serverType": "Standard", "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "esuSkuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "esuSkuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } - ], - "esuEnrollmentHistory": [ - { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", - "time": "2020-08-08T20:42:10.999Z" - } ] } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json index 51039be86009..a060fa1cf370 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json @@ -16,24 +16,20 @@ "tags": null, "properties": { "esuProfile": { - "arcEsuEnrollmentState": "NotEnrolled", + "assignedLicense": "{LicenseResourceId}", + "assignedLicenseImmutableId": "{Guid}", + "esuEligibility": "Eligible", + "serverType": "Standard", "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "esuSkuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "esuSkuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } - ], - "esuEnrollmentHistory": [ - { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", - "time": "2020-08-08T20:42:10.999Z" - } ] } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json index 5f9c9a78afe4..957dfbde83aa 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json @@ -18,24 +18,20 @@ "tags": null, "properties": { "esuProfile": { - "arcEsuEnrollmentState": "Enrolled", + "assignedLicense": "{LicenseResourceId}", + "assignedLicenseImmutableId": "{Guid}", + "esuEligibility": "Eligible", + "serverType": "Standard", "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "esuSkuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "esuSkuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } - ], - "esuEnrollmentHistory": [ - { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", - "time": "2020-08-08T20:42:10.999Z" - } ] } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json index e6b963531543..8768a5e55139 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -8,7 +8,7 @@ "parameters": { "properties": { "esuProfile": { - "arcEsuEnrollmentState": "NotEnrolled" + "assignedLicense": "{LicenseResourceId}" } } } @@ -20,27 +20,22 @@ "name": "default", "type": "Microsoft.HybridCompute/machines/licenseProfiles", "location": "eastus2euap", - "tags": null, "properties": { "esuProfile": { - "arcEsuEnrollmentState": "NotEnrolled", + "assignedLicense": "{LicenseResourceId}", + "assignedLicenseImmutableId": "{Guid}", + "esuEligibility": "Eligible", + "serverType": "Standard", "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "skuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "skuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } - ], - "esuEnrollmentHistory": [ - { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", - "time": "2020-08-08T20:42:10.999Z" - } ] } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index 3e501a619c10..1bef2d0ec6c8 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -64,17 +64,30 @@ } } }, - "esuProperties": { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", + "licenseProfile": { + "assignedLicense": { + "tenantId": "{tenandId}", + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + }, + "esuEligibility": "Ineligible", "serverType": "Standard", + "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "skuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "skuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index 194d1ff3a97d..11dd9a64511d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -49,17 +49,30 @@ } } }, - "esuProperties": { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", + "licenseProfile": { + "assignedLicense": { + "tenantId": "{tenandId}", + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + }, + "esuEligibility": "Ineligible", "serverType": "Standard", + "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "skuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "skuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } ] diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index 808830b3f906..4adee318760a 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -77,17 +77,30 @@ } } }, - "esuProperties": { - "arcEsuEnrollmentState": "NotEnrolled", - "esuKeyState": "Inactive", + "licenseProfile": { + "assignedLicense": { + "tenantId": "{tenandId}", + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + }, + "esuEligibility": "Ineligible", "serverType": "Standard", + "esuKeyState": "Inactive", "esuKeys": [ { - "esuSku": "skuNumber1", + "sku": "skuNumber1", "licenseStatus": "licenseStatus1" }, { - "esuSku": "skuNumber2", + "sku": "skuNumber2", "licenseStatus": "licenseStatus2" } ] From 437c73c889736b816256961b178e62d70093afc1 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Tue, 5 Sep 2023 09:11:01 -0700 Subject: [PATCH 18/23] filled in some TODO descriptions --- .../2023-06-20-preview/HybridCompute.json | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index f8cdd62536ed..f25e353d30e9 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -449,13 +449,6 @@ "maxLength": 54, "description": "The name of the hybrid machine." }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "description": "Expands referenced resources." - }, { "name": "parameters", "in": "body", @@ -464,6 +457,13 @@ "$ref": "#/definitions/Machine" }, "description": "Parameters supplied to the Create hybrid machine operation." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Expands referenced resources." } ], "responses": { @@ -2682,7 +2682,7 @@ }, "tenantId": { "type": "string", - "description": "TODO" + "description": "Describes the tenant id." }, "licenseType": { "$ref": "#/definitions/LicenseType", @@ -2737,7 +2737,7 @@ "processors": { "type": "integer", "format": "int32", - "description": "TODO" + "description": "Describes the number of processors." } } } @@ -2762,18 +2762,18 @@ "processors": { "type": "integer", "format": "int32", - "description": "TODO" + "description": "Describes the number of processors." }, "assignedLicenses": { "readOnly": true, "type": "integer", "format": "int32", - "description": "TODO" + "description": "Describes the number of assigned licenses." }, "immutableId": { "readOnly": true, "type": "string", - "description": "TODO" + "description": "Describes the immutable id." } }, "description": "Describes the properties of a License." @@ -2799,7 +2799,7 @@ "name": "LicenseState", "modelAsString": true }, - "description": "TODO" + "description": "Describes the state of the license." }, "LicenseEdition": { "type": "string", @@ -2811,7 +2811,7 @@ "name": "LicenseEdition", "modelAsString": true }, - "description": "TODO" + "description": "Describes the edition of the license. The values are either Standard or Datacenter." }, "LicenseTarget": { "type": "string", @@ -2823,7 +2823,7 @@ "name": "LicenseTarget", "modelAsString": true }, - "description": "TODO" + "description": "Describes the license target server." }, "LicenseCoreType": { "type": "string", @@ -2835,7 +2835,7 @@ "name": "LicenseCoreType", "modelAsString": true }, - "description": "TODO" + "description": "Describes the license core type (pCore or vCore)." }, "LicensesListResult": { "type": "object", @@ -3058,11 +3058,11 @@ }, "licenseAssignmentState": { "type": "string", - "description": "TODO", "enum": [ "Assigned", "NotAssigned" ], + "description": "Describes the license assignment state (Assigned or NotAssigned).", "x-ms-enum": { "name": "licenseAssignmentState", "modelAsString": true From 5603370eb47bd3417d060f72f54ec9bb48edd475 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Thu, 7 Sep 2023 15:16:01 -0700 Subject: [PATCH 19/23] fixed validate license path & updated responses --- .../2023-06-20-preview/HybridCompute.json | 85 ++----------------- .../license/License_CreateOrUpdate.json | 26 ------ .../examples/license/License_Delete.json | 8 +- .../license/License_ValidateLicense.json | 29 +------ .../licenseProfile/LicenseProfile_Update.json | 7 -- 5 files changed, 7 insertions(+), 148 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index f25e353d30e9..4f2cafc5a59e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/validateLicense": { + "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/validateLicense": { "post": { "tags": [ "licenses" @@ -68,27 +68,6 @@ "$ref": "#/definitions/License" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/License" - }, - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -141,27 +120,6 @@ "$ref": "#/definitions/License" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/License" - }, - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -212,24 +170,6 @@ "$ref": "#/definitions/License" } }, - "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -304,25 +244,10 @@ "$ref": "#/parameters/licenseNameParameter" } ], - "responses": { - "202": { - "description": "Accepted", - "headers": { - "Location": { - "description": "The URL of the resource used to check the status of the asynchronous operation.", - "type": "string" - }, - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int32" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - } - }, + "responses": { + "200": { + "description": "OK" + }, "204": { "description": "No Content" }, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json index a9a30e061517..6711060bd5f6 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json @@ -38,32 +38,6 @@ } } } - }, - "201": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - }, - "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", - "name": "{licenseName}", - "type": "Microsoft.HybridCompute/licenses", - "location": "eastus2euap", - "tags": null, - "properties": { - "licenseType": "ESU", - "licenseDetails": { - "state": "Activated", - "target": "Windows Server 2012", - "edition": "Datacenter", - "type": "pCore", - "processors": 6, - "assignedLicenses": 8, - "immutableId": "" - } - } - } } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json index 51a142aff02a..f825ad2b78e0 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Delete.json @@ -6,13 +6,7 @@ "api-version": "2023-06-20-preview" }, "responses": { - "202": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - } - }, + "200": {}, "204": {} } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json index a9a30e061517..922e17a9f1cc 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json @@ -1,7 +1,6 @@ { "parameters": { "subscriptionId": "{subscriptionId}", - "resourceGroupName": "myResourceGroup", "licenseName": "{licenseName}", "api-version": "2023-06-20-preview", "parameters": { @@ -21,7 +20,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "id": "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/Licenses/{licenseName}", "name": "{licenseName}", "type": "Microsoft.HybridCompute/licenses", "location": "eastus2euap", @@ -38,32 +37,6 @@ } } } - }, - "201": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - }, - "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", - "name": "{licenseName}", - "type": "Microsoft.HybridCompute/licenses", - "location": "eastus2euap", - "tags": null, - "properties": { - "licenseType": "ESU", - "licenseDetails": { - "state": "Activated", - "target": "Windows Server 2012", - "edition": "Datacenter", - "type": "pCore", - "processors": 6, - "assignedLicenses": 8, - "immutableId": "" - } - } - } } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json index 8768a5e55139..33e432c94b85 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -40,13 +40,6 @@ } } } - }, - "202": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - } } } } From c303a5fa3a325d96705f4bb70002ce3c833bddd2 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Thu, 7 Sep 2023 15:35:57 -0700 Subject: [PATCH 20/23] fixed model validation --- .../preview/2023-06-20-preview/HybridCompute.json | 9 +++------ .../examples/license/License_Update.json | 7 ------- .../examples/licenseProfile/LicenseProfile_Update.json | 7 +++++++ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 4f2cafc5a59e..2be001a45c61 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -48,9 +48,6 @@ { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" - }, { "name": "parameters", "in": "body", @@ -244,10 +241,10 @@ "$ref": "#/parameters/licenseNameParameter" } ], - "responses": { + "responses": { "200": { - "description": "OK" - }, + "description": "OK" + }, "204": { "description": "No Content" }, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json index 3f3cb887e040..f34e168f9c7b 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json @@ -37,13 +37,6 @@ } } } - }, - "202": { - "headers": { - "Location": "{callbackUrl}", - "Retry-After": 200, - "Azure-AsyncOperation": "{callbackUri}" - } } } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json index 33e432c94b85..8768a5e55139 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -40,6 +40,13 @@ } } } + }, + "202": { + "headers": { + "Location": "{callbackUrl}", + "Retry-After": 200, + "Azure-AsyncOperation": "{callbackUri}" + } } } } From f35cf08078a5040d16ecdcede3d45f34194047d0 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Thu, 7 Sep 2023 23:07:16 -0700 Subject: [PATCH 21/23] addressed code reviews --- .../2023-06-20-preview/HybridCompute.json | 36 ++-- .../license/License_CreateOrUpdate.json | 1 + .../examples/license/License_Get.json | 1 + .../license/License_ListByResourceGroup.json | 1 + .../license/License_ListBySubscription.json | 1 + .../examples/license/License_Update.json | 1 + .../license/License_ValidateLicense.json | 1 + .../examples/machine/Machines_Get.json | 29 +--- ...chines_Get_LicenseProfileInstanceView.json | 163 ++++++++++++++++++ 9 files changed, 194 insertions(+), 40 deletions(-) create mode 100644 specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 2be001a45c61..349c66a82318 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -569,6 +569,9 @@ "x-ms-examples": { "Get Machine": { "$ref": "./examples/machine/Machines_Get.json" + }, + "Get Machine with License Profile Instance View": { + "$ref": "./examples/machine/Machines_Get_LicenseProfileInstanceView.json" } } } @@ -2974,20 +2977,25 @@ "LicenseProfileMachineInstanceView": { "type": "object", "properties": { - "assignedLicense": { - "$ref": "#/definitions/LicenseProperties", - "description": "The assigned license resource." - }, - "licenseAssignmentState": { - "type": "string", - "enum": [ - "Assigned", - "NotAssigned" - ], - "description": "Describes the license assignment state (Assigned or NotAssigned).", - "x-ms-enum": { - "name": "licenseAssignmentState", - "modelAsString": true + "esuProfile": { + "type": "object", + "properties": { + "assignedLicense": { + "$ref": "#/definitions/License", + "description": "The assigned license resource." + }, + "licenseAssignmentState": { + "type": "string", + "enum": [ + "Assigned", + "NotAssigned" + ], + "description": "Describes the license assignment state (Assigned or NotAssigned).", + "x-ms-enum": { + "name": "licenseAssignmentState", + "modelAsString": true + } + } } } }, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json index 6711060bd5f6..015689253f34 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json @@ -27,6 +27,7 @@ "location": "eastus2euap", "tags": null, "properties": { + "tenantId": "{tenandId}", "licenseType": "ESU", "licenseDetails": { "state": "Activated", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json index ae50ea0815f3..6ae810a6986c 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Get.json @@ -14,6 +14,7 @@ "location": "eastus2euap", "tags": null, "properties": { + "tenantId": "{tenandId}", "licenseType": "ESU", "licenseDetails": { "state": "Activated", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json index f7905528ca1f..d2cd25480961 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListByResourceGroup.json @@ -16,6 +16,7 @@ "location": "eastus2euap", "tags": null, "properties": { + "tenantId": "{tenandId}", "licenseType": "ESU", "licenseDetails": { "state": "Activated", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json index 684e6e468b87..77bc45bdd38f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ListBySubscription.json @@ -15,6 +15,7 @@ "location": "eastus2euap", "tags": null, "properties": { + "tenantId": "{tenandId}", "licenseType": "ESU", "licenseDetails": { "state": "Activated", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json index f34e168f9c7b..cacc94b63148 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_Update.json @@ -25,6 +25,7 @@ "type": "Microsoft.HybridCompute/licenses", "location": "eastus2euap", "properties": { + "tenantId": "{tenandId}", "licenseType": "ESU", "licenseDetails": { "state": "Activated", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json index 922e17a9f1cc..ce26653e5b9f 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json @@ -26,6 +26,7 @@ "location": "eastus2euap", "tags": null, "properties": { + "tenantId": "{tenandId}", "licenseType": "ESU", "licenseDetails": { "state": "Activated", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index 11dd9a64511d..016c23ab4a5e 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -50,32 +50,9 @@ } }, "licenseProfile": { - "assignedLicense": { - "tenantId": "{tenandId}", - "licenseType": "ESU", - "licenseDetails": { - "state": "Activated", - "target": "Windows Server 2012", - "edition": "Datacenter", - "type": "pCore", - "processors": 6, - "assignedLicenses": 8, - "immutableId": "" - } - }, - "esuEligibility": "Ineligible", - "serverType": "Standard", - "esuKeyState": "Inactive", - "esuKeys": [ - { - "sku": "skuNumber1", - "licenseStatus": "licenseStatus1" - }, - { - "sku": "skuNumber2", - "licenseStatus": "licenseStatus2" - } - ] + "esuProfile": { + "licenseAssignmentState": "Assigned" + } }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json new file mode 100644 index 000000000000..1fc24e64ea65 --- /dev/null +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json @@ -0,0 +1,163 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "resourceGroupName": "myResourceGroup", + "machineName": "myMachine", + "api-version": "2023-06-20-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/machines/myMachine", + "name": "myMachine", + "location": "eastus2euap", + "tags": null, + "identity": { + "type": "SystemAssigned", + "principalId": "string", + "tenantId": "string" + }, + "type": "Microsoft.HybridCompute/machines", + "kind": null, + "properties": { + "provisioningState": "Succeeded", + "agentVersion": null, + "status": null, + "lastStatusChange": null, + "errorDetails": null, + "displayName": null, + "machineFqdn": null, + "vmUuid": null, + "osSku": null, + "domainName": null, + "adFqdn": null, + "dnsFqdn": null, + "osVersion": null, + "osType": null, + "osProfile": { + "computerName": null, + "windowsConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + }, + "linuxConfiguration": { + "patchSettings": { + "assessmentMode": null, + "patchMode": null + } + } + }, + "licenseProfile": { + "esuProfile": { + "assignedLicense": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Licenses/{licenseName}", + "name": "{licenseName}", + "type": "Microsoft.HybridCompute/licenses", + "location": "eastus2euap", + "tags": null, + "properties": { + "tenantId": "{tenandId}", + "licenseType": "ESU", + "licenseDetails": { + "state": "Activated", + "target": "Windows Server 2012", + "edition": "Datacenter", + "type": "pCore", + "processors": 6, + "assignedLicenses": 8, + "immutableId": "" + } + } + }, + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + } + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "locationData": { + "name": "Redmond", + "city": "redmond", + "district": null, + "countryOrRegion": "usa" + }, + "clientPublicKey": "string", + "parentClusterResourceId": "{AzureStackHCIResourceId}", + "mssqlDiscovered": "false", + "detectedProperties": { + "cloudprovider": "N/A", + "manufacturer": "Microsoft Corporation", + "model": "Virtual Machine" + }, + "agentConfiguration": { + "proxyUrl": "https://test.test", + "incomingConnectionsPorts": [ + "22", + "23" + ], + "extensionsAllowList": null, + "extensionsBlockList": null, + "proxyBypass": [ + "proxy1", + "proxy2" + ], + "extensionsEnabled": "true", + "guestConfigurationEnabled": "true", + "configMode": "full" + }, + "serviceStatuses": { + "extensionService": { + "status": "Running", + "startupType": "Automatic" + }, + "guestConfigurationService": { + "status": "Running", + "startupType": "Automatic" + } + }, + "privateLinkScopeResourceId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName", + "networkProfile": { + "networkInterfaces": [ + { + "ipAddresses": [ + { + "address": "192.168.12.345", + "ipAddressVersion": "IPv4", + "subnet": { + "addressPrefix": "192.168.12.0/24" + } + } + ] + }, + { + "ipAddresses": [ + { + "address": "1001:0:34aa:5000:1234:aaaa:bbbb:cccc", + "ipAddressVersion": "IPv6", + "subnet": { + "addressPrefix": "1001:0:34aa:5000::/64" + } + } + ] + } + ] + } + }, + "resources": [] + } + } + } +} From ac204f754bde0b768f04b416bcde272a1e6a9af9 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Thu, 7 Sep 2023 23:28:38 -0700 Subject: [PATCH 22/23] fixed model validation --- .../2023-06-20-preview/HybridCompute.json | 40 ++++++++++--------- .../machine/Machines_CreateOrUpdate.json | 29 ++------------ ...chines_Get_LicenseProfileInstanceView.json | 1 + .../examples/machine/Machines_Update.json | 29 ++------------ 4 files changed, 29 insertions(+), 70 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json index 349c66a82318..3a785f5369d9 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json @@ -2978,24 +2978,28 @@ "type": "object", "properties": { "esuProfile": { - "type": "object", - "properties": { - "assignedLicense": { - "$ref": "#/definitions/License", - "description": "The assigned license resource." - }, - "licenseAssignmentState": { - "type": "string", - "enum": [ - "Assigned", - "NotAssigned" - ], - "description": "Describes the license assignment state (Assigned or NotAssigned).", - "x-ms-enum": { - "name": "licenseAssignmentState", - "modelAsString": true - } - } + "$ref": "#/definitions/LicenseProfileMachineInstanceViewEsuProperties" + } + }, + "description": "License Profile Instance View in Machine Properties." + }, + "LicenseProfileMachineInstanceViewEsuProperties": { + "type": "object", + "properties": { + "assignedLicense": { + "$ref": "#/definitions/License", + "description": "The assigned license resource." + }, + "licenseAssignmentState": { + "type": "string", + "enum": [ + "Assigned", + "NotAssigned" + ], + "description": "Describes the license assignment state (Assigned or NotAssigned).", + "x-ms-enum": { + "name": "licenseAssignmentState", + "modelAsString": true } } }, diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index 1bef2d0ec6c8..5b9addecab04 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -65,32 +65,9 @@ } }, "licenseProfile": { - "assignedLicense": { - "tenantId": "{tenandId}", - "licenseType": "ESU", - "licenseDetails": { - "state": "Activated", - "target": "Windows Server 2012", - "edition": "Datacenter", - "type": "pCore", - "processors": 6, - "assignedLicenses": 8, - "immutableId": "" - } - }, - "esuEligibility": "Ineligible", - "serverType": "Standard", - "esuKeyState": "Inactive", - "esuKeys": [ - { - "sku": "skuNumber1", - "licenseStatus": "licenseStatus1" - }, - { - "sku": "skuNumber2", - "licenseStatus": "licenseStatus2" - } - ] + "esuProfile": { + "licenseAssignmentState": "Assigned" + } }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json index 1fc24e64ea65..817a93062f71 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json @@ -3,6 +3,7 @@ "subscriptionId": "{subscriptionId}", "resourceGroupName": "myResourceGroup", "machineName": "myMachine", + "$expand": "instanceView", "api-version": "2023-06-20-preview" }, "responses": { diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index 4adee318760a..62bf3c3c3668 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -78,32 +78,9 @@ } }, "licenseProfile": { - "assignedLicense": { - "tenantId": "{tenandId}", - "licenseType": "ESU", - "licenseDetails": { - "state": "Activated", - "target": "Windows Server 2012", - "edition": "Datacenter", - "type": "pCore", - "processors": 6, - "assignedLicenses": 8, - "immutableId": "" - } - }, - "esuEligibility": "Ineligible", - "serverType": "Standard", - "esuKeyState": "Inactive", - "esuKeys": [ - { - "sku": "skuNumber1", - "licenseStatus": "licenseStatus1" - }, - { - "sku": "skuNumber2", - "licenseStatus": "licenseStatus2" - } - ] + "esuProfile": { + "licenseAssignmentState": "Assigned" + } }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { From 6b1bf7b8256162e232cac4df7b29ca3d48215a01 Mon Sep 17 00:00:00 2001 From: dorothyhu Date: Fri, 8 Sep 2023 14:08:21 -0700 Subject: [PATCH 23/23] fixed examples --- .../license/License_CreateOrUpdate.json | 1 + .../license/License_ValidateLicense.json | 1 + .../LicenseProfile_CreateOrUpdate.json | 1 - .../licenseProfile/LicenseProfile_Get.json | 1 - .../licenseProfile/LicenseProfile_List.json | 1 - .../licenseProfile/LicenseProfile_Update.json | 1 - .../machine/Machines_CreateOrUpdate.json | 15 +++++++- .../examples/machine/Machines_Get.json | 15 +++++++- .../machine/Machines_ListByResourceGroup.json | 36 +++++++++++++++++++ .../machine/Machines_ListBySubscription.json | 36 +++++++++++++++++++ .../examples/machine/Machines_Update.json | 15 +++++++- 11 files changed, 116 insertions(+), 7 deletions(-) diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json index 015689253f34..165ecb827f5d 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_CreateOrUpdate.json @@ -35,6 +35,7 @@ "edition": "Datacenter", "type": "pCore", "processors": 6, + "assignedLicenses": 2, "immutableId": "" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json index ce26653e5b9f..e4547c384aa0 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/license/License_ValidateLicense.json @@ -34,6 +34,7 @@ "edition": "Datacenter", "type": "pCore", "processors": 6, + "assignedLicenses": 2, "immutableId": "" } } diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json index 6763ffc0658f..e47f2728d7ac 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json @@ -57,7 +57,6 @@ "properties": { "esuProfile": { "assignedLicense": "{LicenseResourceId}", - "assignedLicenseImmutableId": "{Guid}", "esuEligibility": "Eligible", "serverType": "Standard", "esuKeyState": "Inactive", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json index a060fa1cf370..c3fe6c01d497 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Get.json @@ -17,7 +17,6 @@ "properties": { "esuProfile": { "assignedLicense": "{LicenseResourceId}", - "assignedLicenseImmutableId": "{Guid}", "esuEligibility": "Eligible", "serverType": "Standard", "esuKeyState": "Inactive", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json index 957dfbde83aa..dd955a79a219 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_List.json @@ -19,7 +19,6 @@ "properties": { "esuProfile": { "assignedLicense": "{LicenseResourceId}", - "assignedLicenseImmutableId": "{Guid}", "esuEligibility": "Eligible", "serverType": "Standard", "esuKeyState": "Inactive", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json index 8768a5e55139..5a770698801c 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/licenseProfile/LicenseProfile_Update.json @@ -23,7 +23,6 @@ "properties": { "esuProfile": { "assignedLicense": "{LicenseResourceId}", - "assignedLicenseImmutableId": "{Guid}", "esuEligibility": "Eligible", "serverType": "Standard", "esuKeyState": "Inactive", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json index 5b9addecab04..558a5f9ab402 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_CreateOrUpdate.json @@ -66,7 +66,20 @@ }, "licenseProfile": { "esuProfile": { - "licenseAssignmentState": "Assigned" + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] } }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json index 016c23ab4a5e..175b92b90539 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Get.json @@ -51,7 +51,20 @@ }, "licenseProfile": { "esuProfile": { - "licenseAssignmentState": "Assigned" + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] } }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListByResourceGroup.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListByResourceGroup.json index c1a4f0a8da55..01e7ec416ba0 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListByResourceGroup.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListByResourceGroup.json @@ -50,6 +50,24 @@ } } }, + "licenseProfile": { + "esuProfile": { + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + } + }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { "name": "Redmond" @@ -118,6 +136,24 @@ } } }, + "licenseProfile": { + "esuProfile": { + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + } + }, "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { "name": "Redmond" diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListBySubscription.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListBySubscription.json index 5d707108f716..f52e4afdc9ff 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListBySubscription.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_ListBySubscription.json @@ -49,6 +49,24 @@ } } }, + "licenseProfile": { + "esuProfile": { + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + } + }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { "name": "Redmond" @@ -117,6 +135,24 @@ } } }, + "licenseProfile": { + "esuProfile": { + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] + } + }, "vmId": "a4a098cc-b0b8-46e8-a205-62f301a62a8f", "locationData": { "name": "Redmond" diff --git a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json index 62bf3c3c3668..5a8043201bd9 100644 --- a/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json +++ b/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2023-06-20-preview/examples/machine/Machines_Update.json @@ -79,7 +79,20 @@ }, "licenseProfile": { "esuProfile": { - "licenseAssignmentState": "Assigned" + "licenseAssignmentState": "Assigned", + "esuEligibility": "Ineligible", + "serverType": "Standard", + "esuKeyState": "Inactive", + "esuKeys": [ + { + "sku": "skuNumber1", + "licenseStatus": "licenseStatus1" + }, + { + "sku": "skuNumber2", + "licenseStatus": "licenseStatus2" + } + ] } }, "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f",