From 684f056e1905a2cfe0b560304fd4f2137103dd2d Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Thu, 17 Apr 2025 13:39:24 +0800 Subject: [PATCH 1/2] The first version of TSP --- .../AzureBareMetalInstance.tsp | 99 +++ .../AzureBareMetalStorageInstance.tsp | 80 +++ .../client.tsp | 23 + .../AzureBareMetalInstances_Create.json | 139 +++++ .../AzureBareMetalInstances_Delete.json | 14 + .../AzureBareMetalInstances_Get.json | 57 ++ ...areMetalInstances_ListByResourceGroup.json | 108 ++++ ...BareMetalInstances_ListBySubscription.json | 102 ++++ .../AzureBareMetalInstances_PatchTags.json | 65 ++ ...reBareMetalInstances_PatchTags_Delete.json | 61 ++ .../AzureBareMetalInstances_Restart.json | 33 + .../AzureBareMetalInstances_Shutdown.json | 30 + .../AzureBareMetalInstances_Start.json | 30 + .../AzureBareMetalOperations_List.json | 35 ++ ...AzureBareMetalStorageInstances_Create.json | 100 +++ ...AzureBareMetalStorageInstances_Delete.json | 14 + .../AzureBareMetalStorageInstances_Get.json | 51 ++ ...lStorageInstances_ListByResourceGroup.json | 91 +++ ...alStorageInstances_ListBySubscription.json | 90 +++ ...reBareMetalStorageInstances_PatchTags.json | 59 ++ ...etalStorageInstances_PatchTags_Delete.json | 57 ++ .../main.tsp | 45 ++ .../models.tsp | 577 ++++++++++++++++++ .../tspconfig.yaml | 14 + 24 files changed, 1974 insertions(+) create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/client.tsp create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Create.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Delete.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Get.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListByResourceGroup.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListBySubscription.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags_Delete.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Restart.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Shutdown.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Start.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalOperations_List.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Create.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Delete.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Get.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListByResourceGroup.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListBySubscription.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags_Delete.json create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/main.tsp create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/models.tsp create mode 100644 specification/baremetalinfrastructure/BareMetalInfrastructure.Management/tspconfig.yaml diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp new file mode 100644 index 000000000000..610e91619732 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp @@ -0,0 +1,99 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.BareMetalInfrastructure; +/** + * AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) + */ +model AzureBareMetalInstance + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = AzureBareMetalInstance, + KeyName = "azureBareMetalInstanceName", + SegmentName = "bareMetalInstances", + NamePattern = "^[a-zA-Z0-9]+$" + >; +} + +@armResourceOperations +interface AzureBareMetalInstances { + /** + * Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name. + */ + get is ArmResourceRead; + + /** + * Creates an Azure Bare Metal Instance for the specified subscription, resource group, and instance name. + */ + create is ArmResourceCreateOrReplaceSync; + + /** + * Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and instance name. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync; + + /** + * Deletes an Azure Bare Metal Instance for the specified subscription, resource group, and instance name. + */ + delete is ArmResourceDeleteSync; + + /** + * Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance. + */ + listByResourceGroup is ArmResourceListByParent; + + /** + * Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance. + */ + listBySubscription is ArmListBySubscription; + + /** + * The operation to start an Azure Bare Metal instance + */ + start is ArmResourceActionAsync< + AzureBareMetalInstance, + void, + ArmResponse + >; + + /** + * The operation to restart an Azure Bare Metal Instance + */ + restart is ArmResourceActionAsync< + AzureBareMetalInstance, + { + /** + * When set to 'active', this parameter empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server + */ + @bodyRoot + forceParameter?: ForceState; + }, + ArmResponse + >; + + /** + * The operation to shutdown an Azure Bare Metal Instance + */ + shutdown is ArmResourceActionAsync< + AzureBareMetalInstance, + void, + ArmResponse + >; +} + +@@doc(AzureBareMetalInstance.name, + "Name of the Azure Bare Metal Instance, also known as the ResourceName." +); +@@doc(AzureBareMetalInstance.properties, "AzureBareMetal instance properties"); +@@doc(AzureBareMetalInstances.update::parameters.properties, + "Request body that only contains the new Tags field" +); diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp new file mode 100644 index 000000000000..4fac35076d15 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp @@ -0,0 +1,80 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.BareMetalInfrastructure; +/** + * AzureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties) + */ +model AzureBareMetalStorageInstance + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = AzureBareMetalStorageInstance, + KeyName = "azureBareMetalStorageInstanceName", + SegmentName = "bareMetalStorageInstances", + NamePattern = ".*" + >; + + /** + * The identity of Azure Bare Metal Storage Instance, if configured. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + identity?: AzureBareMetalStorageInstanceIdentity; +} + +@armResourceOperations +interface AzureBareMetalStorageInstances { + /** + * Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name. + */ + get is ArmResourceRead; + + /** + * Creates an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name. + */ + create is ArmResourceCreateOrReplaceSync; + + /** + * Patches the Tags field of a Azure BareMetalStorage instance for the specified subscription, resource group, and instance name. + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchSync< + AzureBareMetalStorageInstance, + PatchModel = AzureBareMetalStorageInstanceBody + >; + + /** + * Deletes an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name. + */ + delete is ArmResourceDeleteSync; + + /** + * Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance. + */ + listByResourceGroup is ArmResourceListByParent; + + /** + * Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance. + */ + listBySubscription is ArmListBySubscription; +} + +@@doc(AzureBareMetalStorageInstance.name, + "Name of the Azure Bare Metal Storage Instance, also known as the ResourceName." +); +@@doc(AzureBareMetalStorageInstance.properties, + "AzureBareMetalStorageInstance properties" +); +@@doc(AzureBareMetalStorageInstances.create::parameters.resource, + "request body for put call" +); +@@doc(AzureBareMetalStorageInstances.update::parameters.properties, + "Request body that only contains the Tags and Identity Field" +); diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/client.tsp b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/client.tsp new file mode 100644 index 000000000000..2eb9cb16aa5c --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/client.tsp @@ -0,0 +1,23 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.BareMetalInfrastructure; + +@@clientName(AzureBareMetalInstances.create::parameters.resource, + "requestBodyParameters" +); +@@clientName(AzureBareMetalInstances.update::parameters.properties, + "tagsParameter" +); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(AzureBareMetalInstance.properties); + +@@clientName(AzureBareMetalStorageInstances.create::parameters.resource, + "requestBodyParameters" +); +@@clientName(AzureBareMetalStorageInstances.update::parameters.properties, + "azureBareMetalStorageInstanceBodyParameter" +); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(AzureBareMetalStorageInstance.properties); diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Create.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Create.json new file mode 100644 index 000000000000..6289409cb138 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Create.json @@ -0,0 +1,139 @@ +{ + "operationId": "AzureBareMetalInstances_Create", + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myBMIInstance", + "requestBodyParameters": { + "location": "westus", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 3", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", + "networkInterfaces": [ + { + "ipAddress": "100.100.100.100" + } + ] + }, + "osProfile": { + "computerName": "myComputerName", + "osType": "SUSE", + "sshPublicKey": "{ssh-rsa public key}", + "version": "12 SP1" + }, + "powerState": "started", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "tags": { + "testkey": "testvalue" + } + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "title": "AzureBareMetalInstances_Create", + "responses": { + "200": { + "body": { + "name": "myBMIInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myBMIInstance", + "location": "westus", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 3", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", + "networkInterfaces": [ + { + "ipAddress": "100.100.100.100" + } + ] + }, + "osProfile": { + "computerName": "myComputerName", + "osType": "SUSE", + "sshPublicKey": "{ssh-rsa public key}", + "version": "12 SP1" + }, + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "testkey": "testvalue" + } + } + }, + "201": { + "body": { + "name": "myBMIInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myBMIInstance", + "location": "westus", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 3", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", + "networkInterfaces": [ + { + "ipAddress": "100.100.100.100" + } + ] + }, + "osProfile": { + "computerName": "myComputerName", + "osType": "SUSE", + "sshPublicKey": "{ssh-rsa public key}", + "version": "12 SP1" + }, + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "testkey": "testvalue" + } + } + } + } +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Delete.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Delete.json new file mode 100644 index 000000000000..618667496689 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Delete.json @@ -0,0 +1,14 @@ +{ + "operationId": "AzureBareMetalInstances_Delete", + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myAzureBareMetalInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "title": "AzureBareMetalInstances_Delete", + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Get.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Get.json new file mode 100644 index 000000000000..67c42253df92 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Get.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myAzureBareMetalInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "name": "myAzureBareMetalInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance", + "location": "westus2", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 4.2", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId", + "networkInterfaces": [ + { + "ipAddress": "123.123.123.123" + } + ] + }, + "osProfile": { + "computerName": "myComputerName", + "osType": "SLES 12 SP2", + "version": "12 SP2" + }, + "powerState": "restarting", + "provisioningState": "Succeeded", + "storageProfile": { + "nfsIpAddress": "123.123.119.123" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + } + }, + "operationId": "AzureBareMetalInstances_Get", + "title": "Get an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListByResourceGroup.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListByResourceGroup.json new file mode 100644 index 000000000000..a991d1fd3b27 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListByResourceGroup.json @@ -0,0 +1,108 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myAzureBareMetalInstance1", + "type": "Microsoft.BareMetalInfrastructure/azureBareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myAzureBareMetalInstance1", + "location": "westus", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 3", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", + "networkInterfaces": [ + { + "ipAddress": "100.100.100.100" + } + ] + }, + "osProfile": { + "computerName": "myComputerName1", + "osType": "SUSE", + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" + }, + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + }, + { + "name": "myABMInstance2", + "type": "Microsoft.BareMetalInfrastructure/azureBareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myABMInstance2", + "location": "westus", + "properties": { + "azureBareMetalInstanceId": "589bce49-9fe6-4dc8-82df-cf6ae25e0cb9", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S384", + "hardwareType": "HPE" + }, + "hwRevision": "Rev 3", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", + "networkInterfaces": [ + { + "ipAddress": "100.100.100.101" + } + ] + }, + "osProfile": { + "computerName": "myComputerName2", + "osType": "SUSE", + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" + }, + "partnerNodeId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myAzureBareMetalInstance1", + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.201" + } + }, + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + ] + } + } + }, + "operationId": "AzureBareMetalInstances_ListByResourceGroup", + "title": "List all Azure Bare Metal Instances in a resource group" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListBySubscription.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListBySubscription.json new file mode 100644 index 000000000000..feda5d2c6dd9 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_ListBySubscription.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myAzureBareMetalInstance1", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/57d3422f-467a-448e-b798-ebf490849542/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance1", + "location": "westus2", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 4.2", + "networkProfile": { + "circuitId": "/subscriptions/57d3422f-467a-448e-b798-ebf490849542/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId", + "networkInterfaces": [ + { + "ipAddress": "123.123.123.123" + } + ] + }, + "osProfile": { + "computerName": "myComputerName", + "osType": "SLES 12 SP2", + "version": "12 SP2" + }, + "powerState": "restarting", + "provisioningState": "Succeeded", + "storageProfile": { + "nfsIpAddress": "123.123.119.123" + } + }, + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + }, + { + "name": "myAzureBareMetalInstance2", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance2", + "location": "westus2", + "properties": { + "azureBareMetalInstanceId": "589bce49-9fe6-4dc8-82df-cf6ae25e0cb9", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 4.2", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId", + "networkInterfaces": [ + { + "ipAddress": "123.123.123.123" + } + ] + }, + "osProfile": { + "computerName": "myComputerName2", + "osType": "SLES 12 SP2", + "version": "12 SP2" + }, + "powerState": "restarting", + "provisioningState": "Succeeded", + "storageProfile": { + "nfsIpAddress": "123.123.119.123" + } + }, + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + ] + } + } + }, + "operationId": "AzureBareMetalInstances_ListBySubscription", + "title": "List all Azure Bare Metal Instances in a subscription" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags.json new file mode 100644 index 000000000000..ca07f43c7404 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myABMInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", + "tagsParameter": { + "tags": { + "testkey": "testvalue" + } + } + }, + "responses": { + "200": { + "body": { + "name": "myABMInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance", + "location": "westus", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 3", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", + "networkInterfaces": [ + { + "ipAddress": "100.100.100.100" + } + ] + }, + "osProfile": { + "computerName": "myComputerName", + "osType": "SUSE", + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" + }, + "partnerNodeId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance2", + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "testkey": "testvalue" + } + } + } + }, + "operationId": "AzureBareMetalInstances_Update", + "title": "Update Tags field of an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags_Delete.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags_Delete.json new file mode 100644 index 000000000000..1dea0a81ff25 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_PatchTags_Delete.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myABMInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", + "tagsParameter": { + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "name": "myABMInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance", + "location": "westus", + "properties": { + "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", + "hardwareProfile": { + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" + }, + "hwRevision": "Rev 3", + "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", + "networkInterfaces": [ + { + "ipAddress": "100.100.100.100" + } + ] + }, + "osProfile": { + "computerName": "myComputerName", + "osType": "SUSE", + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" + }, + "partnerNodeId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance2", + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": {} + } + } + }, + "operationId": "AzureBareMetalInstances_Update", + "title": "Delete Tags field of an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Restart.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Restart.json new file mode 100644 index 000000000000..47b8a14fdba4 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Restart.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myABMInstance", + "forceState": { + "state": "active" + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-0000000000001", + "error": { + "code": "", + "message": "" + }, + "startTime": "2023-08-01T21:17:24.9052926Z", + "status": "InProgress" + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/provide/Mircorosft.BareMetalInfrastructure/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000001?api-version=2023-11-01-preview", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000" + } + } + }, + "operationId": "AzureBareMetalInstances_Restart", + "title": "Restart an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Shutdown.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Shutdown.json new file mode 100644 index 000000000000..c4684601f11c --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Shutdown.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myABMInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000001", + "error": { + "code": "", + "message": "" + }, + "startTime": "2023-08-01T21:17:24.9052926Z", + "status": "InProgress" + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/provide/Mircorosft.BareMetalInfrastructure/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000001?api-version=2023-11-01-preview", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000" + } + } + }, + "operationId": "AzureBareMetalInstances_Shutdown", + "title": "Shutdown an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Start.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Start.json new file mode 100644 index 000000000000..70ce1832dd44 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalInstances_Start.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalInstanceName": "myABMInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "00000000-0000-0000-0000-000000000001", + "error": { + "code": "", + "message": "" + }, + "startTime": "2023-08-01T21:17:24.9052926Z", + "status": "InProgress" + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/provide/Mircorosft.BareMetalInfrastructure/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000001?api-version=2023-11-01-preview", + "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", + "x-ms-request-id": "00000000-0000-0000-0000-000000000000" + } + } + }, + "operationId": "AzureBareMetalInstances_Start", + "title": "Start an Azure Bare Metal instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalOperations_List.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalOperations_List.json new file mode 100644 index 000000000000..caf0fb664b35 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalOperations_List.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "AzureBareMetalOp1", + "display": { + "description": "AzureBareMetalOp1Description", + "operation": "AzureBareMetalOp1OperationName", + "provider": "AzureBareMetalOp1ProviderName", + "resource": "AzureBareMetalOp1ResourceName" + }, + "isDataAction": false + }, + { + "name": "AzureBareMetalOp2", + "display": { + "description": "AzureBareMetalOp2Description", + "operation": "AzureBareMetalOp2OperationName", + "provider": "AzureBareMetalOp2ProviderName", + "resource": "AzureBareMetalOp2ResourceName" + }, + "isDataAction": true + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "List all management operations supported by the AzureBareMetal RP" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Create.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Create.json new file mode 100644 index 000000000000..bb126cf50ec4 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Create.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance", + "requestBodyParameters": { + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "tags": { + "key": "value" + } + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myAzureBareMetalStorageInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + }, + "201": { + "body": { + "name": "myAzureBareMetalStorageInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + } + }, + "operationId": "AzureBareMetalStorageInstances_Create", + "title": "Put a new AzureBareMetalStorageInstance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Delete.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Delete.json new file mode 100644 index 000000000000..90f368307a3a --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "AzureBareMetalStorageInstances_Delete", + "title": "Delete an AzureBareMetalStorageInstance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Get.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Get.json new file mode 100644 index 000000000000..6943e019707f --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_Get.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "name": "myAzureBareMetalStorageInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" + }, + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + } + }, + "operationId": "AzureBareMetalStorageInstances_Get", + "title": "Get an AzureBareMetalStorage instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListByResourceGroup.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListByResourceGroup.json new file mode 100644 index 000000000000..67b1391fe52b --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListByResourceGroup.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myAzureBareMetalStorageInstance1", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance1", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" + }, + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + }, + { + "name": "myAzureBareMetalStorageInstance2", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance2", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" + }, + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24f7", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "RI" + }, + "storageType": "NFS", + "workloadType": "Cogito" + } + }, + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + ] + } + } + }, + "operationId": "AzureBareMetalStorageInstances_ListByResourceGroup", + "title": "List all AzureBareMetalStorage instances in a resource group" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListBySubscription.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListBySubscription.json new file mode 100644 index 000000000000..24c56fdd7f2d --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_ListBySubscription.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myAzureBareMetalStorageInstance1", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance1", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" + }, + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + }, + { + "name": "myAzureBareMetalStorageInstance2", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance2", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" + }, + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24f7", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "RI" + }, + "storageType": "NFS", + "workloadType": "Cogito" + } + }, + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" + } + } + ] + } + } + }, + "operationId": "AzureBareMetalStorageInstances_ListBySubscription", + "title": "List all AzureBareMetalStorage instances in a subscription" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags.json new file mode 100644 index 000000000000..55a3346f09c8 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalStorageInstanceBodyParameter": { + "identity": { + "type": "SystemAssigned" + }, + "tags": { + "testkey": "testvalue" + } + }, + "azureBareMetalStorageInstanceName": "myABMSInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "name": "myAzureBareMetalStorageInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" + }, + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "testkey": "testvalue" + } + } + } + }, + "operationId": "AzureBareMetalStorageInstances_Update", + "title": "Update Tags field of an AzureBareMetalStorage instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags_Delete.json b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags_Delete.json new file mode 100644 index 000000000000..54c935adb9b6 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/examples/2024-08-01-preview/AzureBareMetalStorageInstances_PatchTags_Delete.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2024-08-01-preview", + "azureBareMetalStorageInstanceBodyParameter": { + "identity": { + "type": "SystemAssigned" + }, + "tags": { + "testkey": "testvalue" + } + }, + "azureBareMetalStorageInstanceName": "myABMSInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" + }, + "responses": { + "200": { + "body": { + "name": "myAzureBareMetalStorageInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" + }, + "location": "westus2", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", + "storageProperties": { + "generation": "Gen4", + "hardwareType": "NetApp", + "offeringType": "EPIC", + "provisioningState": "Succeeded", + "storageBillingProperties": { + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": {} + } + } + }, + "operationId": "AzureBareMetalStorageInstances_Update", + "title": "Delete Tags field of an AzureBareMetalStorage instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/main.tsp b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/main.tsp new file mode 100644 index 000000000000..4e5cd6048d38 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/main.tsp @@ -0,0 +1,45 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.10.14 + * Date: 2025-04-17T05:37:21.533Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./AzureBareMetalInstance.tsp"; +import "./AzureBareMetalStorageInstance.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * The Bare Metal Infrastructure Management client + */ +@armProviderNamespace +@service(#{ title: "bareMetalInfrastructureClient" }) +@versioned(Versions) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) +namespace Microsoft.BareMetalInfrastructure; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2024-08-01-preview API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2024_08_01_preview: "2024-08-01-preview", +} + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/models.tsp b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/models.tsp new file mode 100644 index 000000000000..c898a41450b5 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/models.tsp @@ -0,0 +1,577 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.BareMetalInfrastructure; + +/** + * Status of the operation. + */ +union AsyncOperationStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Requesting: "Requesting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Executing: "Executing", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", +} + +/** + * Whether to force restart by shutting all processes. + */ +union AzureBareMetalInstanceForcePowerState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + active: "active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + inactive: "inactive", +} + +/** + * Name of the hardware type (vendor and/or their product name) + */ +union AzureBareMetalHardwareTypeNamesEnum { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Cisco_UCS: "Cisco_UCS", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + HPE: "HPE", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SDFLEX: "SDFLEX", +} + +/** + * Specifies the Azure Bare Metal Instance SKU. + */ +union AzureBareMetalInstanceSizeNamesEnum { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S72m: "S72m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S144m: "S144m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S72: "S72", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S144: "S144", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S192: "S192", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S192m: "S192m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S192xm: "S192xm", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S96: "S96", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S112: "S112", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S224: "S224", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S224m: "S224m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S224om: "S224om", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S224oo: "S224oo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S224oom: "S224oom", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S224ooo: "S224ooo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S384: "S384", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S384m: "S384m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S384xm: "S384xm", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S384xxm: "S384xxm", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S448: "S448", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S448m: "S448m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S448om: "S448om", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S448oo: "S448oo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S448oom: "S448oom", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S448ooo: "S448ooo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S448se: "S448se", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S576m: "S576m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S576xm: "S576xm", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S672: "S672", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S672m: "S672m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S672om: "S672om", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S672oo: "S672oo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S672oom: "S672oom", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S672ooo: "S672ooo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S768: "S768", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S768m: "S768m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S768xm: "S768xm", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S896: "S896", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S896m: "S896m", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S896om: "S896om", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S896oo: "S896oo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S896oom: "S896oom", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S896ooo: "S896ooo", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + S960m: "S960m", +} + +/** + * Resource power state + */ +union AzureBareMetalInstancePowerStateEnum { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + starting: "starting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + started: "started", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + stopping: "stopping", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + stopped: "stopped", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + restarting: "restarting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + `unknown`: "unknown", +} + +/** + * State of provisioning of the AzureBareMetalInstance + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +union AzureBareMetalProvisioningStatesEnum { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Accepted: "Accepted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Creating: "Creating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Updating: "Updating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Migrating: "Migrating", +} + +/** + * State of provisioning of the AzureBareMetalStorageInstance + */ +union ProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Accepted: "Accepted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Creating: "Creating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Updating: "Updating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Migrating: "Migrating", +} + +/** + * The type of identity used for the Azure Bare Metal Storage Instance. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Azure Bare Metal Storage Instance. + */ +union ResourceIdentityType { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SystemAssigned: "SystemAssigned", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + None: "None", +} + +/** + * The OperationStatus object returns the state of an asynchronous operation. + */ +model OperationStatus { + /** + * Unique Operation Status Identifier. + */ + name?: string; + + /** + * Status of the operation. + */ + status?: AsyncOperationStatus; + + /** + * Start Time when the operation was initially executed. + */ + startTime?: string; + + /** + * An error from the Azure Bare Metal Infrastructure service. + */ + error?: OperationStatusError; +} + +/** + * An error from the Azure Bare Metal Infrastructure service. + */ +model OperationStatusError { + /** + * Server-defined set of error codes. + */ + code?: string; + + /** + * Human-readable representation of the error. + */ + message?: string; +} + +/** + * The active state empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server + */ +model ForceState { + /** + * Whether to force restart by shutting all processes. + */ + forceState?: AzureBareMetalInstanceForcePowerState; +} + +/** + * Describes the properties of an Azure Bare Metal Instance. + */ +model AzureBareMetalInstanceProperties { + /** + * Specifies the hardware settings for the Azure Bare Metal Instance. + */ + hardwareProfile?: HardwareProfile; + + /** + * Specifies the storage settings for the Azure Bare Metal Instance disks. + */ + storageProfile?: StorageProfile; + + /** + * Specifies the operating system settings for the Azure Bare Metal Instance. + */ + osProfile?: OSProfile; + + /** + * Specifies the network settings for the Azure Bare Metal Instance. + */ + networkProfile?: NetworkProfile; + + /** + * Specifies the Azure Bare Metal Instance unique ID. + */ + azureBareMetalInstanceId?: string; + + /** + * Resource power state + */ + powerState?: AzureBareMetalInstancePowerStateEnum; + + /** + * Resource proximity placement group + */ + proximityPlacementGroup?: string; + + /** + * Hardware revision of an Azure Bare Metal Instance + */ + hwRevision?: string; + + /** + * ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance + */ + partnerNodeId?: string; + + /** + * State of provisioning of the AzureBareMetalInstance + */ + @visibility(Lifecycle.Read) + provisioningState?: AzureBareMetalProvisioningStatesEnum; +} + +/** + * Specifies the hardware settings for the Azure Bare Metal Instance. + */ +model HardwareProfile { + /** + * Name of the hardware type (vendor and/or their product name) + */ + hardwareType?: AzureBareMetalHardwareTypeNamesEnum; + + /** + * Specifies the Azure Bare Metal Instance SKU. + */ + azureBareMetalInstanceSize?: AzureBareMetalInstanceSizeNamesEnum; +} + +/** + * Specifies the storage settings for the Azure Bare Metal instance disks. + */ +model StorageProfile { + /** + * IP Address to connect to storage. + */ + nfsIpAddress?: string; + + /** + * Specifies information about the operating system disk used by bare metal instance. + */ + @OpenAPI.extension("x-ms-identifiers", #["name"]) + osDisks?: Disk[]; +} + +/** + * Specifies the disk information fo the Azure Bare Metal Instance + */ +model Disk { + /** + * The disk name. + */ + name?: string; + + /** + * Specifies the size of an empty data disk in gigabytes. + */ + diskSizeGB?: int32; + + /** + * Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. + */ + @visibility(Lifecycle.Read) + lun?: int32; +} + +/** + * Specifies the operating system settings for the Azure Bare Metal instance. + */ +model OSProfile { + /** + * Specifies the host OS name of the Azure Bare Metal instance. + */ + computerName?: string; + + /** + * This property allows you to specify the type of the OS. + */ + osType?: string; + + /** + * Specifies version of operating system. + */ + version?: string; + + /** + * Specifies the SSH public key used to access the operating system. + */ + sshPublicKey?: string; +} + +/** + * Specifies the network settings for the Azure Bare Metal Instance disks. + */ +model NetworkProfile { + /** + * Specifies the network interfaces for the Azure Bare Metal Instance. + */ + @OpenAPI.extension("x-ms-identifiers", #["ipAddress"]) + networkInterfaces?: NetworkInterface[]; + + /** + * Specifies the circuit id for connecting to express route. + */ + circuitId?: string; +} + +/** + * Specifies the network interfaces of a bare metal resource. + */ +model NetworkInterface { + /** + * Specifies the IP address of the network interface. + */ + ipAddress?: string; +} + +/** + * Common fields that are returned in the response for all Azure Resource Manager resources + */ +model Resource { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + */ + @visibility(Lifecycle.Read) + id?: Azure.Core.armResourceIdentifier; + + /** + * The name of the resource + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + @visibility(Lifecycle.Read) + systemData?: SystemData; +} + +/** + * Tags field of the AzureBareMetal/AzureBareMetalStorage instance. + */ +model Tags { + /** + * Tags field of the AzureBareMetal/AzureBareMetaStorage instance. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} + +/** + * Describes the properties of an AzureBareMetalStorageInstance. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model AzureBareMetalStorageInstanceProperties { + /** + * Specifies the AzureBareMetaStorageInstance unique ID. + */ + azureBareMetalStorageInstanceUniqueIdentifier?: string; + + /** + * Specifies the storage properties for the AzureBareMetalStorage instance. + */ + storageProperties?: StorageProperties; +} + +/** + * described the storage properties of the azure bare metal storage instance + */ +model StorageProperties { + /** + * State of provisioning of the AzureBareMetalStorageInstance + */ + provisioningState?: ProvisioningState; + + /** + * the offering type for which the resource is getting provisioned + */ + offeringType?: string; + + /** + * the storage protocol for which the resource is getting provisioned + */ + storageType?: string; + + /** + * the kind of storage instance + */ + generation?: string; + + /** + * the hardware type of the storage instance + */ + hardwareType?: string; + + /** + * the workload for which the resource is getting provisioned + */ + workloadType?: string; + + /** + * the billing related information for the resource + */ + storageBillingProperties?: StorageBillingProperties; +} + +/** + * Describes the billing related details of the AzureBareMetalStorageInstance. + */ +model StorageBillingProperties { + /** + * the billing mode for the storage instance + */ + billingMode?: string; + + /** + * the SKU type that is provisioned + */ + azureBareMetalStorageInstanceSize?: string; +} + +/** + * Identity for Azure Bare Metal Storage Instance. + */ +model AzureBareMetalStorageInstanceIdentity { + /** + * The principal ID of Azure Bare Metal Storage Instance identity. This property will only be provided for a system assigned identity. + */ + @visibility(Lifecycle.Read) + principalId?: string; + + /** + * The tenant ID associated with the Azure Bare Metal Storage Instance. This property will only be provided for a system assigned identity. + */ + @visibility(Lifecycle.Read) + tenantId?: string; + + /** + * The type of identity used for the Azure Bare Metal Storage Instance. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Azure Bare Metal Storage Instance. + */ + type?: ResourceIdentityType; +} + +/** + * properties of body during PUT/PATCH for an AzureBareMetalStorageInstance. + */ +model AzureBareMetalStorageInstanceBody { + /** + * The identity of Azure Bare Metal Storage Instance, if configured. + */ + identity?: AzureBareMetalStorageInstanceIdentity; + + /** + * Tags field of the AzureBareMetal/AzureBareMetaStorage instance. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; +} diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/tspconfig.yaml b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/tspconfig.yaml new file mode 100644 index 000000000000..f91a2c930484 --- /dev/null +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/tspconfig.yaml @@ -0,0 +1,14 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/baremetalinfrastructure.json" + examples-dir: "{project-root}/examples" + arm-resource-flattening: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" From 4713d2e08faa1dd621c71a2bdf172695293456ca Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Thu, 17 Apr 2025 14:32:03 +0800 Subject: [PATCH 2/2] Swagger difference fix --- .../AzureBareMetalInstance.tsp | 13 + .../AzureBareMetalStorageInstance.tsp | 18 + .../baremetalinfrastructure.json | 1808 ++++++++++------- .../AzureBareMetalInstances_Create.json | 148 +- .../AzureBareMetalInstances_Delete.json | 8 +- .../examples/AzureBareMetalInstances_Get.json | 56 +- ...areMetalInstances_ListByResourceGroup.json | 110 +- ...BareMetalInstances_ListBySubscription.json | 94 +- .../AzureBareMetalInstances_PatchTags.json | 60 +- ...reBareMetalInstances_PatchTags_Delete.json | 58 +- .../AzureBareMetalInstances_Restart.json | 18 +- .../AzureBareMetalInstances_Shutdown.json | 16 +- .../AzureBareMetalInstances_Start.json | 16 +- .../AzureBareMetalOperations_List.json | 18 +- ...AzureBareMetalStorageInstances_Create.json | 114 +- ...AzureBareMetalStorageInstances_Delete.json | 10 +- .../AzureBareMetalStorageInstances_Get.json | 56 +- ...lStorageInstances_ListByResourceGroup.json | 102 +- ...alStorageInstances_ListBySubscription.json | 98 +- ...reBareMetalStorageInstances_PatchTags.json | 60 +- ...etalStorageInstances_PatchTags_Delete.json | 58 +- 21 files changed, 1698 insertions(+), 1241 deletions(-) diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp index 610e91619732..134118111aca 100644 --- a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalInstance.tsp @@ -97,3 +97,16 @@ interface AzureBareMetalInstances { @@doc(AzureBareMetalInstances.update::parameters.properties, "Request body that only contains the new Tags field" ); +@@summary(AzureBareMetalInstances.listBySubscription, + "Returns a list of Azure Bare Metal Instances in the specified subscription." +); +@@summary(AzureBareMetalInstances.listByResourceGroup, + "Gets a list of Azure Bare Metal Instances in the specified subscription and resource group." +); +@@summary(AzureBareMetalInstances.get, "Gets an Azure Bare Metal Instance."); +@@summary(AzureBareMetalInstances.update, + "Patches the Tags field of a Azure Bare Metal Instance." +); +@@summary(AzureBareMetalInstances.restart, "Restart a Bare Metal Instance."); +@@summary(AzureBareMetalInstances.shutdown, "Shutdown a Bare Metal Instance."); +@@summary(AzureBareMetalInstances.start, "Start a Bare Metal Instance."); diff --git a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp index 4fac35076d15..ffafc660f8c6 100644 --- a/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp +++ b/specification/baremetalinfrastructure/BareMetalInfrastructure.Management/AzureBareMetalStorageInstance.tsp @@ -78,3 +78,21 @@ interface AzureBareMetalStorageInstances { @@doc(AzureBareMetalStorageInstances.update::parameters.properties, "Request body that only contains the Tags and Identity Field" ); +@@summary(AzureBareMetalStorageInstances.listByResourceGroup, + "Gets a list of Azure Bare Metal Storage instances in the specified subscription and resource group." +); +@@summary(AzureBareMetalStorageInstances.listBySubscription, + "Gets a list of Azure Bare Metal Storage instances in the specified subscription." +); +@@summary(AzureBareMetalStorageInstances.get, + "Gets an Azure Bare Metal Storage instance." +); +@@summary(AzureBareMetalStorageInstances.create, + "Create an azure bare metal storage resource." +); +@@summary(AzureBareMetalStorageInstances.update, + "Patches the Tags field of a Azure BareMetalStorage instance." +); +@@summary(AzureBareMetalStorageInstances.delete, + "Delete an AzureBareMetalStorageInstance." +); diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/baremetalinfrastructure.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/baremetalinfrastructure.json index 28def573b7dc..23c18de17369 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/baremetalinfrastructure.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/baremetalinfrastructure.json @@ -1,18 +1,23 @@ { "swagger": "2.0", "info": { - "version": "2024-08-01-preview", "title": "bareMetalInfrastructureClient", - "description": "The Bare Metal Infrastructure Management client" + "version": "2024-08-01-preview", + "description": "The Bare Metal Infrastructure Management client", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], "security": [ @@ -25,9 +30,9 @@ "securityDefinitions": { "azure_auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } @@ -35,221 +40,100 @@ }, "tags": [ { - "name": "Bare Metal Instances", - "description": "Handle Operations for Compute Bare Metal Instances." + "name": "Operations" }, { - "name": "Bare Metal Storage Instances", - "description": "Handle Operations for Storage Bare Metal Instances." + "name": "AzureBareMetalInstances" }, { - "name": "Common", - "description": "Handle Common Operations across Bare Metal Infrastructure (Compute, and Storage)" + "name": "AzureBareMetalStorageInstances" } ], "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start": { - "post": { + "/providers/Microsoft.BareMetalInfrastructure/operations": { + "get": { + "operationId": "Operations_List", "tags": [ - "Bare Metal Instances" - ], - "summary": "Start a Bare Metal Instance.", - "description": "The operation to start an Azure Bare Metal instance", - "operationId": "AzureBareMetalInstances_Start", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Start an Azure Bare Metal instance": { - "$ref": "./examples/AzureBareMetalInstances_Start.json" - } - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Operations" ], + "description": "List the operations for the provider", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureBareMetalInstanceNameParameter" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "202": { - "description": "Accepted. The response indicates that the existing Bare Metal Instance is now turning on and includes a 'Location' header to query the operation result.", - "headers": { - "location": { - "type": "string", - "description": "URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location." - } + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart": { - "post": { - "tags": [ - "Bare Metal Instances" - ], - "summary": "Restart a Bare Metal Instance.", - "description": "The operation to restart an Azure Bare Metal Instance", - "operationId": "AzureBareMetalInstances_Restart", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" }, "x-ms-examples": { - "Restart an Azure Bare Metal Instance": { - "$ref": "./examples/AzureBareMetalInstances_Restart.json" + "List all management operations supported by the AzureBareMetal RP": { + "$ref": "./examples/AzureBareMetalOperations_List.json" } }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureBareMetalInstanceNameParameter" - }, - { - "$ref": "#/parameters/ForcePowerManagementOperationParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "202": { - "description": "Accepted. The response indicates that the existing Bare Metal Instance is now restarting and includes a 'Location' header to query the operation result.", - "headers": { - "location": { - "type": "string", - "description": "URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location." - } - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown": { - "post": { + "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances": { + "get": { + "operationId": "AzureBareMetalInstances_ListBySubscription", "tags": [ - "Bare Metal Instances" - ], - "summary": "Shutdown a Bare Metal Instance.", - "description": "The operation to shutdown an Azure Bare Metal Instance", - "operationId": "AzureBareMetalInstances_Shutdown", - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-examples": { - "Shutdown an Azure Bare Metal Instance": { - "$ref": "./examples/AzureBareMetalInstances_Shutdown.json" - } - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "AzureBareMetalInstances" ], + "summary": "Returns a list of Azure Bare Metal Instances in the specified subscription.", + "description": "Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureBareMetalInstanceNameParameter" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "202": { - "description": "Accepted. The response indicates that the existing Bare Metal Instance is now turning off and includes a 'Location' header to query the operation result.", - "headers": { - "location": { - "type": "string", - "description": "URL to track the operation status of the Microsoft Bare Metal Infrastructure in the specified location." - } + "$ref": "#/definitions/AzureBareMetalInstanceListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "List all Azure Bare Metal Instances in a subscription": { + "$ref": "./examples/AzureBareMetalInstances_ListBySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances": { + "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances": { "get": { + "operationId": "AzureBareMetalStorageInstances_ListBySubscription", "tags": [ - "Bare Metal Instances" + "AzureBareMetalStorageInstances" ], - "operationId": "AzureBareMetalInstances_ListBySubscription", - "summary": "Returns a list of Azure Bare Metal Instances in the specified subscription.", - "description": "Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.", - "x-ms-examples": { - "List all Azure Bare Metal Instances in a subscription": { - "$ref": "./examples/AzureBareMetalInstances_ListBySubscription.json" - } - }, + "summary": "Gets a list of Azure Bare Metal Storage instances in the specified subscription.", + "description": "Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -260,18 +144,23 @@ ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AzureBareMetalInstancesListResult" + "$ref": "#/definitions/AzureBareMetalStorageInstanceListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, + "x-ms-examples": { + "List all AzureBareMetalStorage instances in a subscription": { + "$ref": "./examples/AzureBareMetalStorageInstances_ListBySubscription.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -279,17 +168,12 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances": { "get": { + "operationId": "AzureBareMetalInstances_ListByResourceGroup", "tags": [ - "Bare Metal Instances" + "AzureBareMetalInstances" ], - "operationId": "AzureBareMetalInstances_ListByResourceGroup", "summary": "Gets a list of Azure Bare Metal Instances in the specified subscription and resource group.", "description": "Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.", - "x-ms-examples": { - "List all Azure Bare Metal Instances in a resource group": { - "$ref": "./examples/AzureBareMetalInstances_ListByResourceGroup.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -303,79 +187,36 @@ ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AzureBareMetalInstancesListResult" + "$ref": "#/definitions/AzureBareMetalInstanceListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/providers/Microsoft.BareMetalInfrastructure/operations": { - "get": { - "tags": [ - "Common" - ], - "operationId": "Operations_List", "x-ms-examples": { - "List all management operations supported by the AzureBareMetal RP": { - "$ref": "./examples/AzureBareMetalOperations_List.json" - } - }, - "summary": "Lists all of the available consumption REST API operations.", - "description": "Gets a list of AzureBareMetal management operations.", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } + "List all Azure Bare Metal Instances in a resource group": { + "$ref": "./examples/AzureBareMetalInstances_ListByResourceGroup.json" } }, "x-ms-pageable": { - "nextLinkName": null + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}": { "get": { + "operationId": "AzureBareMetalInstances_Get", "tags": [ - "Bare Metal Instances" + "AzureBareMetalInstances" ], - "operationId": "AzureBareMetalInstances_Get", "summary": "Gets an Azure Bare Metal Instance.", "description": "Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.", - "x-ms-examples": { - "Get an Azure Bare Metal Instance": { - "$ref": "./examples/AzureBareMetalInstances_Get.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -387,28 +228,38 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AzureBareMetalInstanceNameParameter" + "name": "azureBareMetalInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+$" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AzureBareMetalInstance" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get an Azure Bare Metal Instance": { + "$ref": "./examples/AzureBareMetalInstances_Get.json" + } } }, "put": { "operationId": "AzureBareMetalInstances_Create", "tags": [ - "Bare Metal Instances" + "AzureBareMetalInstances" ], "description": "Creates an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.", "parameters": [ @@ -422,7 +273,12 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AzureBareMetalInstanceNameParameter" + "name": "azureBareMetalInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+$" }, { "name": "requestBodyParameters", @@ -435,14 +291,14 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "Resource 'AzureBareMetalInstance' update operation succeeded", "schema": { "$ref": "#/definitions/AzureBareMetalInstance" } }, - "200": { - "description": "Azure operation completed successfully.", + "201": { + "description": "Resource 'AzureBareMetalInstance' create operation succeeded", "schema": { "$ref": "#/definitions/AzureBareMetalInstance" } @@ -461,20 +317,12 @@ } }, "patch": { + "operationId": "AzureBareMetalInstances_Update", "tags": [ - "Bare Metal Instances" + "AzureBareMetalInstances" ], - "operationId": "AzureBareMetalInstances_Update", "summary": "Patches the Tags field of a Azure Bare Metal Instance.", "description": "Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and instance name.", - "x-ms-examples": { - "Update Tags field of an Azure Bare Metal Instance": { - "$ref": "./examples/AzureBareMetalInstances_PatchTags.json" - }, - "Delete Tags field of an Azure Bare Metal Instance": { - "$ref": "./examples/AzureBareMetalInstances_PatchTags_Delete.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -486,31 +334,50 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AzureBareMetalInstanceNameParameter" + "name": "azureBareMetalInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+$" }, { - "$ref": "#/parameters/TagsParameter" + "name": "tagsParameter", + "in": "body", + "description": "Request body that only contains the new Tags field", + "required": true, + "schema": { + "$ref": "#/definitions/Tags" + } } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AzureBareMetalInstance" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Delete Tags field of an Azure Bare Metal Instance": { + "$ref": "./examples/AzureBareMetalInstances_PatchTags_Delete.json" + }, + "Update Tags field of an Azure Bare Metal Instance": { + "$ref": "./examples/AzureBareMetalInstances_PatchTags.json" + } } }, "delete": { "operationId": "AzureBareMetalInstances_Delete", "tags": [ - "Bare Metal Instances" + "AzureBareMetalInstances" ], "description": "Deletes an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.", "parameters": [ @@ -524,12 +391,17 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AzureBareMetalInstanceNameParameter" + "name": "azureBareMetalInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+$" } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource deleted successfully." }, "204": { "description": "Resource does not exist." @@ -548,59 +420,221 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/restart": { + "post": { + "operationId": "AzureBareMetalInstances_Restart", "tags": [ - "Bare Metal Storage Instances" + "AzureBareMetalInstances" ], - "operationId": "AzureBareMetalStorageInstances_ListBySubscription", - "summary": "Gets a list of Azure Bare Metal Storage instances in the specified subscription.", - "description": "Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.", + "summary": "Restart a Bare Metal Instance.", + "description": "The operation to restart an Azure Bare Metal Instance", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureBareMetalInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+$" + }, + { + "name": "forceParameter", + "in": "body", + "description": "When set to 'active', this parameter empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server", + "required": false, + "schema": { + "$ref": "#/definitions/ForceState" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, "x-ms-examples": { - "List all AzureBareMetalStorage instances in a subscription": { - "$ref": "./examples/AzureBareMetalStorageInstances_ListBySubscription.json" + "Restart an Azure Bare Metal Instance": { + "$ref": "./examples/AzureBareMetalInstances_Restart.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/shutdown": { + "post": { + "operationId": "AzureBareMetalInstances_Shutdown", + "tags": [ + "AzureBareMetalInstances" + ], + "summary": "Shutdown a Bare Metal Instance.", + "description": "The operation to shutdown an Azure Bare Metal Instance", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureBareMetalInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+$" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AzureBareMetalStorageInstancesListResult" + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-examples": { + "Shutdown an Azure Bare Metal Instance": { + "$ref": "./examples/AzureBareMetalInstances_Shutdown.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/{azureBareMetalInstanceName}/start": { + "post": { + "operationId": "AzureBareMetalInstances_Start", + "tags": [ + "AzureBareMetalInstances" + ], + "summary": "Start a Bare Metal Instance.", + "description": "The operation to start an Azure Bare Metal instance", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureBareMetalInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OperationStatus" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Start an Azure Bare Metal instance": { + "$ref": "./examples/AzureBareMetalInstances_Start.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances": { "get": { + "operationId": "AzureBareMetalStorageInstances_ListByResourceGroup", "tags": [ - "Bare Metal Storage Instances" + "AzureBareMetalStorageInstances" ], - "operationId": "AzureBareMetalStorageInstances_ListByResourceGroup", "summary": "Gets a list of Azure Bare Metal Storage instances in the specified subscription and resource group.", "description": "Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.", - "x-ms-examples": { - "List all AzureBareMetalStorage instances in a resource group": { - "$ref": "./examples/AzureBareMetalStorageInstances_ListByResourceGroup.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -614,18 +648,23 @@ ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AzureBareMetalStorageInstancesListResult" + "$ref": "#/definitions/AzureBareMetalStorageInstanceListResult" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, + "x-ms-examples": { + "List all AzureBareMetalStorage instances in a resource group": { + "$ref": "./examples/AzureBareMetalStorageInstances_ListByResourceGroup.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -633,17 +672,12 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/{azureBareMetalStorageInstanceName}": { "get": { + "operationId": "AzureBareMetalStorageInstances_Get", "tags": [ - "Bare Metal Storage Instances" + "AzureBareMetalStorageInstances" ], - "operationId": "AzureBareMetalStorageInstances_Get", "summary": "Gets an Azure Bare Metal Storage instance.", "description": "Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.", - "x-ms-examples": { - "Get an AzureBareMetalStorage instance": { - "$ref": "./examples/AzureBareMetalStorageInstances_Get.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -655,36 +689,41 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AzureBareMetalStorageInstanceNameParameter" + "name": "azureBareMetalStorageInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Storage Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": ".*" } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AzureBareMetalStorageInstance" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get an AzureBareMetalStorage instance": { + "$ref": "./examples/AzureBareMetalStorageInstances_Get.json" + } } }, "put": { + "operationId": "AzureBareMetalStorageInstances_Create", "tags": [ - "Bare Metal Storage Instances" + "AzureBareMetalStorageInstances" ], "summary": "Create an azure bare metal storage resource.", "description": "Creates an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name.", - "operationId": "AzureBareMetalStorageInstances_Create", - "x-ms-examples": { - "Put a new AzureBareMetalStorageInstance": { - "$ref": "./examples/AzureBareMetalStorageInstances_Create.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -696,54 +735,56 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AzureBareMetalStorageInstanceNameParameter" + "name": "azureBareMetalStorageInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Storage Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": ".*" }, { - "in": "body", "name": "requestBodyParameters", + "in": "body", + "description": "request body for put call", "required": true, "schema": { "$ref": "#/definitions/AzureBareMetalStorageInstance" - }, - "description": "request body for put call" + } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "Resource 'AzureBareMetalStorageInstance' update operation succeeded", "schema": { "$ref": "#/definitions/AzureBareMetalStorageInstance" } }, - "200": { - "description": "Succeeded", + "201": { + "description": "Resource 'AzureBareMetalStorageInstance' create operation succeeded", "schema": { "$ref": "#/definitions/AzureBareMetalStorageInstance" } }, "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Put a new AzureBareMetalStorageInstance": { + "$ref": "./examples/AzureBareMetalStorageInstances_Create.json" + } } }, "patch": { + "operationId": "AzureBareMetalStorageInstances_Update", "tags": [ - "BareMetalInfrastructure" + "AzureBareMetalStorageInstances" ], - "operationId": "AzureBareMetalStorageInstances_Update", "summary": "Patches the Tags field of a Azure BareMetalStorage instance.", "description": "Patches the Tags field of a Azure BareMetalStorage instance for the specified subscription, resource group, and instance name.", - "x-ms-examples": { - "Update Tags field of an AzureBareMetalStorage instance": { - "$ref": "./examples/AzureBareMetalStorageInstances_PatchTags.json" - }, - "Delete Tags field of an AzureBareMetalStorage instance": { - "$ref": "./examples/AzureBareMetalStorageInstances_PatchTags_Delete.json" - } - }, "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -755,106 +796,272 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/AzureBareMetalStorageInstanceNameParameter" + "name": "azureBareMetalStorageInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Storage Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": ".*" }, { - "$ref": "#/parameters/AzureBareMetalStorageInstanceBodyParameter" + "name": "azureBareMetalStorageInstanceBodyParameter", + "in": "body", + "description": "Request body that only contains the Tags and Identity Field", + "required": true, + "schema": { + "$ref": "#/definitions/AzureBareMetalStorageInstanceBody" + } } ], "responses": { "200": { - "description": "OK", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AzureBareMetalStorageInstance" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Delete Tags field of an AzureBareMetalStorage instance": { + "$ref": "./examples/AzureBareMetalStorageInstances_PatchTags_Delete.json" + }, + "Update Tags field of an AzureBareMetalStorage instance": { + "$ref": "./examples/AzureBareMetalStorageInstances_PatchTags.json" + } } }, "delete": { + "operationId": "AzureBareMetalStorageInstances_Delete", "tags": [ - "Bare Metal Storage Instances" + "AzureBareMetalStorageInstances" ], "summary": "Delete an AzureBareMetalStorageInstance.", "description": "Deletes an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name.", - "operationId": "AzureBareMetalStorageInstances_Delete", - "x-ms-examples": { - "Delete an AzureBareMetalStorageInstance": { - "$ref": "./examples/AzureBareMetalStorageInstances_Delete.json" - } - }, "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/AzureBareMetalStorageInstanceNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "name": "azureBareMetalStorageInstanceName", + "in": "path", + "description": "Name of the Azure Bare Metal Storage Instance, also known as the ResourceName.", + "required": true, + "type": "string", + "pattern": ".*" } ], "responses": { "200": { - "description": "The request has succeeded." + "description": "Resource deleted successfully." }, "204": { "description": "Resource does not exist." }, "default": { - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations.", + "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Delete an AzureBareMetalStorageInstance": { + "$ref": "./examples/AzureBareMetalStorageInstances_Delete.json" + } } } } }, "definitions": { - "AzureBareMetalInstancesListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureBareMetalInstance" + "AsyncOperationStatus": { + "type": "string", + "description": "Status of the operation.", + "enum": [ + "Requesting", + "Executing", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "AsyncOperationStatus", + "modelAsString": true, + "values": [ + { + "name": "Requesting", + "value": "Requesting" }, - "description": "The list of Azure Bare Metal Instances." - }, - "nextLink": { - "type": "string", - "description": "The URL to get the next set of Azure Bare Metal Instances." - } + { + "name": "Executing", + "value": "Executing" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed" + } + ] }, - "description": "The response from the List Azure Bare Metal Instances operation." + "readOnly": true }, - "AzureBareMetalInstance": { + "Azure.ResourceManager.ArmResponse": { "type": "object", + "description": "Azure operation completed successfully.", "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AzureBareMetalInstanceProperties", - "description": "AzureBareMetal instance properties" + "body": { + "$ref": "#/definitions/OperationStatus", + "description": "The body type of the operation request or response." } }, - "allOf": [ - { + "required": [ + "body" + ] + }, + "AzureBareMetalHardwareTypeNamesEnum": { + "type": "string", + "description": "Name of the hardware type (vendor and/or their product name)", + "enum": [ + "Cisco_UCS", + "HPE", + "SDFLEX" + ], + "x-ms-enum": { + "name": "AzureBareMetalHardwareTypeNamesEnum", + "modelAsString": true, + "values": [ + { + "name": "Cisco_UCS", + "value": "Cisco_UCS" + }, + { + "name": "HPE", + "value": "HPE" + }, + { + "name": "SDFLEX", + "value": "SDFLEX" + } + ] + } + }, + "AzureBareMetalInstance": { + "type": "object", + "description": "AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)", + "properties": { + "properties": { + "$ref": "#/definitions/AzureBareMetalInstanceProperties", + "description": "AzureBareMetal instance properties", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } + ] + }, + "AzureBareMetalInstanceForcePowerState": { + "type": "string", + "description": "Whether to force restart by shutting all processes.", + "enum": [ + "active", + "inactive" + ], + "x-ms-enum": { + "name": "AzureBareMetalInstanceForcePowerState", + "modelAsString": true, + "values": [ + { + "name": "active", + "value": "active" + }, + { + "name": "inactive", + "value": "inactive" + } + ] + } + }, + "AzureBareMetalInstanceListResult": { + "type": "object", + "description": "The response of a AzureBareMetalInstance list operation.", + "properties": { + "value": { + "type": "array", + "description": "The AzureBareMetalInstance items on this page", + "items": { + "$ref": "#/definitions/AzureBareMetalInstance" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "AzureBareMetalInstancePowerStateEnum": { + "type": "string", + "description": "Resource power state", + "enum": [ + "starting", + "started", + "stopping", + "stopped", + "restarting", + "unknown" ], - "description": "AzureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties)" + "x-ms-enum": { + "name": "AzureBareMetalInstancePowerStateEnum", + "modelAsString": true, + "values": [ + { + "name": "starting", + "value": "starting" + }, + { + "name": "started", + "value": "started" + }, + { + "name": "stopping", + "value": "stopping" + }, + { + "name": "stopped", + "value": "stopped" + }, + { + "name": "restarting", + "value": "restarting" + }, + { + "name": "unknown", + "value": "unknown" + } + ] + } }, "AzureBareMetalInstanceProperties": { "type": "object", + "description": "Describes the properties of an Azure Bare Metal Instance.", "properties": { "hardwareProfile": { "$ref": "#/definitions/HardwareProfile", @@ -877,19 +1084,7 @@ "description": "Specifies the Azure Bare Metal Instance unique ID." }, "powerState": { - "type": "string", - "enum": [ - "starting", - "started", - "stopping", - "stopped", - "restarting", - "unknown" - ], - "x-ms-enum": { - "name": "AzureBareMetalInstancePowerStateEnum", - "modelAsString": true - }, + "$ref": "#/definitions/AzureBareMetalInstancePowerStateEnum", "description": "Resource power state" }, "proximityPlacementGroup": { @@ -905,101 +1100,387 @@ "description": "ARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance" }, "provisioningState": { - "readOnly": true, - "type": "string", - "enum": [ - "Accepted", - "Creating", - "Updating", - "Failed", - "Succeeded", - "Deleting", - "Migrating" - ], - "x-ms-enum": { - "name": "AzureBareMetalProvisioningStatesEnum", - "modelAsString": true - }, - "description": "State of provisioning of the AzureBareMetalInstance" + "$ref": "#/definitions/AzureBareMetalProvisioningStatesEnum", + "description": "State of provisioning of the AzureBareMetalInstance", + "readOnly": true + } + } + }, + "AzureBareMetalInstanceSizeNamesEnum": { + "type": "string", + "description": "Specifies the Azure Bare Metal Instance SKU.", + "enum": [ + "S72m", + "S144m", + "S72", + "S144", + "S192", + "S192m", + "S192xm", + "S96", + "S112", + "S224", + "S224m", + "S224om", + "S224oo", + "S224oom", + "S224ooo", + "S384", + "S384m", + "S384xm", + "S384xxm", + "S448", + "S448m", + "S448om", + "S448oo", + "S448oom", + "S448ooo", + "S448se", + "S576m", + "S576xm", + "S672", + "S672m", + "S672om", + "S672oo", + "S672oom", + "S672ooo", + "S768", + "S768m", + "S768xm", + "S896", + "S896m", + "S896om", + "S896oo", + "S896oom", + "S896ooo", + "S960m" + ], + "x-ms-enum": { + "name": "AzureBareMetalInstanceSizeNamesEnum", + "modelAsString": true, + "values": [ + { + "name": "S72m", + "value": "S72m" + }, + { + "name": "S144m", + "value": "S144m" + }, + { + "name": "S72", + "value": "S72" + }, + { + "name": "S144", + "value": "S144" + }, + { + "name": "S192", + "value": "S192" + }, + { + "name": "S192m", + "value": "S192m" + }, + { + "name": "S192xm", + "value": "S192xm" + }, + { + "name": "S96", + "value": "S96" + }, + { + "name": "S112", + "value": "S112" + }, + { + "name": "S224", + "value": "S224" + }, + { + "name": "S224m", + "value": "S224m" + }, + { + "name": "S224om", + "value": "S224om" + }, + { + "name": "S224oo", + "value": "S224oo" + }, + { + "name": "S224oom", + "value": "S224oom" + }, + { + "name": "S224ooo", + "value": "S224ooo" + }, + { + "name": "S384", + "value": "S384" + }, + { + "name": "S384m", + "value": "S384m" + }, + { + "name": "S384xm", + "value": "S384xm" + }, + { + "name": "S384xxm", + "value": "S384xxm" + }, + { + "name": "S448", + "value": "S448" + }, + { + "name": "S448m", + "value": "S448m" + }, + { + "name": "S448om", + "value": "S448om" + }, + { + "name": "S448oo", + "value": "S448oo" + }, + { + "name": "S448oom", + "value": "S448oom" + }, + { + "name": "S448ooo", + "value": "S448ooo" + }, + { + "name": "S448se", + "value": "S448se" + }, + { + "name": "S576m", + "value": "S576m" + }, + { + "name": "S576xm", + "value": "S576xm" + }, + { + "name": "S672", + "value": "S672" + }, + { + "name": "S672m", + "value": "S672m" + }, + { + "name": "S672om", + "value": "S672om" + }, + { + "name": "S672oo", + "value": "S672oo" + }, + { + "name": "S672oom", + "value": "S672oom" + }, + { + "name": "S672ooo", + "value": "S672ooo" + }, + { + "name": "S768", + "value": "S768" + }, + { + "name": "S768m", + "value": "S768m" + }, + { + "name": "S768xm", + "value": "S768xm" + }, + { + "name": "S896", + "value": "S896" + }, + { + "name": "S896m", + "value": "S896m" + }, + { + "name": "S896om", + "value": "S896om" + }, + { + "name": "S896oo", + "value": "S896oo" + }, + { + "name": "S896oom", + "value": "S896oom" + }, + { + "name": "S896ooo", + "value": "S896ooo" + }, + { + "name": "S960m", + "value": "S960m" + } + ] + } + }, + "AzureBareMetalProvisioningStatesEnum": { + "type": "string", + "description": "State of provisioning of the AzureBareMetalInstance", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ], + "x-ms-enum": { + "name": "AzureBareMetalProvisioningStatesEnum", + "modelAsString": true, + "values": [ + { + "name": "Accepted", + "value": "Accepted" + }, + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "Updating", + "value": "Updating" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Deleting", + "value": "Deleting" + }, + { + "name": "Migrating", + "value": "Migrating" + } + ] + }, + "readOnly": true + }, + "AzureBareMetalStorageInstance": { + "type": "object", + "description": "AzureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties)", + "properties": { + "properties": { + "$ref": "#/definitions/AzureBareMetalStorageInstanceProperties", + "description": "AzureBareMetalStorageInstance properties", + "x-ms-client-flatten": true + }, + "identity": { + "$ref": "#/definitions/AzureBareMetalStorageInstanceIdentity", + "description": "The identity of Azure Bare Metal Storage Instance, if configured." } }, - "description": "Describes the properties of an Azure Bare Metal Instance." + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] }, - "HardwareProfile": { + "AzureBareMetalStorageInstanceBody": { "type": "object", + "description": "properties of body during PUT/PATCH for an AzureBareMetalStorageInstance.", "properties": { - "hardwareType": { + "identity": { + "$ref": "#/definitions/AzureBareMetalStorageInstanceIdentity", + "description": "The identity of Azure Bare Metal Storage Instance, if configured." + }, + "tags": { + "type": "object", + "description": "Tags field of the AzureBareMetal/AzureBareMetaStorage instance.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "AzureBareMetalStorageInstanceIdentity": { + "type": "object", + "description": "Identity for Azure Bare Metal Storage Instance.", + "properties": { + "principalId": { "type": "string", - "enum": [ - "Cisco_UCS", - "HPE", - "SDFLEX" - ], - "x-ms-enum": { - "name": "AzureBareMetalHardwareTypeNamesEnum", - "modelAsString": true - }, - "description": "Name of the hardware type (vendor and/or their product name)" + "description": "The principal ID of Azure Bare Metal Storage Instance identity. This property will only be provided for a system assigned identity.", + "readOnly": true }, - "azureBareMetalInstanceSize": { + "tenantId": { "type": "string", - "enum": [ - "S72m", - "S144m", - "S72", - "S144", - "S192", - "S192m", - "S192xm", - "S96", - "S112", - "S224", - "S224m", - "S224om", - "S224oo", - "S224oom", - "S224ooo", - "S384", - "S384m", - "S384xm", - "S384xxm", - "S448", - "S448m", - "S448om", - "S448oo", - "S448oom", - "S448ooo", - "S448se", - "S576m", - "S576xm", - "S672", - "S672m", - "S672om", - "S672oo", - "S672oom", - "S672ooo", - "S768", - "S768m", - "S768xm", - "S896", - "S896m", - "S896om", - "S896oo", - "S896oom", - "S896ooo", - "S960m" - ], - "x-ms-enum": { - "name": "azureBareMetalInstanceSizeNamesEnum", - "modelAsString": true - }, - "description": "Specifies the Azure Bare Metal Instance SKU." + "description": "The tenant ID associated with the Azure Bare Metal Storage Instance. This property will only be provided for a system assigned identity.", + "readOnly": true + }, + "type": { + "$ref": "#/definitions/ResourceIdentityType", + "description": "The type of identity used for the Azure Bare Metal Storage Instance. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Azure Bare Metal Storage Instance." + } + } + }, + "AzureBareMetalStorageInstanceListResult": { + "type": "object", + "description": "The response of a AzureBareMetalStorageInstance list operation.", + "properties": { + "value": { + "type": "array", + "description": "The AzureBareMetalStorageInstance items on this page", + "items": { + "$ref": "#/definitions/AzureBareMetalStorageInstance" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } }, - "description": "Specifies the hardware settings for the Azure Bare Metal Instance." + "required": [ + "value" + ] + }, + "AzureBareMetalStorageInstanceProperties": { + "type": "object", + "description": "Describes the properties of an AzureBareMetalStorageInstance.", + "properties": { + "azureBareMetalStorageInstanceUniqueIdentifier": { + "type": "string", + "description": "Specifies the AzureBareMetaStorageInstance unique ID." + }, + "storageProperties": { + "$ref": "#/definitions/StorageProperties", + "description": "Specifies the storage properties for the AzureBareMetalStorage instance." + } + } }, "Disk": { "type": "object", + "description": "Specifies the disk information fo the Azure Bare Metal Instance", "properties": { "name": { "type": "string", @@ -1011,36 +1492,70 @@ "description": "Specifies the size of an empty data disk in gigabytes." }, "lun": { - "readOnly": true, "type": "integer", "format": "int32", - "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." + "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.", + "readOnly": true } - }, - "description": "Specifies the disk information fo the Azure Bare Metal Instance" + } }, - "StorageProfile": { + "ForceState": { "type": "object", + "description": "The active state empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server", "properties": { - "nfsIpAddress": { - "type": "string", - "description": "IP Address to connect to storage." + "forceState": { + "$ref": "#/definitions/AzureBareMetalInstanceForcePowerState", + "description": "Whether to force restart by shutting all processes." + } + } + }, + "HardwareProfile": { + "type": "object", + "description": "Specifies the hardware settings for the Azure Bare Metal Instance.", + "properties": { + "hardwareType": { + "$ref": "#/definitions/AzureBareMetalHardwareTypeNamesEnum", + "description": "Name of the hardware type (vendor and/or their product name)" }, - "osDisks": { + "azureBareMetalInstanceSize": { + "$ref": "#/definitions/AzureBareMetalInstanceSizeNamesEnum", + "description": "Specifies the Azure Bare Metal Instance SKU." + } + } + }, + "NetworkInterface": { + "type": "object", + "description": "Specifies the network interfaces of a bare metal resource.", + "properties": { + "ipAddress": { + "type": "string", + "description": "Specifies the IP address of the network interface." + } + } + }, + "NetworkProfile": { + "type": "object", + "description": "Specifies the network settings for the Azure Bare Metal Instance disks.", + "properties": { + "networkInterfaces": { "type": "array", + "description": "Specifies the network interfaces for the Azure Bare Metal Instance.", "items": { - "$ref": "#/definitions/Disk" + "$ref": "#/definitions/NetworkInterface" }, "x-ms-identifiers": [ - "name" - ], - "description": "Specifies information about the operating system disk used by bare metal instance." + "ipAddress" + ] + }, + "circuitId": { + "type": "string", + "description": "Specifies the circuit id for connecting to express route." } - }, - "description": "Specifies the storage settings for the Azure Bare Metal instance disks." + } }, "OSProfile": { "type": "object", + "description": "Specifies the operating system settings for the Azure Bare Metal instance.", "properties": { "computerName": { "type": "string", @@ -1058,156 +1573,159 @@ "type": "string", "description": "Specifies the SSH public key used to access the operating system." } - }, - "description": "Specifies the operating system settings for the Azure Bare Metal instance." + } }, - "NetworkProfile": { + "OperationStatus": { "type": "object", + "description": "The OperationStatus object returns the state of an asynchronous operation.", "properties": { - "networkInterfaces": { - "type": "array", - "items": { - "$ref": "#/definitions/NetworkInterface" - }, - "x-ms-identifiers": [ - "ipAddress" - ], - "description": "Specifies the network interfaces for the Azure Bare Metal Instance." + "name": { + "type": "string", + "description": "Unique Operation Status Identifier." }, - "circuitId": { + "status": { + "$ref": "#/definitions/AsyncOperationStatus", + "description": "Status of the operation." + }, + "startTime": { "type": "string", - "description": "Specifies the circuit id for connecting to express route." + "description": "Start Time when the operation was initially executed." + }, + "error": { + "$ref": "#/definitions/OperationStatusError", + "description": "An error from the Azure Bare Metal Infrastructure service." } - }, - "description": "Specifies the network settings for the Azure Bare Metal Instance disks." + } }, - "NetworkInterface": { + "OperationStatusError": { "type": "object", + "description": "An error from the Azure Bare Metal Infrastructure service.", "properties": { - "ipAddress": { + "code": { "type": "string", - "description": "Specifies the IP address of the network interface." - } - }, - "description": "Specifies the network interfaces of a bare metal resource." - }, - "AzureBareMetalStorageInstancesListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AzureBareMetalStorageInstance" - }, - "description": "The list of AzureBareMetalStorage instances.", - "x-ms-identifiers": [] + "description": "Server-defined set of error codes." }, - "nextLink": { + "message": { "type": "string", - "description": "The URL to get the next set of AzureBareMetalStorage instances." + "description": "Human-readable representation of the error." } - }, - "description": "The response from the Get AzureBareMetalStorageInstances operation." + } }, - "AzureBareMetalStorageInstance": { - "type": "object", - "x-ms-azure-resource": true, - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AzureBareMetalStorageInstanceProperties", - "description": "AzureBareMetalStorageInstance properties" - }, - "identity": { - "$ref": "#/definitions/AzureBareMetalStorageInstanceIdentity", - "description": "The identity of Azure Bare Metal Storage Instance, if configured." - } + "ProvisioningState": { + "type": "string", + "description": "State of provisioning of the AzureBareMetalStorageInstance", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Canceled", + "Migrating" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Accepted", + "value": "Accepted" + }, + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "Updating", + "value": "Updating" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Deleting", + "value": "Deleting" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Migrating", + "value": "Migrating" + } + ] }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" - } + "readOnly": true + }, + "ResourceIdentityType": { + "type": "string", + "description": "The type of identity used for the Azure Bare Metal Storage Instance. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Azure Bare Metal Storage Instance.", + "enum": [ + "SystemAssigned", + "None" ], - "description": "AzureBareMetalStorageInstance info on Azure (ARM properties and AzureBareMetalStorage properties)" + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": true, + "values": [ + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "None", + "value": "None" + } + ] + } }, - "AzureBareMetalStorageInstanceProperties": { + "StorageBillingProperties": { "type": "object", + "description": "Describes the billing related details of the AzureBareMetalStorageInstance.", "properties": { - "azureBareMetalStorageInstanceUniqueIdentifier": { + "billingMode": { "type": "string", - "description": "Specifies the AzureBareMetaStorageInstance unique ID." - }, - "storageProperties": { - "$ref": "#/definitions/StorageProperties", - "description": "Specifies the storage properties for the AzureBareMetalStorage instance." - } - }, - "description": "Describes the properties of an AzureBareMetalStorageInstance." - }, - "AzureBareMetalStorageInstanceBody": { - "type": "object", - "properties": { - "identity": { - "$ref": "#/definitions/AzureBareMetalStorageInstanceIdentity", - "description": "The identity of Azure Bare Metal Storage Instance, if configured." + "description": "the billing mode for the storage instance" }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Tags field of the AzureBareMetal/AzureBareMetaStorage instance." + "azureBareMetalStorageInstanceSize": { + "type": "string", + "description": "the SKU type that is provisioned" } - }, - "description": "properties of body during PUT/PATCH for an AzureBareMetalStorageInstance." + } }, - "AzureBareMetalStorageInstanceIdentity": { + "StorageProfile": { "type": "object", + "description": "Specifies the storage settings for the Azure Bare Metal instance disks.", "properties": { - "principalId": { - "readOnly": true, - "type": "string", - "description": "The principal ID of Azure Bare Metal Storage Instance identity. This property will only be provided for a system assigned identity." - }, - "tenantId": { - "readOnly": true, + "nfsIpAddress": { "type": "string", - "description": "The tenant ID associated with the Azure Bare Metal Storage Instance. This property will only be provided for a system assigned identity." + "description": "IP Address to connect to storage." }, - "type": { - "type": "string", - "description": "The type of identity used for the Azure Bare Metal Storage Instance. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Azure Bare Metal Storage Instance.", - "enum": [ - "SystemAssigned", - "None" - ], - "x-ms-enum": { - "name": "ResourceIdentityType", - "modelAsString": true - } + "osDisks": { + "type": "array", + "description": "Specifies information about the operating system disk used by bare metal instance.", + "items": { + "$ref": "#/definitions/Disk" + }, + "x-ms-identifiers": [ + "name" + ] } - }, - "description": "Identity for Azure Bare Metal Storage Instance." + } }, "StorageProperties": { "type": "object", + "description": "described the storage properties of the azure bare metal storage instance", "properties": { "provisioningState": { - "type": "string", - "enum": [ - "Accepted", - "Creating", - "Updating", - "Failed", - "Succeeded", - "Deleting", - "Canceled", - "Migrating" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - }, + "$ref": "#/definitions/ProvisioningState", "description": "State of provisioning of the AzureBareMetalStorageInstance" }, "offeringType": { @@ -1234,145 +1752,21 @@ "$ref": "#/definitions/StorageBillingProperties", "description": "the billing related information for the resource" } - }, - "description": "described the storage properties of the azure bare metal storage instance" - }, - "StorageBillingProperties": { - "type": "object", - "properties": { - "billingMode": { - "type": "string", - "description": "the billing mode for the storage instance" - }, - "azureBareMetalStorageInstanceSize": { - "type": "string", - "description": "the SKU type that is provisioned" - } - }, - "description": "Describes the billing related details of the AzureBareMetalStorageInstance." + } }, "Tags": { "type": "object", + "description": "Tags field of the AzureBareMetal/AzureBareMetalStorage instance.", "properties": { "tags": { "type": "object", + "description": "Tags field of the AzureBareMetal/AzureBareMetaStorage instance.", "additionalProperties": { "type": "string" - }, - "description": "Tags field of the AzureBareMetal/AzureBareMetaStorage instance." - } - }, - "description": "Tags field of the AzureBareMetal/AzureBareMetalStorage instance." - }, - "ForceState": { - "type": "object", - "properties": { - "forceState": { - "type": "string", - "enum": [ - "active", - "inactive" - ], - "x-ms-enum": { - "name": "AzureBareMetalInstanceForcePowerState", - "modelAsString": true - }, - "description": "Whether to force restart by shutting all processes." - } - }, - "description": "The active state empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server" - }, - "OperationStatus": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Unique Operation Status Identifier." - }, - "status": { - "type": "string", - "enum": [ - "Requesting", - "Executing", - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "AsyncOperationStatus", - "modelAsString": true - }, - "description": "Status of the operation." - }, - "startTime": { - "type": "string", - "description": "Start Time when the operation was initially executed." - }, - "error": { - "description": "An error from the Azure Bare Metal Infrastructure service.", - "type": "object", - "properties": { - "code": { - "description": "Server-defined set of error codes.", - "type": "string" - }, - "message": { - "description": "Human-readable representation of the error.", - "type": "string" - } } } - }, - "description": "The OperationStatus object returns the state of an asynchronous operation." + } } }, - "parameters": { - "AzureBareMetalInstanceNameParameter": { - "name": "azureBareMetalInstanceName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-zA-Z0-9]+$", - "description": "Name of the Azure Bare Metal Instance, also known as the ResourceName.", - "x-ms-parameter-location": "method" - }, - "AzureBareMetalStorageInstanceNameParameter": { - "name": "azureBareMetalStorageInstanceName", - "in": "path", - "required": true, - "type": "string", - "pattern": ".*", - "description": "Name of the Azure Bare Metal Storage Instance, also known as the ResourceName.", - "x-ms-parameter-location": "method" - }, - "ForcePowerManagementOperationParameter": { - "name": "forceParameter", - "in": "body", - "required": false, - "schema": { - "$ref": "#/definitions/ForceState" - }, - "description": "When set to 'active', this parameter empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server", - "x-ms-parameter-location": "method" - }, - "TagsParameter": { - "name": "tagsParameter", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Tags" - }, - "description": "Request body that only contains the new Tags field", - "x-ms-parameter-location": "method" - }, - "AzureBareMetalStorageInstanceBodyParameter": { - "name": "azureBareMetalStorageInstanceBodyParameter", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AzureBareMetalStorageInstanceBody" - }, - "description": "Request body that only contains the Tags and Identity Field", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Create.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Create.json index 10d2c9bf41ff..6289409cb138 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Create.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Create.json @@ -1,139 +1,139 @@ { "operationId": "AzureBareMetalInstances_Create", - "title": "AzureBareMetalInstance_Create", "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", - "resourceGroupName": "myResourceGroup", "azureBareMetalInstanceName": "myBMIInstance", "requestBodyParameters": { "location": "westus", - "tags": { - "testkey": "testvalue" - }, "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "started", - "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", - "hwRevision": "Rev 3", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 3", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", "networkInterfaces": [ { "ipAddress": "100.100.100.100" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit" - }, - "storageProfile": { - "nfsIpAddress": "200.200.200.200" + ] }, "osProfile": { "computerName": "myComputerName", "osType": "SUSE", - "version": "12 SP1", - "sshPublicKey": "{ssh-rsa public key}" + "sshPublicKey": "{ssh-rsa public key}", + "version": "12 SP1" + }, + "powerState": "started", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" } + }, + "tags": { + "testkey": "testvalue" } - } + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, + "title": "AzureBareMetalInstances_Create", "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myBMIInstance", - "location": "westus", "name": "myBMIInstance", "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", - "tags": { - "testkey": "testvalue" - }, - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" - }, + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myBMIInstance", + "location": "westus", "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "started", - "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", - "hwRevision": "Rev 3", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 3", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", "networkInterfaces": [ { "ipAddress": "100.100.100.100" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit" - }, - "storageProfile": { - "nfsIpAddress": "200.200.200.200" + ] }, "osProfile": { "computerName": "myComputerName", "osType": "SUSE", - "version": "12 SP1", - "sshPublicKey": "{ssh-rsa public key}" + "sshPublicKey": "{ssh-rsa public key}", + "version": "12 SP1" }, - "provisioningState": "Succeeded" - } - } - }, - "200": { - "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myBMIInstance", - "location": "westus", - "name": "myBMIInstance", - "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", - "tags": { - "testkey": "testvalue" + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } }, "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", "createdBy": "user@microsoft.com", "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" + "lastModifiedByType": "User" }, + "tags": { + "testkey": "testvalue" + } + } + }, + "201": { + "body": { + "name": "myBMIInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myBMIInstance", + "location": "westus", "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "started", - "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", - "hwRevision": "Rev 3", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 3", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", "networkInterfaces": [ { "ipAddress": "100.100.100.100" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit" - }, - "storageProfile": { - "nfsIpAddress": "200.200.200.200" + ] }, "osProfile": { "computerName": "myComputerName", "osType": "SUSE", - "version": "12 SP1", - "sshPublicKey": "{ssh-rsa public key}" + "sshPublicKey": "{ssh-rsa public key}", + "version": "12 SP1" }, - "provisioningState": "Succeeded" + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "testkey": "testvalue" } } } } -} +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Delete.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Delete.json index 7857cc349fc5..618667496689 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Delete.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Delete.json @@ -1,14 +1,14 @@ { "operationId": "AzureBareMetalInstances_Delete", - "title": "AzureBareMetalInstances_Delete", "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", + "azureBareMetalInstanceName": "myAzureBareMetalInstance", "resourceGroupName": "myResourceGroup", - "azureBareMetalInstanceName": "myAzureBareMetalInstance" + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, + "title": "AzureBareMetalInstances_Delete", "responses": { "200": {}, "204": {} } -} +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Get.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Get.json index 5bccdf574092..67c42253df92 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Get.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Get.json @@ -1,55 +1,57 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", + "azureBareMetalInstanceName": "myAzureBareMetalInstance", "resourceGroupName": "myResourceGroup", - "azureBareMetalInstanceName": "myAzureBareMetalInstance" + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, "responses": { "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance", - "location": "westus2", "name": "myAzureBareMetalInstance", - "tags": { - "key": "value" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" - }, + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance", + "location": "westus2", "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "restarting", - "hwRevision": "Rev 4.2", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 4.2", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId", "networkInterfaces": [ { "ipAddress": "123.123.123.123" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId" - }, - "storageProfile": { - "nfsIpAddress": "123.123.119.123" + ] }, "osProfile": { "computerName": "myComputerName", "osType": "SLES 12 SP2", "version": "12 SP2" }, - "provisioningState": "Succeeded" + "powerState": "restarting", + "provisioningState": "Succeeded", + "storageProfile": { + "nfsIpAddress": "123.123.119.123" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } } } - } -} + }, + "operationId": "AzureBareMetalInstances_Get", + "title": "Get an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListByResourceGroup.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListByResourceGroup.json index fc2f965a9082..a991d1fd3b27 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListByResourceGroup.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListByResourceGroup.json @@ -1,106 +1,108 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", - "resourceGroupName": "myResourceGroup" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myAzureBareMetalInstance1", "name": "myAzureBareMetalInstance1", "type": "Microsoft.BareMetalInfrastructure/azureBareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myAzureBareMetalInstance1", "location": "westus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" - }, "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "started", - "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", - "hwRevision": "Rev 3", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 3", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", "networkInterfaces": [ { "ipAddress": "100.100.100.100" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit" - }, - "storageProfile": { - "nfsIpAddress": "200.200.200.200" + ] }, "osProfile": { "computerName": "myComputerName1", "osType": "SUSE", - "version": "12 SP1", - "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L" + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" }, - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myABMInstance2", - "name": "myABMInstance2", - "type": "Microsoft.BareMetalInfrastructure/azureBareMetalInstances", - "location": "westus", - "tags": { - "key": "value" + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } }, "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", "createdBy": "user@microsoft.com", "createdByType": "User", - "createdAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-13T08:01:22.1234567Z" + "lastModifiedByType": "User" }, + "tags": { + "key": "value" + } + }, + { + "name": "myABMInstance2", + "type": "Microsoft.BareMetalInfrastructure/azureBareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myABMInstance2", + "location": "westus", "properties": { "azureBareMetalInstanceId": "589bce49-9fe6-4dc8-82df-cf6ae25e0cb9", - "powerState": "started", - "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", - "hwRevision": "Rev 3", "hardwareProfile": { - "hardwareType": "HPE", - "azureBareMetalInstanceSize": "S384" + "azureBareMetalInstanceSize": "S384", + "hardwareType": "HPE" }, + "hwRevision": "Rev 3", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", "networkInterfaces": [ { "ipAddress": "100.100.100.101" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit" - }, - "storageProfile": { - "nfsIpAddress": "200.200.200.201" + ] }, "osProfile": { "computerName": "myComputerName2", "osType": "SUSE", - "version": "12 SP1", - "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L" + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" }, "partnerNodeId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/azureBareMetalInstances/myAzureBareMetalInstance1", - "provisioningState": "Succeeded" + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.201" + } + }, + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } } ] } } - } -} + }, + "operationId": "AzureBareMetalInstances_ListByResourceGroup", + "title": "List all Azure Bare Metal Instances in a resource group" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListBySubscription.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListBySubscription.json index 00a49dffa62c..feda5d2c6dd9 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListBySubscription.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_ListBySubscription.json @@ -8,93 +8,95 @@ "body": { "value": [ { - "id": "/subscriptions/57d3422f-467a-448e-b798-ebf490849542/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance1", - "location": "westus2", "name": "myAzureBareMetalInstance1", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-21T08:01:22.0000000Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-13T08:01:22.1234567Z" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/57d3422f-467a-448e-b798-ebf490849542/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance1", + "location": "westus2", "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "restarting", - "hwRevision": "Rev 4.2", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 4.2", "networkProfile": { + "circuitId": "/subscriptions/57d3422f-467a-448e-b798-ebf490849542/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId", "networkInterfaces": [ { "ipAddress": "123.123.123.123" } - ], - "circuitId": "/subscriptions/57d3422f-467a-448e-b798-ebf490849542/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId" - }, - "storageProfile": { - "nfsIpAddress": "123.123.119.123" + ] }, "osProfile": { "computerName": "myComputerName", "osType": "SLES 12 SP2", "version": "12 SP2" }, - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance2", - "location": "westus2", - "name": "myAzureBareMetalInstance2", - "tags": { - "key": "value" + "powerState": "restarting", + "provisioningState": "Succeeded", + "storageProfile": { + "nfsIpAddress": "123.123.119.123" + } }, "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", "createdBy": "user@microsoft.com", "createdByType": "User", - "createdAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-13T08:01:22.1234567Z" + "lastModifiedByType": "User" }, + "tags": { + "key": "value" + } + }, + { + "name": "myAzureBareMetalInstance2", "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myAzureBareMetalInstance2", + "location": "westus2", "properties": { "azureBareMetalInstanceId": "589bce49-9fe6-4dc8-82df-cf6ae25e0cb9", - "powerState": "restarting", - "hwRevision": "Rev 4.2", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 4.2", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId", "networkInterfaces": [ { "ipAddress": "123.123.123.123" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuits/myCircuitId" - }, - "storageProfile": { - "nfsIpAddress": "123.123.119.123" + ] }, "osProfile": { "computerName": "myComputerName2", "osType": "SLES 12 SP2", "version": "12 SP2" }, - "provisioningState": "Succeeded" + "powerState": "restarting", + "provisioningState": "Succeeded", + "storageProfile": { + "nfsIpAddress": "123.123.119.123" + } + }, + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } } ] } } - } -} + }, + "operationId": "AzureBareMetalInstances_ListBySubscription", + "title": "List all Azure Bare Metal Instances in a subscription" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags.json index 4c0267a8616e..ca07f43c7404 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", - "resourceGroupName": "myResourceGroup", "azureBareMetalInstanceName": "myABMInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", "tagsParameter": { "tags": { "testkey": "testvalue" @@ -13,51 +13,53 @@ "responses": { "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance", "name": "myABMInstance", "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance", "location": "westus", - "tags": { - "testkey": "testvalue" - }, - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" - }, "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "started", - "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", - "hwRevision": "Rev 3", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 3", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", "networkInterfaces": [ { "ipAddress": "100.100.100.100" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit" - }, - "storageProfile": { - "nfsIpAddress": "200.200.200.200" + ] }, "osProfile": { "computerName": "myComputerName", "osType": "SUSE", - "version": "12 SP1", - "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L" + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" }, "partnerNodeId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance2", - "provisioningState": "Succeeded" + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "testkey": "testvalue" } } } - } -} + }, + "operationId": "AzureBareMetalInstances_Update", + "title": "Update Tags field of an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags_Delete.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags_Delete.json index 32073976be2a..1dea0a81ff25 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags_Delete.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_PatchTags_Delete.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", - "resourceGroupName": "myResourceGroup", "azureBareMetalInstanceName": "myABMInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", "tagsParameter": { "tags": {} } @@ -11,49 +11,51 @@ "responses": { "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance", "name": "myABMInstance", "type": "Microsoft.BareMetalInfrastructure/bareMetalInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance", "location": "westus", - "tags": {}, - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" - }, "properties": { "azureBareMetalInstanceId": "23415635-4d7e-41dc-9598-8194f22c24e1", - "powerState": "started", - "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", - "hwRevision": "Rev 3", "hardwareProfile": { - "hardwareType": "Cisco_UCS", - "azureBareMetalInstanceSize": "S72" + "azureBareMetalInstanceSize": "S72", + "hardwareType": "Cisco_UCS" }, + "hwRevision": "Rev 3", "networkProfile": { + "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit", "networkInterfaces": [ { "ipAddress": "100.100.100.100" } - ], - "circuitId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Network/expressRouteCircuit" - }, - "storageProfile": { - "nfsIpAddress": "200.200.200.200" + ] }, "osProfile": { "computerName": "myComputerName", "osType": "SUSE", - "version": "12 SP1", - "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L" + "sshPublicKey": "AAAAB3NzaC1yc2EAAAABJQAAAQB/nAmOjTmezNUDKYvEeIRf2YnwM9/uUG1d0BYsc8/tRtx+RGi7N2lUbp728MXGwdnL9od4cItzky/zVdLZE2cycOa18xBK9cOWmcKS0A8FYBxEQWJ/q9YVUgZbFKfYGaGQxsER+A0w/fX8ALuk78ktP31K69LcQgxIsl7rNzxsoOQKJ/CIxOGMMxczYTiEoLvQhapFQMs3FL96didKr/QbrfB1WT6s3838SEaXfgZvLef1YB2xmfhbT9OXFE3FXvh2UPBfN+ffE7iiayQf/2XR+8j4N4bW30DiPtOQLGUrH1y5X/rpNZNlWW2+jGIxqZtgWg7lTy3mXy5x836Sj/6L", + "version": "12 SP1" }, "partnerNodeId": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalInstances/myABMInstance2", - "provisioningState": "Succeeded" - } + "powerState": "started", + "provisioningState": "Succeeded", + "proximityPlacementGroup": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.Compute/proximityPlacementGroups/myplacementgroup", + "storageProfile": { + "nfsIpAddress": "200.200.200.200" + } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": {} } } - } -} + }, + "operationId": "AzureBareMetalInstances_Update", + "title": "Delete Tags field of an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Restart.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Restart.json index 31cf330e0180..47b8a14fdba4 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Restart.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Restart.json @@ -1,23 +1,23 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", "azureBareMetalInstanceName": "myABMInstance", "forceState": { "state": "active" - } + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-0000000000001", - "status": "InProgress", - "startTime": "2023-08-01T21:17:24.9052926Z", "error": { "code": "", "message": "" - } + }, + "startTime": "2023-08-01T21:17:24.9052926Z", + "status": "InProgress" } }, "202": { @@ -27,5 +27,7 @@ "x-ms-request-id": "00000000-0000-0000-0000-000000000000" } } - } -} + }, + "operationId": "AzureBareMetalInstances_Restart", + "title": "Restart an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Shutdown.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Shutdown.json index 1343f693b3d0..c4684601f11c 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Shutdown.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Shutdown.json @@ -1,20 +1,20 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "azureBareMetalInstanceName": "myABMInstance", "resourceGroupName": "myResourceGroup", - "azureBareMetalInstanceName": "myABMInstance" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000001", - "status": "InProgress", - "startTime": "2023-08-01T21:17:24.9052926Z", "error": { "code": "", "message": "" - } + }, + "startTime": "2023-08-01T21:17:24.9052926Z", + "status": "InProgress" } }, "202": { @@ -24,5 +24,7 @@ "x-ms-request-id": "00000000-0000-0000-0000-000000000000" } } - } -} + }, + "operationId": "AzureBareMetalInstances_Shutdown", + "title": "Shutdown an Azure Bare Metal Instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Start.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Start.json index 1343f693b3d0..70ce1832dd44 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Start.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalInstances_Start.json @@ -1,20 +1,20 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "azureBareMetalInstanceName": "myABMInstance", "resourceGroupName": "myResourceGroup", - "azureBareMetalInstanceName": "myABMInstance" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "00000000-0000-0000-0000-000000000001", - "status": "InProgress", - "startTime": "2023-08-01T21:17:24.9052926Z", "error": { "code": "", "message": "" - } + }, + "startTime": "2023-08-01T21:17:24.9052926Z", + "status": "InProgress" } }, "202": { @@ -24,5 +24,7 @@ "x-ms-request-id": "00000000-0000-0000-0000-000000000000" } } - } -} + }, + "operationId": "AzureBareMetalInstances_Start", + "title": "Start an Azure Bare Metal instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalOperations_List.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalOperations_List.json index 7ceef52f2a36..caf0fb664b35 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalOperations_List.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalOperations_List.json @@ -9,25 +9,27 @@ { "name": "AzureBareMetalOp1", "display": { - "provider": "AzureBareMetalOp1ProviderName", - "resource": "AzureBareMetalOp1ResourceName", + "description": "AzureBareMetalOp1Description", "operation": "AzureBareMetalOp1OperationName", - "description": "AzureBareMetalOp1Description" + "provider": "AzureBareMetalOp1ProviderName", + "resource": "AzureBareMetalOp1ResourceName" }, "isDataAction": false }, { "name": "AzureBareMetalOp2", "display": { - "provider": "AzureBareMetalOp2ProviderName", - "resource": "AzureBareMetalOp2ResourceName", + "description": "AzureBareMetalOp2Description", "operation": "AzureBareMetalOp2OperationName", - "description": "AzureBareMetalOp2Description" + "provider": "AzureBareMetalOp2ProviderName", + "resource": "AzureBareMetalOp2ResourceName" }, "isDataAction": true } ] } } - } -} + }, + "operationId": "Operations_List", + "title": "List all management operations supported by the AzureBareMetal RP" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Create.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Create.json index 076997532ccd..bb126cf50ec4 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Create.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Create.json @@ -1,98 +1,100 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance", "requestBodyParameters": { "location": "westus2", - "tags": { - "key": "value" - }, "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } + }, + "tags": { + "key": "value" } - } + }, + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { - "201": { + "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", - "location": "westus2", "name": "myAzureBareMetalStorageInstance", - "tags": { - "key": "value" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" - }, + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } - } - } - }, - "200": { - "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", - "location": "westus2", - "name": "myAzureBareMetalStorageInstance", - "tags": { - "key": "value" }, - "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", "createdBy": "user@microsoft.com", "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" + "lastModifiedByType": "User" }, + "tags": { + "key": "value" + } + } + }, + "201": { + "body": { + "name": "myAzureBareMetalStorageInstance", + "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } + }, + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } } } - } -} + }, + "operationId": "AzureBareMetalStorageInstances_Create", + "title": "Put a new AzureBareMetalStorageInstance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Delete.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Delete.json index fc19ff3a6470..90f368307a3a 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Delete.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Delete.json @@ -1,12 +1,14 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance", "resourceGroupName": "myResourceGroup", - "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, "204": {} - } -} + }, + "operationId": "AzureBareMetalStorageInstances_Delete", + "title": "Delete an AzureBareMetalStorageInstance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Get.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Get.json index 79923bdeec1f..6943e019707f 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Get.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_Get.json @@ -1,49 +1,51 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", + "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance", "resourceGroupName": "myResourceGroup", - "azureBareMetalStorageInstanceName": "myAzureBareMetalStorageInstance" + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, "responses": { "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", - "location": "westus2", "name": "myAzureBareMetalStorageInstance", - "tags": { - "key": "value" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" }, + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } }, - "identity": { - "type": "SystemAssigned", - "principalId": "", - "tenantId": "" + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } } } - } -} + }, + "operationId": "AzureBareMetalStorageInstances_Get", + "title": "Get an AzureBareMetalStorage instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListByResourceGroup.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListByResourceGroup.json index 71727a51a753..67b1391fe52b 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListByResourceGroup.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListByResourceGroup.json @@ -1,89 +1,91 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", - "resourceGroupName": "myResourceGroup" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance1", - "location": "westus2", "name": "myAzureBareMetalStorageInstance1", - "tags": { - "key": "value" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance1", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" }, + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } }, - "identity": { - "type": "SystemAssigned", - "principalId": "", - "tenantId": "" + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } }, { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance2", - "location": "westus2", "name": "myAzureBareMetalStorageInstance2", - "tags": { - "key": "value" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-21T08:01:22.0000000Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-13T08:01:22.1234567Z" + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance2", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" }, + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24f7", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "NFS", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "Cogito", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "RI", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "RI" + }, + "storageType": "NFS", + "workloadType": "Cogito" } }, - "identity": { - "type": "SystemAssigned", - "principalId": "", - "tenantId": "" + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } } ] } } - } -} + }, + "operationId": "AzureBareMetalStorageInstances_ListByResourceGroup", + "title": "List all AzureBareMetalStorage instances in a resource group" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListBySubscription.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListBySubscription.json index 22d890c33eaa..24c56fdd7f2d 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListBySubscription.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_ListBySubscription.json @@ -8,81 +8,83 @@ "body": { "value": [ { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance1", - "location": "westus2", "name": "myAzureBareMetalStorageInstance1", - "tags": { - "key": "value" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance1", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" }, + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } }, - "identity": { - "type": "SystemAssigned", - "principalId": "", - "tenantId": "" + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } }, { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance2", - "location": "westus2", "name": "myAzureBareMetalStorageInstance2", - "tags": { - "key": "value" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2021-07-21T08:01:22.0000000Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-08-13T08:01:22.1234567Z" + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance2", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" }, + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24f7", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "NFS", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "Cogito", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "RI", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "RI" + }, + "storageType": "NFS", + "workloadType": "Cogito" } }, - "identity": { - "type": "SystemAssigned", - "principalId": "", - "tenantId": "" + "systemData": { + "createdAt": "2021-07-21T08:01:22.0000000Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-08-13T08:01:22.1234567Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "key": "value" } } ] } } - } -} + }, + "operationId": "AzureBareMetalStorageInstances_ListBySubscription", + "title": "List all AzureBareMetalStorage instances in a subscription" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags.json index 9989566b9512..55a3346f09c8 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags.json @@ -1,9 +1,6 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", - "resourceGroupName": "myResourceGroup", - "azureBareMetalStorageInstanceName": "myABMSInstance", "azureBareMetalStorageInstanceBodyParameter": { "identity": { "type": "SystemAssigned" @@ -11,47 +8,52 @@ "tags": { "testkey": "testvalue" } - } + }, + "azureBareMetalStorageInstanceName": "myABMSInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, "responses": { "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", - "location": "westus2", "name": "myAzureBareMetalStorageInstance", - "tags": { - "testkey": "testvalue" - }, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" }, + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } }, - "identity": { - "type": "SystemAssigned", - "principalId": "", - "tenantId": "" + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": { + "testkey": "testvalue" } } } - } -} + }, + "operationId": "AzureBareMetalStorageInstances_Update", + "title": "Update Tags field of an AzureBareMetalStorage instance" +} \ No newline at end of file diff --git a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags_Delete.json b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags_Delete.json index a1f25a4d40be..54c935adb9b6 100644 --- a/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags_Delete.json +++ b/specification/baremetalinfrastructure/resource-manager/Microsoft.BareMetalInfrastructure/preview/2024-08-01-preview/examples/AzureBareMetalStorageInstances_PatchTags_Delete.json @@ -1,9 +1,6 @@ { "parameters": { "api-version": "2024-08-01-preview", - "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd", - "resourceGroupName": "myResourceGroup", - "azureBareMetalStorageInstanceName": "myABMSInstance", "azureBareMetalStorageInstanceBodyParameter": { "identity": { "type": "SystemAssigned" @@ -11,45 +8,50 @@ "tags": { "testkey": "testvalue" } - } + }, + "azureBareMetalStorageInstanceName": "myABMSInstance", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "f0f4887f-d13c-4943-a8ba-d7da28d2a3fd" }, "responses": { "200": { "body": { - "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", - "location": "westus2", "name": "myAzureBareMetalStorageInstance", - "tags": {}, "type": "Microsoft.BareMetalInfrastructure/bareMetalStorageInstances", - "systemData": { - "createdBy": "user@microsoft.com", - "createdByType": "User", - "createdAt": "2020-12-20T23:10:22.6828621Z", - "lastModifiedBy": "user@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-07-21T08:01:22.0000000Z" + "id": "/subscriptions/f0f4887f-d13c-4943-a8ba-d7da28d2a3fd/resourceGroups/myResourceGroup/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/myAzureBareMetalStorageInstance", + "identity": { + "type": "SystemAssigned", + "principalId": "", + "tenantId": "" }, + "location": "westus2", "properties": { "azureBareMetalStorageInstanceUniqueIdentifier": "23415635-4d7e-41dc-9598-8194f22c24e9", "storageProperties": { - "provisioningState": "Succeeded", - "offeringType": "EPIC", - "storageType": "FC", "generation": "Gen4", "hardwareType": "NetApp", - "workloadType": "ODB", + "offeringType": "EPIC", + "provisioningState": "Succeeded", "storageBillingProperties": { - "billingMode": "PAYG", - "azureBareMetalStorageInstanceSize": "" - } + "azureBareMetalStorageInstanceSize": "", + "billingMode": "PAYG" + }, + "storageType": "FC", + "workloadType": "ODB" } }, - "identity": { - "type": "SystemAssigned", - "principalId": "", - "tenantId": "" - } + "systemData": { + "createdAt": "2020-12-20T23:10:22.6828621Z", + "createdBy": "user@microsoft.com", + "createdByType": "User", + "lastModifiedAt": "2021-07-21T08:01:22.0000000Z", + "lastModifiedBy": "user@microsoft.com", + "lastModifiedByType": "User" + }, + "tags": {} } } - } -} + }, + "operationId": "AzureBareMetalStorageInstances_Update", + "title": "Delete Tags field of an AzureBareMetalStorage instance" +} \ No newline at end of file