diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp new file mode 100644 index 000000000000..611943235f68 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp @@ -0,0 +1,33 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./VirtualMachineInstance.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.AzureStackHCI; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The attestation status of the virtual machine") +@singleton("default") +@parentResource(VirtualMachineInstance) +@includeInapplicableMetadataInPayload(false) +model AttestationStatus is ProxyResource { + @doc("Name of attestation status") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @key("attestationStatus") + @segment("attestationStatus") + @visibility("read") + @path + name: string; +} + +@armResourceOperations +interface AttestationStatuses { + @doc("Implements AttestationStatus GET method.") + get is ArmResourceRead; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp new file mode 100644 index 000000000000..e46cd9ce02da --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp @@ -0,0 +1,51 @@ +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.AzureStackHCI; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The gallery images resource definition.") +@extension("x-ms-azure-resource", true) +@extension("x-ms-client-flatten", true) +model GalleryImage is TrackedResource { + @doc("Name of the gallery image") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("galleryImageName") + @segment("galleryImages") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; +} + +@armResourceOperations(GalleryImage) +interface GalleryImages { + @doc("Gets a gallery image") + get is ArmResourceRead; + + @doc("The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("The operation to update a gallery image.") + @parameterVisibility + update is ArmCustomPatchAsync; + + @doc("The operation to delete a gallery image.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Lists all of the gallery images in the specified resource group. Use the nextLink property in the response to get the next page of gallery images.") + list is ArmResourceListByParent; + + @doc("Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.") + listAll is ArmListBySubscription; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp new file mode 100644 index 000000000000..e8cb4b5f819f --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp @@ -0,0 +1,41 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./VirtualMachineInstance.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.AzureStackHCI; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("Defines the GuestAgent.") +@singleton("default") +@parentResource(VirtualMachineInstance) +model GuestAgent is ProxyResource { + @doc("guestAgent name") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @key("guestAgent") + @segment("guestAgents") + @visibility("read") + @path + name: string; +} + +@armResourceOperations +interface GuestAgents { + @doc("Implements GuestAgent GET method.") + get is ArmResourceRead; + + @doc("Create Or Update GuestAgent.") + create is ArmResourceCreateOrReplaceAsync; + + @doc("Implements GuestAgent DELETE method.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Returns the list of GuestAgent of the given vm.") + list is ArmResourceListByParent; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp new file mode 100644 index 000000000000..f6c7cb5dc404 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp @@ -0,0 +1,40 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@azure-tools/typespec-client-generator-core"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./VirtualMachineInstance.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.AzureStackHCI; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("Defines the HybridIdentityMetadata.") +@extension("x-ms-azure-resource", true) +@singleton("default") +@parentResource(VirtualMachineInstance) +model HybridIdentityMetadata + is ProxyResource { + @doc("Name of the hybrididentitymetadata") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @key("hybridIdentityMetadatum") + @segment("hybridIdentityMetadata") + @visibility("read") + @path + name: string; +} + +@armResourceOperations +@Azure.ClientGenerator.Core.clientName("HybridIdentityMetadata") +interface HybridIdentityMetadataGroup { + @doc("Implements HybridIdentityMetadata GET method.") + get is ArmResourceRead; + + @doc("Returns the list of HybridIdentityMetadata of the given vm.") + list is ArmResourceListByParent; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp new file mode 100644 index 000000000000..9b01a62dd7cc --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp @@ -0,0 +1,51 @@ +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.AzureStackHCI; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The logical network resource definition.") +@extension("x-ms-azure-resource", true) +@extension("x-ms-client-flatten", true) +model LogicalNetwork is TrackedResource { + @doc("Name of the logical network") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("logicalNetworkName") + @segment("logicalNetworks") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; +} + +@armResourceOperations +interface LogicalNetworks { + @doc("The operation to get a logical network.") + get is ArmResourceRead; + + @doc("The operation to create or update a logical network. Please note some properties can be set only during logical network creation.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("The operation to update a logical network.") + @parameterVisibility + update is ArmCustomPatchAsync; + + @doc("The operation to delete a logical network.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Lists all of the logical networks in the specified resource group. Use the nextLink property in the response to get the next page of logical networks.") + list is ArmResourceListByParent; + + @doc("Lists all of the logical networks in the specified subscription. Use the nextLink property in the response to get the next page of logical networks.") + listAll is ArmListBySubscription; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp new file mode 100644 index 000000000000..470b9fab0733 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp @@ -0,0 +1,52 @@ +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.AzureStackHCI; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The marketplace gallery image resource definition.") +@extension("x-ms-azure-resource", true) +@extension("x-ms-client-flatten", true) +model MarketplaceGalleryImage + is TrackedResource { + @doc("Name of the marketplace gallery image") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("marketplaceGalleryImageName") + @segment("marketplaceGalleryImages") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; +} + +@armResourceOperations +interface MarketplaceGalleryImages { + @doc("Gets a marketplace gallery image") + get is ArmResourceRead; + + @doc("The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("The operation to update a marketplace gallery image.") + @parameterVisibility + update is ArmCustomPatchAsync; + + @doc("The operation to delete a marketplace gallery image.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Lists all of the marketplace gallery images in the specified resource group. Use the nextLink property in the response to get the next page of marketplace gallery images.") + list is ArmResourceListByParent; + + @doc("Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property in the response to get the next page of marketplace gallery images.") + listAll is ArmListBySubscription; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp new file mode 100644 index 000000000000..b181201c789c --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp @@ -0,0 +1,51 @@ +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.AzureStackHCI; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The network interface resource definition.") +@extension("x-ms-azure-resource", true) +@extension("x-ms-client-flatten", true) +model NetworkInterface is TrackedResource { + @doc("Name of the network interface") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("networkInterfaceName") + @segment("networkInterfaces") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; +} + +@armResourceOperations +interface NetworkInterfaces { + @doc("Gets a network interface") + get is ArmResourceRead; + + @doc("The operation to create or update a network interface. Please note some properties can be set only during network interface creation.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("The operation to update a network interface.") + @parameterVisibility + update is ArmCustomPatchAsync; + + @doc("The operation to delete a network interface.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Lists all of the network interfaces in the specified resource group. Use the nextLink property in the response to get the next page of network interfaces.") + list is ArmResourceListByParent; + + @doc("Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.") + listAll is ArmListBySubscription; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp new file mode 100644 index 000000000000..8de6fc091382 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp @@ -0,0 +1,48 @@ +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; + +namespace Microsoft.AzureStackHCI; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("NetworkSecurityGroup resource.") +model NetworkSecurityGroup is TrackedResource { + @doc("Name of the network security group") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("networkSecurityGroupName") + @segment("networkSecurityGroups") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; + + ...EntityTagProperty; +} + +@armResourceOperations +interface NetworkSecurityGroups { + @doc("Gets the specified network security group.") + get is ArmResourceRead; + + @doc("Creates or updates a network security group in the specified resource group.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Updates a network security group tags.") + updateTags is ArmTagsPatchAsync; + + @doc("Deletes the specified network security group.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Gets all network security groups in a resource group.") + list is ArmResourceListByParent; + + @doc("Gets all network security groups in a subscription.") + listAll is ArmListBySubscription; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp new file mode 100644 index 000000000000..4563d65e5c59 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp @@ -0,0 +1,41 @@ +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; + +namespace Microsoft.AzureStackHCI; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("Security Rule resource.") +@parentResource(NetworkSecurityGroup) +model SecurityRule is ProxyResource { + @doc("Name of the security rule.") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("securityRuleName") + @segment("securityRules") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; +} + +@armResourceOperations +interface SecurityRules { + @doc("Gets the specified security rule.") + get is ArmResourceRead; + + @doc("Creates or updates a security rule in the specified resource group.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("Deletes the specified security rule.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Gets all security rules in a Network Security Group.") + list is ArmResourceListByParent; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp new file mode 100644 index 000000000000..f81302304026 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp @@ -0,0 +1,49 @@ +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.AzureStackHCI; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The storage container resource definition.") +@extension("x-ms-azure-resource", true) +@extension("x-ms-client-flatten", true) +model StorageContainer is TrackedResource { + @doc("Name of the storage container") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("storageContainerName") + @segment("storageContainers") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; +} + +@armResourceOperations +interface StorageContainers { + @doc("Gets a storage container") + get is ArmResourceRead; + + @doc("The operation to create or update a storage container. Please note some properties can be set only during storage container creation.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("The operation to update a storage container.") + update is ArmTagsPatchAsync; + + @doc("The operation to delete a storage container.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Lists all of the storage containers in the specified resource group. Use the nextLink property in the response to get the next page of storage containers.") + list is ArmResourceListByParent; + + @doc("Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to get the next page of storage containers.") + listAll is ArmListBySubscription; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp new file mode 100644 index 000000000000..4123b2ea6ca7 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp @@ -0,0 +1,50 @@ +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.AzureStackHCI; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The virtual hard disk resource definition.") +@extension("x-ms-azure-resource", true) +@extension("x-ms-client-flatten", true) +model VirtualHardDisk is TrackedResource { + @doc("Name of the virtual hard disk") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @path + @key("virtualHardDiskName") + @segment("virtualHardDisks") + @visibility("read") + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; +} + +@armResourceOperations +interface VirtualHardDisks { + @doc("Gets a virtual hard disk") + get is ArmResourceRead; + + @doc("The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("The operation to update a virtual hard disk.") + update is ArmTagsPatchAsync; + + @doc("The operation to delete a virtual hard disk.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to get the next page of virtual hard disks.") + list is ArmResourceListByParent; + + @doc("Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.") + listAll is ArmListBySubscription; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp new file mode 100644 index 000000000000..177c79c2491f --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp @@ -0,0 +1,84 @@ +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.AzureStackHCI; +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" +@doc("The virtual machine instance resource definition.") +@extension("x-ms-azure-resource", true) +@extension("x-ms-client-flatten", true) +@singleton("default") +model VirtualMachineInstance + is ExtensionResource { + @doc("name of virtual machine") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") + @key("virtualMachineInstance") + @segment("virtualMachineInstances") + @visibility("read") + @path + name: string; + + @doc("The extendedLocation of the resource.") + extendedLocation?: ExtendedLocation; + + ...ManagedServiceIdentityProperty; +} + +@armResourceOperations +interface VirtualMachineInstances { + @doc("Gets a virtual machine instance") + get is ArmResourceRead; + + @doc("The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + @doc("The operation to update a virtual machine instance.") + @parameterVisibility + update is ArmCustomPatchAsync< + VirtualMachineInstance, + VirtualMachineInstanceUpdateRequest + >; + + @doc("The operation to delete a virtual machine instance.") + delete is ArmResourceDeleteWithoutOkAsync; + + @doc("Lists all of the virtual machine instances within the specified parent resource.") + list is ArmResourceListByParent; + + @doc("The operation to start a virtual machine instance.") + start is ArmResourceActionNoResponseContentAsync< + VirtualMachineInstance, + Request = void + >; + + @doc("The operation to stop a virtual machine instance.") + stop is ArmResourceActionNoResponseContentAsync< + VirtualMachineInstance, + Request = void + >; + + @doc("The operation to restart a virtual machine instance.") + restart is ArmResourceActionNoResponseContentAsync< + VirtualMachineInstance, + Request = void + >; + + @doc("The operation to pause a virtual machine instance.") + pause is ArmResourceActionNoResponseContentAsync< + VirtualMachineInstance, + Request = void + >; + + @doc("The operation to save a virtual machine instance.") + save is ArmResourceActionNoResponseContentAsync< + VirtualMachineInstance, + Request = void + >; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/AttestationStatuses_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/AttestationStatuses_Get.json new file mode 100644 index 000000000000..c73ee3617166 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/AttestationStatuses_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/AttestationStatus", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/attestationStatus/default", + "properties": { + "attestSecureBootEnabled": "Disabled", + "attestationCertValidated": "Invalid", + "bootIntegrityValidated": "Invalid", + "errorMessage": "Attestation token has invalid signature", + "healthStatus": "Unhealthy", + "linuxKernelVersion": "1.0.0.0", + "timestamp": "2023/11/10 9:48" + } + } + } + }, + "operationId": "AttestationStatuses_Get", + "title": "GetAttestationStatus" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_CreateOrUpdate.json new file mode 100644 index 000000000000..625e304ccbcf --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_CreateOrUpdate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "imagePath": "C:\\test.vhdx", + "osType": "Linux" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + }, + "201": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Succeeded", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "GalleryImages_CreateOrUpdate", + "title": "PutGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Delete.json new file mode 100644 index 000000000000..f55433c2b81c --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "GalleryImages_Delete", + "title": "DeleteGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Get.json new file mode 100644 index 000000000000..7932b63e4ec3 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Get.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "GalleryImages_Get", + "title": "GetGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_ListAll.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_ListAll.json new file mode 100644 index 000000000000..588342065cff --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_ListAll.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "GalleryImages_ListAll", + "title": "ListGalleryImageBySubscription" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_ListByResourceGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_ListByResourceGroup.json new file mode 100644 index 000000000000..2870831af86e --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_ListByResourceGroup.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "GalleryImages_ListByResourceGroup", + "title": "ListGalleryImageByResourceGroup" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Update.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Update.json new file mode 100644 index 000000000000..035f0e6a8376 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GalleryImages_Update.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "GalleryImages_Update", + "title": "UpdateGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Create.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Create.json new file mode 100644 index 000000000000..fb3503d12fa1 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Create.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resource": { + "properties": { + "credentials": { + "password": "", + "username": "tempuser" + }, + "provisioningAction": "install" + } + }, + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Succeeded", + "status": "connected" + } + } + }, + "201": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Created", + "status": "connected" + } + } + } + }, + "operationId": "GuestAgents_Create", + "title": "CreateGuestAgent" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Delete.json new file mode 100644 index 000000000000..7edd761afd32 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "GuestAgents_Delete", + "title": "DeleteGuestAgent" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Get.json new file mode 100644 index 000000000000..e350bcf9a21c --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Succeeded", + "status": "connected" + } + } + } + }, + "operationId": "GuestAgents_Get", + "title": "GetGuestAgent" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_ListByVirtualMachineInstance.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_ListByVirtualMachineInstance.json new file mode 100644 index 000000000000..763ed44a39d3 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/GuestAgents_ListByVirtualMachineInstance.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Succeeded", + "status": "connected" + } + } + ] + } + } + }, + "operationId": "GuestAgents_ListByVirtualMachineInstance", + "title": "GuestAgentListByVirtualMachineInstances" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/HybridIdentityMetadataGroup_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/HybridIdentityMetadataGroup_Get.json new file mode 100644 index 000000000000..b8e26dcf12ef --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/HybridIdentityMetadataGroup_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/hybridIdentityMetadata", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default", + "properties": { + "identity": { + "type": "SystemAssigned", + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d" + }, + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2" + } + } + } + }, + "operationId": "HybridIdentityMetadata_Get", + "title": "GetHybridIdentityMetadata" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/HybridIdentityMetadata_ListByVirtualMachineInstance.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/HybridIdentityMetadata_ListByVirtualMachineInstance.json new file mode 100644 index 000000000000..f8900e2f6774 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/HybridIdentityMetadata_ListByVirtualMachineInstance.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/hybridIdentityMetadata", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default", + "properties": { + "identity": { + "type": "SystemAssigned", + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d" + }, + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2" + } + } + ] + } + } + }, + "operationId": "HybridIdentityMetadata_ListByVirtualMachineInstance", + "title": "HybridIdentityMetadataListByVirtualMachineInstances" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_CreateOrUpdate.json new file mode 100644 index 000000000000..56e12010fb82 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_CreateOrUpdate.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "resource": { + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2" + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "LogicalNetworks_CreateOrUpdate", + "title": "PutLogicalNetwork" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Delete.json new file mode 100644 index 000000000000..a994c9ddbbf2 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "LogicalNetworks_Delete", + "title": "DeleteLogicalNetwork" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Get.json new file mode 100644 index 000000000000..1726a541ecb3 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "LogicalNetworks_Get", + "title": "GetLogicalNetwork" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_ListAll.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_ListAll.json new file mode 100644 index 000000000000..ac0cb9f62bd0 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_ListAll.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "LogicalNetworks_ListAll", + "title": "ListLogicalNetworkBySubscription" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_ListByResourceGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_ListByResourceGroup.json new file mode 100644 index 000000000000..43fd5e75fe77 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_ListByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "LogicalNetworks_ListByResourceGroup", + "title": "ListLogicalNetworkByResourceGroup" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Update.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Update.json new file mode 100644 index 000000000000..bd3b62dc7c54 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/LogicalNetworks_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "LogicalNetworks_Update", + "title": "UpdateLogicalNetwork" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_CreateOrUpdate.json new file mode 100644 index 000000000000..f4c9ee0355e5 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_CreateOrUpdate.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "name": "test-marketplace-gallery-image", + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "version": { + "name": "1.0.0" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 0, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + }, + "201": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Creating", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "MarketplaceGalleryImages_CreateOrUpdate", + "title": "PutMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Delete.json new file mode 100644 index 000000000000..d307ea1f339c --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "MarketplaceGalleryImages_Delete", + "title": "DeleteMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Get.json new file mode 100644 index 000000000000..20e91c809e31 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Get.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "MarketplaceGalleryImages_Get", + "title": "GetMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_ListAll.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_ListAll.json new file mode 100644 index 000000000000..a1c2ecc5c23e --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_ListAll.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "MarketplaceGalleryImages_ListAll", + "title": "ListMarketplaceGalleryImageBySubscription" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_ListByResourceGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_ListByResourceGroup.json new file mode 100644 index 000000000000..98a8d0f6358b --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_ListByResourceGroup.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "MarketplaceGalleryImages_ListByResourceGroup", + "title": "ListMarketplaceGalleryImageByResourceGroup" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Update.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Update.json new file mode 100644 index 000000000000..591e5d00baa1 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/MarketplaceGalleryImages_Update.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplce-gallery-image", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 0, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "MarketplaceGalleryImages_Update", + "title": "UpdateMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_CreateOrUpdate.json new file mode 100644 index 000000000000..d1d6a94cb097 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_CreateOrUpdate.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "eastus", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ] + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "NetworkInterfaces_CreateOrUpdate", + "title": "PutNetworkInterface" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Delete.json new file mode 100644 index 000000000000..849a2fa55d23 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkInterfaces_Delete", + "title": "DeleteNetworkInterface" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Get.json new file mode 100644 index 000000000000..0ba891a6e316 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "NetworkInterfaces_Get", + "title": "GetNetworkInterface" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_ListAll.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_ListAll.json new file mode 100644 index 000000000000..877649fb00fd --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_ListAll.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "NetworkInterfaces_ListAll", + "title": "ListNetworkInterfaceBySubscription" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_ListByResourceGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_ListByResourceGroup.json new file mode 100644 index 000000000000..7ad9a7e22ec2 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_ListByResourceGroup.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "NetworkInterfaces_ListByResourceGroup", + "title": "ListNetworkInterfaceByResourceGroup" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Update.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Update.json new file mode 100644 index 000000000000..b492fca2b844 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkInterfaces_Update.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkInterfaces_Update", + "title": "UpdateNetworkInterface" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_CreateOrUpdate.json new file mode 100644 index 000000000000..25dd85ff1ddb --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_CreateOrUpdate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resource": { + "location": "eastus" + }, + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "NetworkSecurityGroups_CreateOrUpdate", + "title": "CreateNetworkSecurityGroup" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_Delete.json new file mode 100644 index 000000000000..6cf6a0d2a421 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkSecurityGroups_Delete", + "title": "Delete network security group" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_Get.json new file mode 100644 index 000000000000..6e89c13d91b8 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "NetworkSecurityGroups_Get", + "title": "Get network security group" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_ListAll.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_ListAll.json new file mode 100644 index 000000000000..43a1fe797c7e --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_ListAll.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsg1", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg1", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "name": "nsg2", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/rg2/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg2", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + }, + "operationId": "NetworkSecurityGroups_ListAll", + "title": "List all network security groups" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_ListByResourceGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_ListByResourceGroup.json new file mode 100644 index 000000000000..05f46cfd5b5b --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_ListByResourceGroup.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsg1", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg1", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "name": "nsg3", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg3", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + }, + "operationId": "NetworkSecurityGroups_ListByResourceGroup", + "title": "List network security groups in resource group" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_UpdateTags.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_UpdateTags.json new file mode 100644 index 000000000000..ea3c52fac399 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/NetworkSecurityGroups_UpdateTags.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "properties": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkSecurityGroups_UpdateTags", + "title": "Update network security group tags" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/Operations_List.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/Operations_List.json new file mode 100644 index 000000000000..4a5ff103d84a --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/Operations_List.json @@ -0,0 +1,305 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Deletes virtual hard disk resource", + "description": "Deletes virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Creates/Updates virtual hard disk resource", + "description": "Creates/Updates virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Gets/Lists virtual hard disk resource", + "description": "Gets/Lists virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Deletes network interfaces resource", + "description": "Deletes network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Creates/Updates network interfaces resource", + "description": "Creates/Updates network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Gets/Lists network interfaces resource", + "description": "Gets/Lists network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Deletes gallery images resource", + "description": "Deletes gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Creates/Updates gallery images resource", + "description": "Creates/Updates gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Gets/Lists gallery images resource", + "description": "Gets/Lists gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/HybridIdentityMetadata/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/HybridIdentityMetadata", + "operation": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource", + "description": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/attestationStatus/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/attestationStatus", + "operation": "Gets/Lists virtual machine instance's attestation status", + "description": "Gets/Lists virtual machine instance's attestation status" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Deletes logical networks resource", + "description": "Deletes logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Creates/Updates logical networks resource", + "description": "Creates/Updates logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Gets/Lists logical networks resource", + "description": "Gets/Lists logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/join/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Joins logical networks resource", + "description": "Joins logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Restart/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Restarts virtual machine instance resource", + "description": "Restarts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Start/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Starts virtual machine instance resource", + "description": "Starts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Stop/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Stops virtual machine instance resource", + "description": "Stops virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Deletes virtual machine instance resource", + "description": "Deletes virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Creates/Updates virtual machine instance resource", + "description": "Creates/Updates virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Gets/Lists virtual machine instance resource", + "description": "Gets/Lists virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deletes storage containers resource", + "description": "Deletes storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Creates/Updates storage containers resource", + "description": "Creates/Updates storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Gets/Lists storage containers resource", + "description": "Gets/Lists storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deploys storage containers resource", + "description": "Deploys storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deletes market place gallery images resource", + "description": "Deletes market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Creates/Updates market place gallery images resource", + "description": "Creates/Updates market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Gets/Lists market place gallery images resource", + "description": "Gets/Lists market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deploys market place gallery images resource", + "description": "Deploys market place gallery images resource" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "List the operations for the provider." +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_CreateOrUpdate.json new file mode 100644 index 000000000000..3f4e58c8721d --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_CreateOrUpdate.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "securityRuleName": "rule1", + "resource": { + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + }, + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + }, + "201": { + "body": { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + } + }, + "operationId": "SecurityRules_CreateOrUpdate", + "title": "SecurityRulesCreateOrUpdate" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_Delete.json new file mode 100644 index 000000000000..4e2d69c17dff --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_Delete.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "testrg", + "securityRuleName": "rule1", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "SecurityRules_Delete", + "title": "SecurityRulesDelete" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_Get.json new file mode 100644 index 000000000000..c78dd2d79668 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "testrg", + "securityRuleName": "rule1", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + } + }, + "operationId": "SecurityRules_Get", + "title": "Get network security rule in network security group" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_ListByNetworkSecurityGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_ListByNetworkSecurityGroup.json new file mode 100644 index 000000000000..3263f0e4f323 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/SecurityRules_ListByNetworkSecurityGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + ] + } + } + }, + "operationId": "SecurityRules_ListByNetworkSecurityGroup", + "title": "List network security rules in network security group" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_CreateOrUpdate.json new file mode 100644 index 000000000000..8a4444585098 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_CreateOrUpdate.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "path": "C:\\container_storage" + } + }, + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "StorageContainers_CreateOrUpdate", + "title": "PutStorageContainer" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Delete.json new file mode 100644 index 000000000000..2200c4db8fbc --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "StorageContainers_Delete", + "title": "DeleteStorageContainer" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Get.json new file mode 100644 index 000000000000..567027da24f5 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "StorageContainers_Get", + "title": "GetStorageContainer" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_ListAll.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_ListAll.json new file mode 100644 index 000000000000..c072a84422f1 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_ListAll.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "StorageContainers_ListAll", + "title": "ListStorageContainerBySubscription" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_ListByResourceGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_ListByResourceGroup.json new file mode 100644 index 000000000000..2976d038e253 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_ListByResourceGroup.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "StorageContainers_ListByResourceGroup", + "title": "ListStorageContainerByResourceGroup" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Update.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Update.json new file mode 100644 index 000000000000..f6868128d23c --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/StorageContainers_Update.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "StorageContainers_Update", + "title": "UpdateStorageContainer" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_CreateOrUpdate.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_CreateOrUpdate.json new file mode 100644 index 000000000000..d2f44d5c884c --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_CreateOrUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "diskSizeGB": 32 + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "VirtualHardDisks_CreateOrUpdate", + "title": "PutVirtualHardDisk" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Delete.json new file mode 100644 index 000000000000..541cb195b39e --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualHardDisks_Delete", + "title": "DeleteVirtualHardDisk" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Get.json new file mode 100644 index 000000000000..aeb4a697e8dd --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd" + }, + "responses": { + "200": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "VirtualHardDisks_Get", + "title": "GetVirtualHardDisk" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_ListAll.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_ListAll.json new file mode 100644 index 000000000000..615a36633889 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_ListAll.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "VirtualHardDisks_ListAll", + "title": "ListVirtualHardDiskBySubscription" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_ListByResourceGroup.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_ListByResourceGroup.json new file mode 100644 index 000000000000..fa8b428580f9 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "VirtualHardDisks_ListByResourceGroup", + "title": "ListVirtualHardDiskByResourceGroup" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Update.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Update.json new file mode 100644 index 000000000000..1ae3c83ac98b --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualHardDisks_Update.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd", + "properties": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualHardDisks_Update", + "title": "UpdateVirtualHardDisk" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Gallery_Image.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Gallery_Image.json new file mode 100644 index 000000000000..a91320df1aa6 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Gallery_Image.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminPassword": "password", + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Succeeded", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Marketplace_Gallery_Image.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Marketplace_Gallery_Image.json new file mode 100644 index 000000000000..d69de8202af0 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Marketplace_Gallery_Image.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminPassword": "password", + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Succeeded", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Os_Disk.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Os_Disk.json new file mode 100644 index 000000000000..b969d236e308 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Os_Disk.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "provisioningState": "Succeeded", + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithOsDisk" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Vm_Config_Agent.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Vm_Config_Agent.json new file mode 100644 index 000000000000..ad29a53df4f9 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Vm_Config_Agent.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminPassword": "password", + "adminUsername": "localadmin", + "computerName": "luamaster", + "windowsConfiguration": { + "provisionVMConfigAgent": true + } + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "instanceView": { + "vmAgent": { + "statuses": [ + { + "code": "Ok", + "displayStatus": "Ok", + "level": "Info", + "message": "The agent is healthy", + "time": "2009-06-15T13:45:30" + } + ], + "vmConfigAgentVersion": "1.0.0" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "instanceView": { + "vmAgent": { + "statuses": [ + { + "code": "Ok", + "displayStatus": "Ok", + "level": "Info", + "message": "The agent is healthy", + "time": "2009-06-15T13:45:30" + } + ], + "vmConfigAgentVersion": "1.0.0" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Succeeded", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithVMConfigAgent" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Delete.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Delete.json new file mode 100644 index 000000000000..cb0fdb58b717 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Delete", + "title": "DeleteVirtualMachine" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Get.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Get.json new file mode 100644 index 000000000000..85bee1c16d3e --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Get.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_Get", + "title": "GetVirtualMachineInstance" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_List.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_List.json new file mode 100644 index 000000000000..a8b6f203e211 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_List.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + ] + } + } + }, + "operationId": "VirtualMachineInstances_List", + "title": "ListVirtualMachineInstances" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Pause.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Pause.json new file mode 100644 index 000000000000..2972c7be6d73 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Pause.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Pause", + "title": "PauseVirtualMachine" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Restart.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Restart.json new file mode 100644 index 000000000000..cbe832ef1eb8 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Restart.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Restart", + "title": "RestartVirtualMachine" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Save.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Save.json new file mode 100644 index 000000000000..9c3a010fa826 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Save.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Save", + "title": "SaveVirtualMachine" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Start.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Start.json new file mode 100644 index 000000000000..363ab5468eb3 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Start.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Start", + "title": "StartVirtualMachine" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Stop.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Stop.json new file mode 100644 index 000000000000..cb301a5be1b0 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Stop.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Stop", + "title": "StopVirtualMachine" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Update.json b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Update.json new file mode 100644 index 000000000000..13610e656a93 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/examples/2024-02-01-preview/VirtualMachineInstances_Update.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "properties": { + "properties": { + "storageProfile": { + "dataDisks": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "storageProfile": { + "dataDisks": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + } + ], + "imageReference": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + } + } + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Update", + "title": "UpdateVirtualMachine" +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/main.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/main.tsp new file mode 100644 index 000000000000..296bc8508433 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/main.tsp @@ -0,0 +1,48 @@ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@azure-tools/typespec-client-generator-core"; +import "./models.tsp"; +import "./GalleryImages.tsp"; +import "./LogicalNetworks.tsp"; +import "./MarketplaceGalleryImages.tsp"; +import "./NetworkInterfaces.tsp"; +import "./NetworkSecurityGroups.tsp"; +import "./SecurityRules.tsp"; +import "./StorageContainers.tsp"; +import "./VirtualHardDisks.tsp"; +import "./VirtualMachineInstance.tsp"; +import "./HybridIdentityMetadata.tsp"; +import "./AttestationStatus.tsp"; +import "./GuestAgent.tsp"; +import "../Operations.Management/models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * Azure Stack HCI management service + */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "HCI itself is a short form." +@armProviderNamespace +@service({ + title: "Microsoft.AzureStackHCI", +}) +@versioned(Versions) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) +namespace Microsoft.AzureStackHCI; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2024-02-01-preview API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2024_02_01_preview: "2024-02-01-preview", +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp new file mode 100644 index 000000000000..74430122d563 --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp @@ -0,0 +1,1599 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@typespec/openapi"; +import "@azure-tools/typespec-azure-resource-manager"; +import "../Operations.Management/models.tsp"; +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using TypeSpec.OpenAPI; +using Azure.ResourceManager; + +namespace Microsoft.AzureStackHCI; + +@doc("Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]") +union CloudInitDataSource { + @doc("NoCloud is used as the datasource") + NoCloud: "NoCloud", + + @doc("Azure is used as the datasource") + Azure: "Azure", + + string, +} + +@doc("The hypervisor generation of the Virtual Machine [V1, V2]") +union HyperVGeneration { + @doc("Generation 1 (V1) hypervisor") + V1: "V1", + + @doc("Generation 2 (V2) hypervisor") + V2: "V2", + + string, +} + +@doc("Provisioning state of the resource.") +union ProvisioningStateEnum { + @doc("Provisioning has succeeded") + Succeeded: "Succeeded", + + @doc("Provisioning has failed") + Failed: "Failed", + + @doc("Provisioning is in progress") + InProgress: "InProgress", + + @doc("Provisioning has been accepted") + Accepted: "Accepted", + + @doc("Deletion of the resource is in progress") + Deleting: "Deleting", + + @doc("Provisioning has been canceled") + Canceled: "Canceled", + + string, +} + +@doc("The status of the operation performed on the resource [Succeeded, Failed, InProgress]") +union Status { + @doc("Operation succeeded") + Succeeded: "Succeeded", + + @doc("Operation failed") + Failed: "Failed", + + @doc("Operation is in progress") + InProgress: "InProgress", + + string, +} + +@doc("The type of extendedLocation.") +union ExtendedLocationTypes { + @doc("Custom extended location type") + CustomLocation: "CustomLocation", + + string, +} + +@doc("IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'") +union IpAllocationMethodEnum { + @doc("Dynamic IP allocation method") + Dynamic: "Dynamic", + + @doc("Static IP allocation method") + Static: "Static", + + string, +} + +@doc("Network protocol this rule applies to.") +union SecurityRuleProtocol { + @doc("Transmission Control Protocol") + Tcp: "Tcp", + + @doc("User Datagram Protocol") + Udp: "Udp", + + @doc("Internet Control Message Protocol") + Icmp: "Icmp", + + @doc("Wildcard rule for all protocols") + Asterisk: "*", + + string, +} + +@doc("Whether network traffic is allowed or denied.") +union SecurityRuleAccess { + @doc("Network traffic is allowed") + Allow: "Allow", + + @doc("Network traffic is denied") + Deny: "Deny", + + string, +} + +@doc("The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.") +union SecurityRuleDirection { + @doc("Rule is evaluated on incoming traffic") + Inbound: "Inbound", + + @doc("Rule is evaluated on outgoing traffic") + Outbound: "Outbound", + + string, +} + +@doc("The format of the actual VHD file [vhd, vhdx]") +union DiskFileFormat { + @doc("VHDX file format") + vhdx: "vhdx", + + @doc("VHD file format") + vhd: "vhd", + + string, +} + +@doc("VM Sizes") +union VmSizeEnum { + @doc("Default virtual machine size") + Default: "Default", + + @doc("Standard A2 v2 virtual machine size") + Standard_A2_v2: "Standard_A2_v2", + + @doc("Standard A4 v2 virtual machine size") + Standard_A4_v2: "Standard_A4_v2", + + @doc("Standard D2s v3 virtual machine size") + Standard_D2s_v3: "Standard_D2s_v3", + + @doc("Standard D4s v3 virtual machine size") + Standard_D4s_v3: "Standard_D4s_v3", + + @doc("Standard D8s v3 virtual machine size") + Standard_D8s_v3: "Standard_D8s_v3", + + @doc("Standard D16s v3 virtual machine size") + Standard_D16s_v3: "Standard_D16s_v3", + + @doc("Standard D32s v3 virtual machine size") + Standard_D32s_v3: "Standard_D32s_v3", + + @doc("Standard DS2 v2 virtual machine size") + Standard_DS2_v2: "Standard_DS2_v2", + + @doc("Standard DS3 v2 virtual machine size") + Standard_DS3_v2: "Standard_DS3_v2", + + @doc("Standard DS4 v2 virtual machine size") + Standard_DS4_v2: "Standard_DS4_v2", + + @doc("Standard DS5 v2 virtual machine size") + Standard_DS5_v2: "Standard_DS5_v2", + + @doc("Standard DS13 v2 virtual machine size") + Standard_DS13_v2: "Standard_DS13_v2", + + @doc("Standard K8S v1 virtual machine size") + Standard_K8S_v1: "Standard_K8S_v1", + + @doc("Standard K8S2 v1 virtual machine size") + Standard_K8S2_v1: "Standard_K8S2_v1", + + @doc("Standard K8S3 v1 virtual machine size") + Standard_K8S3_v1: "Standard_K8S3_v1", + + @doc("Standard K8S4 v1 virtual machine size") + Standard_K8S4_v1: "Standard_K8S4_v1", + + @doc("Standard NK6 virtual machine size") + Standard_NK6: "Standard_NK6", + + @doc("Standard NK12 virtual machine size") + Standard_NK12: "Standard_NK12", + + @doc("Standard NV6 virtual machine size") + Standard_NV6: "Standard_NV6", + + @doc("Standard NV12 virtual machine size") + Standard_NV12: "Standard_NV12", + + @doc("Standard K8S5 v1 virtual machine size") + Standard_K8S5_v1: "Standard_K8S5_v1", + + @doc("Custom virtual machine size") + Custom: "Custom", + + string, +} + +@doc("Specifies the SecurityType of the virtual machine. EnableTPM and SecureBootEnabled must be set to true for SecurityType to function.") +union SecurityTypes { + @doc("Trusted Launch security type") + TrustedLaunch: "TrustedLaunch", + + @doc("Confidential VM security type") + ConfidentialVM: "ConfidentialVM", + + string, +} + +@doc("The level code.") +union StatusLevelTypes { + @doc("Informational status level") + Info: "Info", + + @doc("Warning status level") + Warning: "Warning", + + @doc("Error status level") + Error: "Error", + + string, +} + +@doc("The power state of the virtual machine instance") +union PowerStateEnum { + @doc("Virtual machine deallocated") + Deallocated: "Deallocated", + + @doc("Virtual machine deallocating") + Deallocating: "Deallocating", + + @doc("Virtual machine running") + Running: "Running", + + @doc("Virtual machine starting") + Starting: "Starting", + + @doc("Virtual machine stopped") + Stopped: "Stopped", + + @doc("Virtual machine stopping") + Stopping: "Stopping", + + @doc("Virtual machine paused") + Paused: "Paused", + + @doc("Virtual machine Saved,") + Saved: "Saved", + + @doc("Power state of the virtual machine is unknown") + Unknown: "Unknown", + + string, +} + +@doc("The installation status of the hybrid machine agent installation.") +union StatusTypes { + @doc("Installation succeeded") + Succeeded: "Succeeded", + + @doc("Installation in progress") + InProgress: "InProgress", + + @doc("Installation failed") + Failed: "Failed", + + string, +} + +@doc("The status of whether secure boot is enabled.") +union AttestSecureBootPropertyEnum { + @doc("Secure boot enabled") + Enabled: "Enabled", + + @doc("Secure boot disabled") + Disabled: "Disabled", + + @doc("Secure boot status is unknown") + Unknown: "Unknown", + + string, +} + +@doc("The status of whether attestation certificate is validated.") +union AttestCertPropertyEnum { + @doc("Attestation certificate is valid") + Valid: "Valid", + + @doc("Attestation certificate is invalid") + Invalid: "Invalid", + + @doc("Attestation certificate status is unknown") + Unknown: "Unknown", + + string, +} + +@doc("The status of whether the list of boot integrity properties is validated.") +union AttestBootIntegrityPropertyEnum { + @doc("Boot integrity properties are valid") + Valid: "Valid", + + @doc("Boot integrity properties are invalid") + Invalid: "Invalid", + + @doc("Boot integrity properties status is unknown") + Unknown: "Unknown", + + string, +} + +@doc("The health status of attestation validation and parsing") +union AttestHealthStatusEnum { + @doc("Attestation validation and parsing pending") + Pending: "Pending", + + @doc("Attestation validation and parsing healthy") + Healthy: "Healthy", + + @doc("Attestation validation and parsing unhealthy") + Unhealthy: "Unhealthy", + + @doc("Attestation validation and parsing status is unknown") + Unknown: "Unknown", + + string, +} + +@doc("Defines the different types of operations for guest agent.") +union ProvisioningAction { + @doc("Install guest agent") + install: "install", + + @doc("Uninstall guest agent") + uninstall: "uninstall", + + @doc("Repair guest agent") + repair: "repair", + + string, +} + +@doc("Operating system type that the gallery image uses [Windows, Linux]") +union OperatingSystemTypes { + @doc("Windows operating system") + Windows: "Windows", + + @doc("Linux operating system") + Linux: "Linux", + + string, +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." +@doc("Type of the IP Pool [vm, vippool]") +union IPPoolTypeEnum { + @doc("Virtual Machine IP Pool") + vm: "vm", + + @doc("VIP Pool") + vippool: "vippool", + + string, +} + +@doc("The ARM ID for a Network Interface.") +model NetworkInterfaceArmReference { + @doc("The ARM ID for a Network Interface.") + id?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/networkInterfaces"; + } + ]>; +} +@doc("The ARM ID for a Network Interface.") +model SubnetIpConfigurationReference { + #suppress "@azure-tools/typespec-azure-core/casing-style" "ID is already shipped. Changing the casing is a breaking change." + @doc("The ARM ID for a Network Interface.") + ID?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/networkInterfaces"; + } + ]>; +} + +@doc("The ARM ID for a Network Security Group.") +model NetworkSecurityGroupArmReference { + @doc("The ARM ID for a Network Security Group.") + id?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/networkSecurityGroups"; + } + ]>; +} + +@doc("The ARM ID for a Logical Network.") +model LogicalNetworkArmReference { + @doc("The ARM ID for a Logical Network.") + id?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/logicalNetworks"; + } + ]>; +} + +@doc("The ARM ID for a Virtual Machine.") +model VirtualMachineArmReference { + @doc("The ARM ID for a Virtual Machine.") + id?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/virtualMachineInstance"; + } + ]>; +} + +@doc("The ARM ID for a Storage Container.") +model StorageContainerArmReference { + @doc("The ARM ID for a Storage Container.") + id?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/storageContainers"; + } + ]>; +} + +@doc("The ARM ID for a Gallery Image.") +model ImageArmReference { + @doc("The ARM ID for an image resource used by the virtual machine instance.") + @visibility("create", "read") + id?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/galleryImages"; + }, + { + type: "Microsoft.AzureStackHCI/marketplaceGalleryImages"; + } + ]>; +} + +@doc("The ARM ID for a Virtual Hard Disk.") +model VirtualHardDiskArmReference { + @doc("The ARM ID for a Virtual Hard Disk.") + id?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/virtualHardDisks"; + } + ]>; +} + +@doc("Properties under the gallery image resource") +model GalleryImageProperties { + @doc("Storage ContainerID of the storage container to be used for gallery image") + containerId?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/storageContainers"; + } + ]>; + + @doc("location of the image the gallery image should be created from") + @secret + imagePath?: string; + + @doc("Operating system type that the gallery image uses [Windows, Linux]") + osType: OperatingSystemTypes; + + @doc("Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]") + cloudInitDataSource?: CloudInitDataSource; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "HyperV is the correct case." + @doc("The hypervisor generation of the Virtual Machine [V1, V2]") + hyperVGeneration?: HyperVGeneration; + + @doc("This is the gallery image definition identifier.") + identifier?: GalleryImageIdentifier; + + @doc("Specifies information about the gallery image version that you want to create or update.") + version?: GalleryImageVersion; + + @doc("Provisioning state of the gallery image.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; + + @doc("The observed state of gallery images") + @visibility("read") + status?: GalleryImageStatus; +} + +@doc("This is the gallery image definition identifier.") +model GalleryImageIdentifier { + @doc("The name of the gallery image definition publisher.") + publisher: string; + + @doc("The name of the gallery image definition offer.") + offer: string; + + @doc("The name of the gallery image definition SKU.") + sku: string; +} + +@doc("Specifies information about the gallery image version that you want to create or update.") +model GalleryImageVersion { + @doc("This is the version of the gallery image.") + name?: string; + + @doc("Describes the properties of a gallery image version.") + @extension("x-ms-client-flatten", true) + properties?: GalleryImageVersionProperties; +} + +@doc("Describes the properties of a gallery image version.") +model GalleryImageVersionProperties { + @doc("This is the storage profile of a Gallery Image Version.") + storageProfile: GalleryImageVersionStorageProfile; +} + +@doc("This is the storage profile of a Gallery Image Version.") +model GalleryImageVersionStorageProfile { + @doc("This is the OS disk image.") + osDiskImage?: GalleryOSDiskImage; +} + +@doc("This is the disk image base class.") +model GalleryDiskImage { + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("This property indicates the size of the VHD to be created.") + @visibility("read") + sizeInMB?: int64; +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "OS is a short form. GalleryOSDiskImage is the correct case." +@doc("This is the OS disk image.") +model GalleryOSDiskImage { + ...GalleryDiskImage; + // Add additional properties specific to GalleryOSDiskImage if needed +} + +@doc("The observed state of gallery images") +@extension("x-ms-client-flatten", true) +model GalleryImageStatus { + @doc("GalleryImage provisioning error code") + errorCode?: string; + + @doc("Descriptive error message") + errorMessage?: string; + + @doc("provisioning status of the gallery image") + provisioningStatus?: GalleryImageStatusProvisioningStatus; + + @doc("The download status of the gallery image") + downloadStatus?: GalleryImageStatusDownloadStatus; + + @doc("The progress of the operation in percentage") + progressPercentage?: int64; +} + +@doc("The status of the operation performed on the gallery image") +model GalleryImageStatusProvisioningStatus { + @doc("The ID of the operation performed on the gallery image") + operationId?: string; + + @doc("The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]") + status?: Status; +} + +@doc("The download status of the gallery image") +model GalleryImageStatusDownloadStatus { + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB should be referenced as MB." + @doc("The downloaded sized of the image in MB") + downloadSizeInMB?: int64; +} + +@doc("The complex type of the extended location.") +model ExtendedLocation { + @doc("The name of the extended location.") + name?: string; + + @doc("The type of the extended location.") + type?: ExtendedLocationTypes; +} + +@doc("The gallery images resource patch definition.") +model GalleryImagesUpdateRequest { + @doc("Resource tags") + tags?: Record; +} + +@doc("Properties under the logical network resource") +model LogicalNetworkProperties { + @doc("DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options.") + dhcpOptions?: LogicalNetworkPropertiesDhcpOptions; + + @doc("Subnet - list of subnets under the logical network") + @OpenAPI.extension("x-ms-identifiers", []) + subnets?: Subnet[]; + + @doc("Provisioning state of the logical network.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; + + @doc("name of the network switch to be used for VMs") + vmSwitchName?: string; + + @doc("The observed state of logical networks") + @visibility("read") + status?: LogicalNetworkStatus; +} + +@doc("DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options.") +model LogicalNetworkPropertiesDhcpOptions { + @doc("The list of DNS servers IP addresses.") + dnsServers?: string[]; +} + +@doc("Properties of the subnet.") +model Subnet { + @doc("Properties of the subnet.") + @extension("x-ms-client-flatten", true) + properties?: SubnetProperties; + + @doc("Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$") + name?: string; +} + +@doc("Properties of the subnet.") +model SubnetProperties { + @doc("The address prefix for the subnet: Cidr for this subnet - IPv4, IPv6.") + addressPrefix?: string; + + @doc("List of address prefixes for the subnet.") + addressPrefixes?: string[]; + + @doc("IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'") + ipAllocationMethod?: IpAllocationMethodEnum; + + @doc("IPConfigurationReferences - list of IPConfigurationReferences") + @extension("x-ms-identifiers", []) + ipConfigurationReferences?: SubnetIpConfigurationReference[]; + + @doc("NetworkSecurityGroup - Network Security Group attached to the logical network.") + networkSecurityGroup?: NetworkSecurityGroupArmReference; + + @doc("Route table resource.") + routeTable?: RouteTable; + + @doc("network associated pool of IP Addresses") + @extension("x-ms-identifiers", []) + ipPools?: IPPool[]; + + @doc("Vlan to use for the subnet") + vlan?: int32; +} + +@doc("Route table resource.") +model RouteTable { + @doc("A unique read-only string that changes whenever the resource is updated.") + @visibility("read") + etag?: string; + + @doc("Resource name.") + @visibility("read") + name?: string; + + @doc("Resource type.") + @visibility("read") + type?: string; + + @doc("Properties of the route table.") + @extension("x-ms-client-flatten", true) + properties?: RouteTableProperties; +} + +@doc("RouteTablePropertiesFormat - Route Table resource.") +model RouteTableProperties { + @doc("Collection of routes contained within a route table.") + @extension("x-ms-identifiers", []) + routes?: Route[]; +} + +@doc("Route - Route resource.") +model Route { + @doc("Properties of the route.") + @extension("x-ms-client-flatten", true) + properties?: RouteProperties; + + @doc("Name - name of the subnet") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$") + name?: string; +} + +@doc("RoutePropertiesFormat - Route resource.") +model RouteProperties { + @doc("The destination CIDR to which the route applies.") + addressPrefix?: string; + + @doc("The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.") + nextHopIpAddress?: string; +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." +@doc("Describes IPPool") +model IPPool { + @doc("Name of the IP-Pool") + name?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." + @doc("Type of the IP Pool [vm, vippool]") + ipPoolType?: IPPoolTypeEnum; + + @doc("Start of the IP address pool") + start?: string; + + @doc("End of the IP address pool") + end?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." + @doc("IPPool info") + info?: IPPoolInfo; +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." +@doc("IP Pool info") +model IPPoolInfo { + @doc("Number of IP addresses allocated from the IP Pool") + @visibility("read") + used?: string; + + @doc("Number of IP addresses available in the IP Pool") + @visibility("read") + available?: string; +} + +@doc("Network Security Group resource.") +model NetworkSecurityGroupProperties { + @doc("A collection of references to network interfaces that are currently using this NSG.") + @visibility("read") + @extension("x-ms-identifiers", []) + networkInterfaces?: NetworkInterfaceArmReference[]; + + @doc("A collection of references to logical networks that are currently using this NSG") + @visibility("read") + subnets?: LogicalNetworkArmReference[]; + + @doc("The provisioning state of the network security group resource.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; +} + +@doc("Security rule resource.") +model SecurityRuleProperties { + @doc("A description for this rule. Restricted to 140 chars.") + description?: string; + + @doc("Network protocol this rule applies to.") + protocol: SecurityRuleProtocol; + + @doc("The CIDR or source IP ranges.") + sourceAddressPrefixes?: string[]; + + @doc("The destination address prefixes. CIDR or destination IP ranges.") + destinationAddressPrefixes?: string[]; + + @doc("The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.") + sourcePortRanges?: string[]; + + @doc("The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.") + destinationPortRanges?: string[]; + + @doc("The network traffic is allowed or denied.") + access: SecurityRuleAccess; + + @doc("The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.") + priority: int32; + + @doc("The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.") + direction: SecurityRuleDirection; + + @doc("Provisioning state of the SR") + @visibility("read") + provisioningState?: ProvisioningStateEnum; +} + +@doc("Properties under the network interface resource") +model NetworkInterfaceProperties { + @doc("IPConfigurations - A list of IPConfigurations of the network interface.") + @extension("x-ms-identifiers", []) + ipConfigurations?: IPConfiguration[]; + + @doc("MacAddress - The MAC address of the network interface.") + macAddress?: string; + + @doc("DNS Settings for the interface") + dnsSettings?: InterfaceDNSSettings; + + @doc("Provisioning state of the network interface.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; + + @doc("The observed state of network interfaces") + @visibility("read") + status?: NetworkInterfaceStatus; + + @doc("NetworkSecurityGroup - Network Security Group attached to the network interface.") + networkSecurityGroup?: NetworkSecurityGroupArmReference; +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." +@doc("InterfaceIPConfiguration IPConfiguration in a network interface.") +@extension("x-ms-client-flatten", true) +model IPConfiguration { + @doc("Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.") + @visibility("read", "create") + @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$") + name?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." + @doc("InterfaceIPConfigurationPropertiesFormat properties of IP configuration.") + properties?: IPConfigurationProperties; +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." +@doc("InterfaceIPConfigurationPropertiesFormat properties of IP configuration.") +model IPConfigurationProperties { + @doc("Gateway for network interface") + @visibility("read") + gateway?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." + @doc("prefixLength for network interface") + @visibility("read") + prefixLength?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." + @doc("PrivateIPAddress - Private IP address of the IP configuration.") + privateIPAddress?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." + @doc("Subnet - Name of Subnet bound to the IP configuration.") + subnet?: LogicalNetworkArmReference; +} + +#suppress "@azure-tools/typespec-azure-core/casing-style" "DNS is a short form. The casing is correct." +@doc("DNS Settings of the interface") +model InterfaceDNSSettings { + @doc("List of DNS server IP Addresses for the interface") + dnsServers?: string[]; +} + +@doc("The observed state of network interfaces") +@extension("x-ms-client-flatten", true) +model NetworkInterfaceStatus { + @doc("NetworkInterface provisioning error code") + errorCode?: string; + + @doc("Descriptive error message") + errorMessage?: string; + + @doc("Network interface provisioning status") + provisioningStatus?: NetworkInterfaceStatusProvisioningStatus; +} + +@doc("Network interface provisioning status") +model NetworkInterfaceStatusProvisioningStatus { + @doc("The ID of the operation performed on the network interface") + operationId?: string; + + @doc("The status of the operation performed on the network interface [Succeeded, Failed, InProgress]") + status?: Status; +} + +@doc("The observed state of logical networks") +@extension("x-ms-client-flatten", true) +model LogicalNetworkStatus { + @doc("LogicalNetwork provisioning error code") + errorCode?: string; + + @doc("Descriptive error message") + errorMessage?: string; + + @doc("Logical network provisioning status") + provisioningStatus?: LogicalNetworkStatusProvisioningStatus; +} + +@doc("Describes the status of the provisioning.") +model LogicalNetworkStatusProvisioningStatus { + @doc("The ID of the operation performed on the logical network") + operationId?: string; + + @doc("The status of the operation performed on the logical network [Succeeded, Failed, InProgress]") + status?: Status; +} + +@doc("The logical network resource patch definition.") +model LogicalNetworksUpdateRequest { + @doc("Resource tags") + tags?: Record; +} + +@doc("Properties under the marketplace gallery image resource") +model MarketplaceGalleryImageProperties { + @doc("Storage ContainerID of the storage container to be used for marketplace gallery image") + containerId?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/storageContainers"; + } + ]>; + + @doc("Operating system type that the gallery image uses [Windows, Linux]") + osType: OperatingSystemTypes; + + @doc("Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]") + cloudInitDataSource?: CloudInitDataSource; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "HyperV is the correct case." + @doc("The hypervisor generation of the Virtual Machine [V1, V2]") + hyperVGeneration?: HyperVGeneration; + + @doc("This is the gallery image definition identifier.") + identifier?: GalleryImageIdentifier; + + @doc("Specifies information about the gallery image version that you want to create or update.") + version?: GalleryImageVersion; + + @doc("Provisioning state of the marketplace gallery image.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; + + @doc("The observed state of marketplace gallery images") + @visibility("read") + status?: MarketplaceGalleryImageStatus; +} + +@doc("The observed state of marketplace gallery images") +@extension("x-ms-client-flatten", true) +model MarketplaceGalleryImageStatus { + @doc("MarketplaceGalleryImage provisioning error code") + errorCode?: string; + + @doc("Descriptive error message") + errorMessage?: string; + + @doc("Provisioning status of marketplace gallery image") + provisioningStatus?: MarketplaceGalleryImageStatusProvisioningStatus; + + @doc("The download status of the gallery image") + downloadStatus?: MarketplaceGalleryImageStatusDownloadStatus; + + @doc("The progress of the operation in percentage") + progressPercentage?: int64; +} + +@doc("Marketplace GalleryImage provisioning status") +model MarketplaceGalleryImageStatusProvisioningStatus { + @doc("The ID of the operation performed on the gallery image") + operationId?: string; + + @doc("The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]") + status?: Status; +} + +@doc("The download status of the gallery image") +model MarketplaceGalleryImageStatusDownloadStatus { + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("The downloaded sized of the image in MB") + downloadSizeInMB?: int64; +} + +@doc("The marketplace gallery image resource patch definition.") +model MarketplaceGalleryImagesUpdateRequest { + @doc("Resource tags") + tags?: Record; +} + +@doc("The network interface resource patch definition.") +model NetworkInterfacesUpdateRequest { + @doc("Resource tags") + tags?: Record; +} + +@doc("Tags object for patch operations.") +model TagsObject { + @doc("Resource tags.") + tags?: Record; +} + +@doc("Properties under the storage container resource") +model StorageContainerProperties { + @doc("Path of the storage container on the disk") + path: string; + + @doc("Provisioning state of the storage container.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; + + @doc("The observed state of storage containers") + @visibility("read") + status?: StorageContainerStatus; +} + +@doc("The observed state of storage containers") +@extension("x-ms-client-flatten", true) +model StorageContainerStatus { + @doc("StorageContainer provisioning error code") + errorCode?: string; + + @doc("Descriptive error message") + errorMessage?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("Amount of space available on the disk in MB") + availableSizeMB?: int64; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("Total size of the disk in MB") + containerSizeMB?: int64; + + @doc("Storage container's provisioning status") + provisioningStatus?: StorageContainerStatusProvisioningStatus; +} + +@doc("Storage container provisioning status") +model StorageContainerStatusProvisioningStatus { + @doc("The ID of the operation performed on the storage container") + operationId?: string; + + @doc("The status of the operation performed on the storage container [Succeeded, Failed, InProgress]") + status?: Status; +} + +@doc("The storage container resource patch definition.") +model StorageContainersUpdateRequest { + @doc("Resource tags") + tags?: Record; +} + +@doc("Properties under the virtual hard disk resource") +model VirtualHardDiskProperties { + @doc("Block size in bytes") + blockSizeBytes?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is a short form." + @doc("Size of the disk in GB") + diskSizeGB?: int64; + + @doc("Boolean for enabling dynamic sizing on the virtual hard disk") + dynamic?: boolean; + + @doc("Logical sector in bytes") + logicalSectorBytes?: int32; + + @doc("Physical sector in bytes") + physicalSectorBytes?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "HyperV is the correct case." + @doc("The hypervisor generation of the Virtual Machine [V1, V2]") + hyperVGeneration?: HyperVGeneration; + + @doc("The format of the actual VHD file [vhd, vhdx]") + diskFileFormat?: DiskFileFormat; + + @doc("Provisioning state of the virtual hard disk.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; + + @doc("Storage ContainerID of the storage container to be used for VHD") + containerId?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/storageContainers"; + } + ]>; + + @doc("The observed state of virtual hard disks") + @visibility("read") + status?: VirtualHardDiskStatus; +} + +@doc("The observed state of virtual hard disks") +@extension("x-ms-client-flatten", true) +model VirtualHardDiskStatus { + @doc("VirtualHardDisk provisioning error code") + errorCode?: string; + + @doc("Descriptive error message") + errorMessage?: string; + + @doc("Provisioning status of the vhd") + provisioningStatus?: VirtualHardDiskStatusProvisioningStatus; +} + +@doc("VHD Status provisioning status") +model VirtualHardDiskStatusProvisioningStatus { + @doc("The ID of the operation performed on the virtual hard disk") + operationId?: string; + + @doc("The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]") + status?: Status; +} + +@doc("The virtual hard disk resource patch definition.") +model VirtualHardDisksUpdateRequest { + @doc("Resource tags") + tags?: Record; +} + +@doc("Properties under the virtual machine instance resource") +model VirtualMachineInstanceProperties { + @doc("HardwareProfile - Specifies the hardware settings for the virtual machine instance.") + hardwareProfile?: VirtualMachineInstancePropertiesHardwareProfile; + + @doc("NetworkProfile - describes the network configuration the virtual machine instance") + networkProfile?: VirtualMachineInstancePropertiesNetworkProfile; + + @doc("OsProfile - describes the configuration of the operating system and sets login data") + osProfile?: VirtualMachineInstancePropertiesOsProfile; + + @doc("SecurityProfile - Specifies the security settings for the virtual machine instance.") + securityProfile?: VirtualMachineInstancePropertiesSecurityProfile; + + @doc("StorageProfile - contains information about the disks and storage information for the virtual machine instance") + storageProfile?: VirtualMachineInstancePropertiesStorageProfile; + + @doc("HTTP Proxy configuration for the VM.") + httpProxyConfig?: HttpProxyConfiguration; + + @doc("Provisioning state of the virtual machine instance.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; + + @doc("The virtual machine instance view.") + @visibility("read") + instanceView?: VirtualMachineInstanceView; + + @doc("The observed state of virtual machine instances") + @visibility("read") + status?: VirtualMachineInstanceStatus; + + @doc("Guest agent install status.") + guestAgentInstallStatus?: GuestAgentInstallStatus; + + @doc("Unique identifier for the vm resource.") + @visibility("read") + vmId?: string; + + @doc("Unique identifier defined by ARC to identify the guest of the VM.") + resourceUid?: string; +} + +@doc("HardwareProfile - Specifies the hardware settings for the virtual machine instance.") +model VirtualMachineInstancePropertiesHardwareProfile { + @doc("Enum of VM Sizes") + vmSize?: VmSizeEnum = VmSizeEnum.Default; + + @doc("number of processors for the virtual machine instance") + processors?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("RAM in MB for the virtual machine instance") + memoryMB?: int64; + + @doc("Dynamic memory config") + dynamicMemoryConfig?: VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig; +} + +@doc("Dynamic memory config") +model VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig { + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("Maximum memory in MB") + maximumMemoryMB?: int64; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("Minimum memory in MB") + minimumMemoryMB?: int64; + + @doc("Defines the amount of extra memory that should be reserved for a virtual machine instance at runtime, as a percentage of the total memory that the virtual machine instance is thought to need. This only applies to virtual systems with dynamic memory enabled. This property can be in the range of 5 to 2000.") + targetMemoryBuffer?: int32; +} + +@doc("NetworkProfile - describes the network configuration the virtual machine instance") +model VirtualMachineInstancePropertiesNetworkProfile { + @doc("NetworkInterfaces - list of network interfaces to be attached to the virtual machine instance") + @extension("x-ms-identifiers", []) + networkInterfaces?: NetworkInterfaceArmReference[]; +} + +@doc("OsProfile - describes the configuration of the operating system and sets login data") +model VirtualMachineInstancePropertiesOsProfile { + @doc("AdminPassword - admin password") + @visibility("create") + @secret + adminPassword?: string; + + @doc("AdminUsername - admin username") + adminUsername?: string; + + @doc("ComputerName - name of the compute") + computerName?: string; + + @doc("LinuxConfiguration - linux specific configuration values for the virtual machine instance") + linuxConfiguration?: VirtualMachineInstancePropertiesOsProfileLinuxConfiguration; + + @doc("Windows Configuration for the virtual machine instance") + windowsConfiguration?: VirtualMachineInstancePropertiesOsProfileWindowsConfiguration; +} + +@doc("LinuxConfiguration - linux specific configuration values for the virtual machine instance") +model VirtualMachineInstancePropertiesOsProfileLinuxConfiguration { + @doc("DisablePasswordAuthentication - whether password authentication should be disabled") + disablePasswordAuthentication?: boolean; + + @doc("Specifies the ssh key configuration for a Linux OS.") + ssh?: SshConfiguration; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process.") + provisionVMAgent?: boolean = true; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process.") + provisionVMConfigAgent?: boolean = true; +} + +@doc("SSH configuration for Linux based VMs running on Azure") +model SshConfiguration { + @doc("The list of SSH public keys used to authenticate with linux based VMs.") + @extension("x-ms-identifiers", ["path"]) + publicKeys?: SshPublicKey[]; +} + +@doc("Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.") +model SshPublicKey { + @doc("Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys") + path?: string; + + @doc("SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).") + keyData?: string; +} + +@doc("Windows Configuration for the virtual machine instance") +model VirtualMachineInstancePropertiesOsProfileWindowsConfiguration { + @doc("Whether to EnableAutomaticUpdates on the machine") + enableAutomaticUpdates?: boolean; + + @doc("Specifies the ssh key configuration for Windows OS.") + ssh?: SshConfiguration; + + @doc("TimeZone for the virtual machine instance") + timeZone?: string; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process.") + provisionVMAgent?: boolean = true; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process.") + provisionVMConfigAgent?: boolean = true; +} + +@doc("SecurityProfile - Specifies the security settings for the virtual machine instance.") +model VirtualMachineInstancePropertiesSecurityProfile { + #suppress "@azure-tools/typespec-azure-core/casing-style" "TPM is a short form. It is the correct case" + @doc("Enable TPM flag") + enableTPM?: boolean = false; + + @doc("Uefi settings of the virtual machine instance") + uefiSettings?: VirtualMachineInstancePropertiesSecurityProfileUefiSettings; + + @doc("Specifies the SecurityType of the virtual machine. EnableTPM and SecureBootEnabled must be set to true for SecurityType to function.") + securityType?: SecurityTypes; +} + +@doc("Uefi settings - Specifies whether secure boot should be enabled on the virtual machine instance.") +model VirtualMachineInstancePropertiesSecurityProfileUefiSettings { + @doc("Specifies whether secure boot should be enabled on the virtual machine instance.") + secureBootEnabled?: boolean = false; +} + +@doc("StorageProfile - contains information about the disks and storage information for the virtual machine instance") +model VirtualMachineInstancePropertiesStorageProfile { + @doc("adds data disks to the virtual machine instance") + dataDisks?: VirtualHardDiskArmReference[]; + + @doc("Which Image to use for the virtual machine instance") + @visibility("read", "create") + imageReference?: ImageArmReference; + + @doc("VHD to attach as OS disk") + osDisk?: VirtualMachineInstancePropertiesStorageProfileOsDisk; + + @doc("Id of the storage container that hosts the VM configuration file") + vmConfigStoragePathId?: armResourceIdentifier<[ + { + type: "Microsoft.AzureStackHCI/storageContainers"; + } + ]>; +} + +@doc("VHD to attach as OS disk") +model VirtualMachineInstancePropertiesStorageProfileOsDisk + is VirtualHardDiskArmReference { + @doc("This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: Windows, Linux.") + osType?: OperatingSystemTypes; +} + +@doc("HTTP Proxy configuration for the VM.") +model HttpProxyConfiguration { + @doc("The HTTP proxy server endpoint to use.") + @secret + httpProxy?: string; + + @doc("The HTTPS proxy server endpoint to use.") + @secret + httpsProxy?: string; + + @doc("The endpoints that should not go through proxy.") + noProxy?: string[]; + + @doc("Alternative CA cert to use for connecting to proxy servers.") + trustedCa?: string; +} + +@doc("The instance view of a virtual machine.") +model VirtualMachineInstanceView { + @doc("The VM Config Agent running on the virtual machine.") + vmAgent?: VirtualMachineConfigAgentInstanceView; +} + +@doc("The instance view of the VM Config Agent running on the virtual machine.") +model VirtualMachineConfigAgentInstanceView { + @doc("The VM Config Agent full version.") + vmConfigAgentVersion?: string; + + @doc("The resource status information.") + @extension("x-ms-identifiers", []) + statuses?: InstanceViewStatus[]; +} + +@doc("Instance view status.") +model InstanceViewStatus { + @doc("The status code.") + code?: string; + + @doc("The level code.") + level?: StatusLevelTypes; + + @doc("The short localizable label for the status.") + displayStatus?: string; + + @doc("The detailed status message, including for alerts and error messages.") + message?: string; + + @doc("The time of the status.") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + time?: utcDateTime; +} + +@doc("The observed state of virtual machine instances") +@extension("x-ms-client-flatten", true) +model VirtualMachineInstanceStatus { + @doc("VirtualMachine provisioning error code") + errorCode?: string; + + @doc("Descriptive error message") + errorMessage?: string; + + @doc("The power state of the virtual machine instance") + powerState?: PowerStateEnum; + + @doc("Provisioning status of the virtual machine instance") + provisioningStatus?: VirtualMachineInstanceStatusProvisioningStatus; +} + +@doc("Virtual machine instance provisioning status.") +model VirtualMachineInstanceStatusProvisioningStatus { + @doc("The ID of the operation performed on the virtual machine instance") + operationId?: string; + + @doc("The status of the operation performed on the virtual machine instance [Succeeded, Failed, InProgress]") + status?: Status; +} + +@doc("Defines the status of a guest agent installation.") +model GuestAgentInstallStatus { + @doc("Specifies the VM's unique SMBIOS ID.") + @visibility("read") + vmUuid?: string; + + @doc("The installation status of the hybrid machine agent installation.") + @visibility("read") + status?: StatusTypes; + + @doc("The time of the last status change.") + @visibility("read") + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + lastStatusChange?: utcDateTime; + + @doc("The hybrid machine agent full version.") + @visibility("read") + agentVersion?: string; + + @doc("Details about the error state.") + @visibility("read") + errorDetails?: Azure.ResourceManager.Foundations.ErrorDetail[]; +} + +@doc("Identity for the resource.") +model Identity { + @doc("The principal ID of resource identity. The value must be an UUID.") + @visibility("read") + principalId?: string; + + @doc("The tenant ID of resource. The value must be an UUID.") + @visibility("read") + tenantId?: string; + + @doc("The identity type.") + type?: "SystemAssigned"; +} + +@doc("The virtual machine instance resource patch definition.") +model VirtualMachineInstanceUpdateRequest { + @doc("Defines the resource properties for the update.") + properties?: VirtualMachineInstanceUpdateProperties; + + @doc("Identity for the resource.") + identity?: Identity; +} + +@doc("Defines the resource properties for the update.") +model VirtualMachineInstanceUpdateProperties { + @doc("HardwareProfile - Specifies the hardware settings for the virtual machine instance.") + hardwareProfile?: HardwareProfileUpdate; + + @doc("StorageProfile - Specifies the storage settings for the virtual machine instance.") + storageProfile?: StorageProfileUpdate; + + @doc("NetworkProfile - describes the network update configuration the virtual machine instance") + networkProfile?: NetworkProfileUpdate; + + @doc("OsProfile - describes the update configuration of the operating system") + osProfile?: OsProfileUpdate; +} + +@doc("HardwareProfile - Specifies the hardware settings for the virtual machine instance.") +model HardwareProfileUpdate { + @doc("VM Size Enum") + vmSize?: VmSizeEnum; + + @doc("number of processors for the virtual machine instance") + processors?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." + @doc("RAM in MB for the virtual machine instance") + memoryMB?: int64; +} + +@doc("Storage profile update") +model StorageProfileUpdate { + @doc("adds data disks to the virtual machine instance for the update call") + dataDisks?: VirtualHardDiskArmReference[]; +} + +@doc("NetworkProfile - describes the network update configuration the virtual machine instance") +model NetworkProfileUpdate { + @doc("NetworkInterfaces - list of network interfaces to be attached to the virtual machine instance") + @extension("x-ms-identifiers", []) + networkInterfaces?: NetworkInterfaceArmReference[]; +} + +@doc("OsProfile - describes the update configuration of the operating system") +model OsProfileUpdate { + @doc("ComputerName - name of the computer") + computerName?: string; + + @doc("Linux configuration properties") + linuxConfiguration?: OsProfileUpdateLinuxConfiguration; + + @doc("Windows configuration properties") + windowsConfiguration?: OsProfileUpdateWindowsConfiguration; +} + +@doc("OSProfile update linux configuration") +model OsProfileUpdateLinuxConfiguration { + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process.") + provisionVMAgent?: boolean; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process.") + provisionVMConfigAgent?: boolean; +} + +@doc("OSProfile update windows configuration") +model OsProfileUpdateWindowsConfiguration { + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process.") + provisionVMAgent?: boolean; + + #suppress "@azure-tools/typespec-azure-core/casing-style" "VM is a short form. It is the correct case" + @doc("Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process.") + provisionVMConfigAgent?: boolean; +} + +@doc("Defines the resource properties.") +model HybridIdentityMetadataProperties { + @doc("The unique identifier for the resource.") + resourceUid?: string; + + @doc("The Public Key.") + publicKey?: string; + + @doc("Identity for the resource.") + @visibility("read") + identity?: Identity; + + @doc("Provisioning state of the virtual machine instance.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; +} + +@doc("Defines the attestation status properties") +model AttestationStatusProperties { + @doc("The status of whether secure boot is enabled.") + @visibility("read") + attestSecureBootEnabled?: AttestSecureBootPropertyEnum = AttestSecureBootPropertyEnum.Unknown; + + @doc("The status of whether attestation certificate is validated.") + @visibility("read") + attestationCertValidated?: AttestCertPropertyEnum = AttestCertPropertyEnum.Unknown; + + @doc("The status of whether the list of boot integrity properties is validated.") + @visibility("read") + bootIntegrityValidated?: AttestBootIntegrityPropertyEnum = AttestBootIntegrityPropertyEnum.Unknown; + + @doc("kernel version string for Linux VM.") + @visibility("read") + linuxKernelVersion?: string; + + @doc("The health status of attestation validation and parsing") + @visibility("read") + healthStatus?: AttestHealthStatusEnum = AttestHealthStatusEnum.Unknown; + + @doc("The time stamp of the last time attestation token is validated by relying party service.") + @visibility("read") + timestamp?: string; + + @doc("The error message of attestation validation and parsing") + @visibility("read") + errorMessage?: string; + + @doc("Provisioning state of the virtual machine instance.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; +} + +@doc("Defines the resource properties.") +model GuestAgentProperties { + @doc("Username / Password Credentials to provision guest agent.") + credentials?: GuestCredential; + + @doc("The guest agent provisioning action.") + provisioningAction?: ProvisioningAction; + + @doc("The guest agent status.") + @visibility("read") + status?: string; + + @doc("Provisioning state of the virtual machine instance.") + @visibility("read") + provisioningState?: ProvisioningStateEnum; +} + +@doc("Username / Password Credentials to connect to guest.") +model GuestCredential { + @doc("The username to connect with the guest.") + username?: string; + + @doc("The password to connect with the guest.") + @visibility("create", "update") + @secret + password?: string; +} diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/tspconfig.yaml b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/tspconfig.yaml new file mode 100644 index 000000000000..0a082d97d76d --- /dev/null +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/tspconfig.yaml @@ -0,0 +1,12 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/StackHCIVM/{version-status}/{version}/stackhcivm.json" + examples-directory: "{project-root}/examples" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/azurestackhci/Operations.Management/examples/2024-02-01-preview/Operations_List.json b/specification/azurestackhci/Operations.Management/examples/2024-02-01-preview/Operations_List.json new file mode 100644 index 000000000000..4a5ff103d84a --- /dev/null +++ b/specification/azurestackhci/Operations.Management/examples/2024-02-01-preview/Operations_List.json @@ -0,0 +1,305 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Deletes virtual hard disk resource", + "description": "Deletes virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Creates/Updates virtual hard disk resource", + "description": "Creates/Updates virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Gets/Lists virtual hard disk resource", + "description": "Gets/Lists virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Deletes network interfaces resource", + "description": "Deletes network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Creates/Updates network interfaces resource", + "description": "Creates/Updates network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Gets/Lists network interfaces resource", + "description": "Gets/Lists network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Deletes gallery images resource", + "description": "Deletes gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Creates/Updates gallery images resource", + "description": "Creates/Updates gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Gets/Lists gallery images resource", + "description": "Gets/Lists gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/HybridIdentityMetadata/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/HybridIdentityMetadata", + "operation": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource", + "description": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/attestationStatus/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/attestationStatus", + "operation": "Gets/Lists virtual machine instance's attestation status", + "description": "Gets/Lists virtual machine instance's attestation status" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Deletes logical networks resource", + "description": "Deletes logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Creates/Updates logical networks resource", + "description": "Creates/Updates logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Gets/Lists logical networks resource", + "description": "Gets/Lists logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/join/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Joins logical networks resource", + "description": "Joins logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Restart/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Restarts virtual machine instance resource", + "description": "Restarts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Start/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Starts virtual machine instance resource", + "description": "Starts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Stop/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Stops virtual machine instance resource", + "description": "Stops virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Deletes virtual machine instance resource", + "description": "Deletes virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Creates/Updates virtual machine instance resource", + "description": "Creates/Updates virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Gets/Lists virtual machine instance resource", + "description": "Gets/Lists virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deletes storage containers resource", + "description": "Deletes storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Creates/Updates storage containers resource", + "description": "Creates/Updates storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Gets/Lists storage containers resource", + "description": "Gets/Lists storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deploys storage containers resource", + "description": "Deploys storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deletes market place gallery images resource", + "description": "Deletes market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Creates/Updates market place gallery images resource", + "description": "Creates/Updates market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Gets/Lists market place gallery images resource", + "description": "Gets/Lists market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deploys market place gallery images resource", + "description": "Deploys market place gallery images resource" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "List the operations for the provider." +} diff --git a/specification/azurestackhci/Operations.Management/main.tsp b/specification/azurestackhci/Operations.Management/main.tsp new file mode 100644 index 000000000000..b56ae312dc3e --- /dev/null +++ b/specification/azurestackhci/Operations.Management/main.tsp @@ -0,0 +1,34 @@ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * Azure Stack HCI management service + */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "HCI itself is a short form." +@armProviderNamespace +@service({ + title: "Microsoft.AzureStackHCI", +}) +@versioned(Versions) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) +namespace Microsoft.AzureStackHCI; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2024-02-01-preview API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2024_02_01_preview: "2024-02-01-preview", +} diff --git a/specification/azurestackhci/Operations.Management/models.tsp b/specification/azurestackhci/Operations.Management/models.tsp new file mode 100644 index 000000000000..9cd08de9580e --- /dev/null +++ b/specification/azurestackhci/Operations.Management/models.tsp @@ -0,0 +1,12 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; + +#suppress "@azure-tools/typespec-azure-core/casing-style" "HCI itself is a short form." +namespace Microsoft.AzureStackHCI; + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/azurestackhci/Operations.Management/tspconfig.yaml b/specification/azurestackhci/Operations.Management/tspconfig.yaml new file mode 100644 index 000000000000..dc13f45348b5 --- /dev/null +++ b/specification/azurestackhci/Operations.Management/tspconfig.yaml @@ -0,0 +1,12 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/operations/{version-status}/{version}/operations.json" + examples-directory: "{project-root}/examples" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/AttestationStatuses_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/AttestationStatuses_Get.json new file mode 100644 index 000000000000..c73ee3617166 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/AttestationStatuses_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/AttestationStatus", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/attestationStatus/default", + "properties": { + "attestSecureBootEnabled": "Disabled", + "attestationCertValidated": "Invalid", + "bootIntegrityValidated": "Invalid", + "errorMessage": "Attestation token has invalid signature", + "healthStatus": "Unhealthy", + "linuxKernelVersion": "1.0.0.0", + "timestamp": "2023/11/10 9:48" + } + } + } + }, + "operationId": "AttestationStatuses_Get", + "title": "GetAttestationStatus" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/DefaultSecurityRules_ListByNetworkSecurityGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/DefaultSecurityRules_ListByNetworkSecurityGroup.json new file mode 100644 index 000000000000..a0baf5ef8b44 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/DefaultSecurityRules_ListByNetworkSecurityGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resource": { + "location": "eastus" + }, + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "NetworkSecurityGroups_CreateOrUpdate", + "title": "Create network security group" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_CreateOrUpdate.json new file mode 100644 index 000000000000..625e304ccbcf --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_CreateOrUpdate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "imagePath": "C:\\test.vhdx", + "osType": "Linux" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + }, + "201": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Succeeded", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "GalleryImages_CreateOrUpdate", + "title": "PutGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Delete.json new file mode 100644 index 000000000000..f55433c2b81c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "GalleryImages_Delete", + "title": "DeleteGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Get.json new file mode 100644 index 000000000000..7932b63e4ec3 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Get.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "GalleryImages_Get", + "title": "GetGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_ListAll.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_ListAll.json new file mode 100644 index 000000000000..588342065cff --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_ListAll.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "GalleryImages_ListAll", + "title": "ListGalleryImageBySubscription" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_ListByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_ListByResourceGroup.json new file mode 100644 index 000000000000..2870831af86e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_ListByResourceGroup.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "GalleryImages_ListByResourceGroup", + "title": "ListGalleryImageByResourceGroup" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Update.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Update.json new file mode 100644 index 000000000000..035f0e6a8376 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GalleryImages_Update.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "galleryImageName": "test-gallery-image", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-gallery-image", + "type": "Microsoft.AzureStackHCI/galleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V2", + "osType": "Linux", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "GalleryImages_Update", + "title": "UpdateGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Create.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Create.json new file mode 100644 index 000000000000..fb3503d12fa1 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Create.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resource": { + "properties": { + "credentials": { + "password": "", + "username": "tempuser" + }, + "provisioningAction": "install" + } + }, + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Succeeded", + "status": "connected" + } + } + }, + "201": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Created", + "status": "connected" + } + } + } + }, + "operationId": "GuestAgents_Create", + "title": "CreateGuestAgent" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Delete.json new file mode 100644 index 000000000000..7edd761afd32 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "GuestAgents_Delete", + "title": "DeleteGuestAgent" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Get.json new file mode 100644 index 000000000000..e350bcf9a21c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Succeeded", + "status": "connected" + } + } + } + }, + "operationId": "GuestAgents_Get", + "title": "GetGuestAgent" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_ListByVirtualMachineInstance.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_ListByVirtualMachineInstance.json new file mode 100644 index 000000000000..763ed44a39d3 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/GuestAgents_ListByVirtualMachineInstance.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + "properties": { + "provisioningAction": "install", + "provisioningState": "Succeeded", + "status": "connected" + } + } + ] + } + } + }, + "operationId": "GuestAgents_ListByVirtualMachineInstance", + "title": "GuestAgentListByVirtualMachineInstances" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/HybridIdentityMetadataGroup_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/HybridIdentityMetadataGroup_Get.json new file mode 100644 index 000000000000..b8e26dcf12ef --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/HybridIdentityMetadataGroup_Get.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/hybridIdentityMetadata", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default", + "properties": { + "identity": { + "type": "SystemAssigned", + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d" + }, + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2" + } + } + } + }, + "operationId": "HybridIdentityMetadata_Get", + "title": "GetHybridIdentityMetadata" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/HybridIdentityMetadata_ListByVirtualMachineInstance.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/HybridIdentityMetadata_ListByVirtualMachineInstance.json new file mode 100644 index 000000000000..f8900e2f6774 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/HybridIdentityMetadata_ListByVirtualMachineInstance.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances/hybridIdentityMetadata", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default", + "properties": { + "identity": { + "type": "SystemAssigned", + "principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", + "tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d" + }, + "publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2" + } + } + ] + } + } + }, + "operationId": "HybridIdentityMetadata_ListByVirtualMachineInstance", + "title": "HybridIdentityMetadataListByVirtualMachineInstances" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_CreateOrUpdate.json new file mode 100644 index 000000000000..56e12010fb82 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_CreateOrUpdate.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "resource": { + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2" + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "LogicalNetworks_CreateOrUpdate", + "title": "PutLogicalNetwork" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Delete.json new file mode 100644 index 000000000000..a994c9ddbbf2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "LogicalNetworks_Delete", + "title": "DeleteLogicalNetwork" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Get.json new file mode 100644 index 000000000000..1726a541ecb3 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "LogicalNetworks_Get", + "title": "GetLogicalNetwork" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_ListAll.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_ListAll.json new file mode 100644 index 000000000000..ac0cb9f62bd0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_ListAll.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "LogicalNetworks_ListAll", + "title": "ListLogicalNetworkBySubscription" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_ListByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_ListByResourceGroup.json new file mode 100644 index 000000000000..43fd5e75fe77 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_ListByResourceGroup.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "LogicalNetworks_ListByResourceGroup", + "title": "ListLogicalNetworkByResourceGroup" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Update.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Update.json new file mode 100644 index 000000000000..bd3b62dc7c54 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/LogicalNetworks_Update.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "logicalNetworkName": "test-lnet", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-lnet", + "type": "Microsoft.AzureStackHCI/logicalNetworks", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", + "location": "West US2", + "properties": { + "provisioningState": "Accepted" + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "LogicalNetworks_Update", + "title": "UpdateLogicalNetwork" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_CreateOrUpdate.json new file mode 100644 index 000000000000..f4c9ee0355e5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_CreateOrUpdate.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "name": "test-marketplace-gallery-image", + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "version": { + "name": "1.0.0" + } + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 0, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + }, + "201": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Creating", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "MarketplaceGalleryImages_CreateOrUpdate", + "title": "PutMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Delete.json new file mode 100644 index 000000000000..d307ea1f339c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "MarketplaceGalleryImages_Delete", + "title": "DeleteMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Get.json new file mode 100644 index 000000000000..20e91c809e31 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Get.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplace-gallery-image", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "NoCloud", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + } + }, + "operationId": "MarketplaceGalleryImages_Get", + "title": "GetMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_ListAll.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_ListAll.json new file mode 100644 index 000000000000..a1c2ecc5c23e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_ListAll.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "MarketplaceGalleryImages_ListAll", + "title": "ListMarketplaceGalleryImageBySubscription" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_ListByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_ListByResourceGroup.json new file mode 100644 index 000000000000..98a8d0f6358b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_ListByResourceGroup.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 100, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + } + } + ] + } + } + }, + "operationId": "MarketplaceGalleryImages_ListByResourceGroup", + "title": "ListMarketplaceGalleryImageByResourceGroup" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Update.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Update.json new file mode 100644 index 000000000000..591e5d00baa1 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/MarketplaceGalleryImages_Update.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "marketplaceGalleryImageName": "test-marketplce-gallery-image", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image", + "location": "West US2", + "properties": { + "cloudInitDataSource": "Azure", + "containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", + "hyperVGeneration": "V1", + "identifier": { + "offer": "myOfferName", + "publisher": "myPublisherName", + "sku": "mySkuName" + }, + "osType": "Windows", + "provisioningState": "Accepted", + "status": { + "downloadStatus": { + "downloadSizeInMB": 9383 + }, + "progressPercentage": 0, + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + } + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + } + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "MarketplaceGalleryImages_Update", + "title": "UpdateMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_CreateOrUpdate.json new file mode 100644 index 000000000000..d1d6a94cb097 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_CreateOrUpdate.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "eastus", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ] + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "NetworkInterfaces_CreateOrUpdate", + "title": "PutNetworkInterface" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Delete.json new file mode 100644 index 000000000000..849a2fa55d23 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkInterfaces_Delete", + "title": "DeleteNetworkInterface" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Get.json new file mode 100644 index 000000000000..0ba891a6e316 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "NetworkInterfaces_Get", + "title": "GetNetworkInterface" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_ListAll.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_ListAll.json new file mode 100644 index 000000000000..877649fb00fd --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_ListAll.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "NetworkInterfaces_ListAll", + "title": "ListNetworkInterfaceBySubscription" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_ListByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_ListByResourceGroup.json new file mode 100644 index 000000000000..7ad9a7e22ec2 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_ListByResourceGroup.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "NetworkInterfaces_ListByResourceGroup", + "title": "ListNetworkInterfaceByResourceGroup" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Update.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Update.json new file mode 100644 index 000000000000..b492fca2b844 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkInterfaces_Update.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkInterfaceName": "test-nic", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "test-nic", + "type": "Microsoft.AzureStackHCI/networkInterfaces", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic", + "location": "West US2", + "properties": { + "ipConfigurations": [ + { + "name": "ipconfig-sample", + "properties": { + "subnet": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet" + } + } + } + ], + "provisioningState": "Accepted" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkInterfaces_Update", + "title": "UpdateNetworkInterface" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_CreateOrUpdate.json new file mode 100644 index 000000000000..25dd85ff1ddb --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_CreateOrUpdate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resource": { + "location": "eastus" + }, + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "NetworkSecurityGroups_CreateOrUpdate", + "title": "CreateNetworkSecurityGroup" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_Delete.json new file mode 100644 index 000000000000..6cf6a0d2a421 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkSecurityGroups_Delete", + "title": "Delete network security group" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_Get.json new file mode 100644 index 000000000000..6e89c13d91b8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "NetworkSecurityGroups_Get", + "title": "Get network security group" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_ListAll.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_ListAll.json new file mode 100644 index 000000000000..43a1fe797c7e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_ListAll.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsg1", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg1", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "name": "nsg2", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/rg2/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg2", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + }, + "operationId": "NetworkSecurityGroups_ListAll", + "title": "List all network security groups" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_ListByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_ListByResourceGroup.json new file mode 100644 index 000000000000..05f46cfd5b5b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_ListByResourceGroup.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsg1", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg1", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + }, + { + "name": "nsg3", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/nsg3", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + } + } + ] + } + } + }, + "operationId": "NetworkSecurityGroups_ListByResourceGroup", + "title": "List network security groups in resource group" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_UpdateTags.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_UpdateTags.json new file mode 100644 index 000000000000..ea3c52fac399 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/NetworkSecurityGroups_UpdateTags.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "properties": { + "tags": { + "tag1": "value1", + "tag2": "value2" + } + }, + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "testnsg", + "type": "Microsoft.AzureStackHCI/networkSecurityGroups", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "NetworkSecurityGroups_UpdateTags", + "title": "Update network security group tags" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/Operations_List.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..4a5ff103d84a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/Operations_List.json @@ -0,0 +1,305 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Deletes virtual hard disk resource", + "description": "Deletes virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Creates/Updates virtual hard disk resource", + "description": "Creates/Updates virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Gets/Lists virtual hard disk resource", + "description": "Gets/Lists virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Deletes network interfaces resource", + "description": "Deletes network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Creates/Updates network interfaces resource", + "description": "Creates/Updates network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Gets/Lists network interfaces resource", + "description": "Gets/Lists network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Deletes gallery images resource", + "description": "Deletes gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Creates/Updates gallery images resource", + "description": "Creates/Updates gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Gets/Lists gallery images resource", + "description": "Gets/Lists gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/HybridIdentityMetadata/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/HybridIdentityMetadata", + "operation": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource", + "description": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/attestationStatus/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/attestationStatus", + "operation": "Gets/Lists virtual machine instance's attestation status", + "description": "Gets/Lists virtual machine instance's attestation status" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Deletes logical networks resource", + "description": "Deletes logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Creates/Updates logical networks resource", + "description": "Creates/Updates logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Gets/Lists logical networks resource", + "description": "Gets/Lists logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/join/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Joins logical networks resource", + "description": "Joins logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Restart/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Restarts virtual machine instance resource", + "description": "Restarts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Start/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Starts virtual machine instance resource", + "description": "Starts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Stop/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Stops virtual machine instance resource", + "description": "Stops virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Deletes virtual machine instance resource", + "description": "Deletes virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Creates/Updates virtual machine instance resource", + "description": "Creates/Updates virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Gets/Lists virtual machine instance resource", + "description": "Gets/Lists virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deletes storage containers resource", + "description": "Deletes storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Creates/Updates storage containers resource", + "description": "Creates/Updates storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Gets/Lists storage containers resource", + "description": "Gets/Lists storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deploys storage containers resource", + "description": "Deploys storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deletes market place gallery images resource", + "description": "Deletes market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Creates/Updates market place gallery images resource", + "description": "Creates/Updates market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Gets/Lists market place gallery images resource", + "description": "Gets/Lists market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deploys market place gallery images resource", + "description": "Deploys market place gallery images resource" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "List the operations for the provider." +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_CreateOrUpdate.json new file mode 100644 index 000000000000..3f4e58c8721d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_CreateOrUpdate.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "securityRuleName": "rule1", + "resource": { + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + }, + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + }, + "201": { + "body": { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + } + }, + "operationId": "SecurityRules_CreateOrUpdate", + "title": "SecurityRulesCreateOrUpdate" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_Delete.json new file mode 100644 index 000000000000..4e2d69c17dff --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_Delete.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "testrg", + "securityRuleName": "rule1", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "Azure-AsyncOperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "SecurityRules_Delete", + "title": "SecurityRulesDelete" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_Get.json new file mode 100644 index 000000000000..c78dd2d79668 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "testrg", + "securityRuleName": "rule1", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + } + }, + "operationId": "SecurityRules_Get", + "title": "Get network security rule in network security group" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_ListByNetworkSecurityGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_ListByNetworkSecurityGroup.json new file mode 100644 index 000000000000..3263f0e4f323 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/SecurityRules_ListByNetworkSecurityGroup.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "networkSecurityGroupName": "testnsg", + "resourceGroupName": "testrg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "rule1", + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/networkSecurityGroups/testnsg/securityRule/rule1", + "properties": { + "access": "Allow", + "destinationAddressPrefixes": [ + "*" + ], + "destinationPortRanges": [ + "80" + ], + "direction": "Inbound", + "priority": 130, + "sourceAddressPrefixes": [ + "*" + ], + "sourcePortRanges": [ + "*" + ], + "protocol": "*" + } + } + ] + } + } + }, + "operationId": "SecurityRules_ListByNetworkSecurityGroup", + "title": "List network security rules in network security group" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_CreateOrUpdate.json new file mode 100644 index 000000000000..8a4444585098 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_CreateOrUpdate.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "path": "C:\\container_storage" + } + }, + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "StorageContainers_CreateOrUpdate", + "title": "PutStorageContainer" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Delete.json new file mode 100644 index 000000000000..2200c4db8fbc --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "StorageContainers_Delete", + "title": "DeleteStorageContainer" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Get.json new file mode 100644 index 000000000000..567027da24f5 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "StorageContainers_Get", + "title": "GetStorageContainer" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_ListAll.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_ListAll.json new file mode 100644 index 000000000000..c072a84422f1 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_ListAll.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "StorageContainers_ListAll", + "title": "ListStorageContainerBySubscription" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_ListByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_ListByResourceGroup.json new file mode 100644 index 000000000000..2976d038e253 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_ListByResourceGroup.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/Default_Container", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "StorageContainers_ListByResourceGroup", + "title": "ListStorageContainerByResourceGroup" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Update.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Update.json new file mode 100644 index 000000000000..f6868128d23c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/StorageContainers_Update.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "storageContainerName": "Default_Container", + "properties": { + "tags": { + "additionalProperties": "sample" + } + }, + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "name": "Default_Container", + "type": "Microsoft.AzureStackHCI/storageContainers", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-galimg3325", + "location": "West US2", + "properties": { + "path": "C:\\container_storage", + "provisioningState": "Accepted" + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "StorageContainers_Update", + "title": "UpdateStorageContainer" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_CreateOrUpdate.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_CreateOrUpdate.json new file mode 100644 index 000000000000..d2f44d5c884c --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_CreateOrUpdate.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "location": "West US2", + "properties": { + "diskSizeGB": 32 + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "VirtualHardDisks_CreateOrUpdate", + "title": "PutVirtualHardDisk" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Delete.json new file mode 100644 index 000000000000..541cb195b39e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Delete.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualHardDisks_Delete", + "title": "DeleteVirtualHardDisk" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Get.json new file mode 100644 index 000000000000..aeb4a697e8dd --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Get.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd" + }, + "responses": { + "200": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + } + }, + "operationId": "VirtualHardDisks_Get", + "title": "GetVirtualHardDisk" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_ListAll.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_ListAll.json new file mode 100644 index 000000000000..615a36633889 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_ListAll.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "VirtualHardDisks_ListAll", + "title": "ListVirtualHardDiskBySubscription" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_ListByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_ListByResourceGroup.json new file mode 100644 index 000000000000..fa8b428580f9 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + } + } + ] + } + } + }, + "operationId": "VirtualHardDisks_ListByResourceGroup", + "title": "ListVirtualHardDiskByResourceGroup" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Update.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Update.json new file mode 100644 index 000000000000..1ae3c83ac98b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualHardDisks_Update.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceGroupName": "test-rg", + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "virtualHardDiskName": "test-vhd", + "properties": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "name": "test-vhd", + "type": "Microsoft.AzureStackHCI/virtualHardDisks", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd", + "location": "West US2", + "properties": { + "blockSizeBytes": 0, + "diskFileFormat": "vhdx", + "diskSizeGB": 32, + "dynamic": true, + "hyperVGeneration": "V2", + "logicalSectorBytes": 512, + "physicalSectorBytes": 512, + "provisioningState": "Accepted" + }, + "tags": { + "additionalProperties": "sample" + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualHardDisks_Update", + "title": "UpdateVirtualHardDisk" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Gallery_Image.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Gallery_Image.json new file mode 100644 index 000000000000..a91320df1aa6 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Gallery_Image.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminPassword": "password", + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Succeeded", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Marketplace_Gallery_Image.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Marketplace_Gallery_Image.json new file mode 100644 index 000000000000..d69de8202af0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Marketplace_Gallery_Image.json @@ -0,0 +1,115 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminPassword": "password", + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Succeeded", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/test-marketplace-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithMarketplaceGalleryImage" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Os_Disk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Os_Disk.json new file mode 100644 index 000000000000..b969d236e308 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Os_Disk.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "provisioningState": "Succeeded", + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithOsDisk" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Vm_Config_Agent.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Vm_Config_Agent.json new file mode 100644 index 000000000000..ad29a53df4f9 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Vm_Config_Agent.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "resource": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminPassword": "password", + "adminUsername": "localadmin", + "computerName": "luamaster", + "windowsConfiguration": { + "provisionVMConfigAgent": true + } + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "responses": { + "200": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "instanceView": { + "vmAgent": { + "statuses": [ + { + "code": "Ok", + "displayStatus": "Ok", + "level": "Info", + "message": "The agent is healthy", + "time": "2009-06-15T13:45:30" + } + ], + "vmConfigAgentVersion": "1.0.0" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + }, + "201": { + "body": { + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "instanceView": { + "vmAgent": { + "statuses": [ + { + "code": "Ok", + "displayStatus": "Ok", + "level": "Info", + "message": "The agent is healthy", + "time": "2009-06-15T13:45:30" + } + ], + "vmConfigAgentVersion": "1.0.0" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Succeeded", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "title": "PutVirtualMachineInstanceWithVMConfigAgent" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Delete.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Delete.json new file mode 100644 index 000000000000..cb0fdb58b717 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + }, + "204": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Delete", + "title": "DeleteVirtualMachine" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Get.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Get.json new file mode 100644 index 000000000000..85bee1c16d3e --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Get.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + } + }, + "operationId": "VirtualMachineInstances_Get", + "title": "GetVirtualMachineInstance" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_List.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_List.json new file mode 100644 index 000000000000..a8b6f203e211 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_List.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "storageProfile": { + "imageReference": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + }, + "vmConfigStoragePathId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-container" + } + } + } + ] + } + } + }, + "operationId": "VirtualMachineInstances_List", + "title": "ListVirtualMachineInstances" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Pause.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Pause.json new file mode 100644 index 000000000000..2972c7be6d73 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Pause.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Pause", + "title": "PauseVirtualMachine" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Restart.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Restart.json new file mode 100644 index 000000000000..cbe832ef1eb8 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Restart.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Restart", + "title": "RestartVirtualMachine" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Save.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Save.json new file mode 100644 index 000000000000..9c3a010fa826 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Save.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Save", + "title": "SaveVirtualMachine" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Start.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Start.json new file mode 100644 index 000000000000..363ab5468eb3 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Start.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Start", + "title": "StartVirtualMachine" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Stop.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Stop.json new file mode 100644 index 000000000000..cb301a5be1b0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Stop.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default" + }, + "responses": { + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Stop", + "title": "StopVirtualMachine" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Update.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Update.json new file mode 100644 index 000000000000..13610e656a93 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/examples/VirtualMachineInstances_Update.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview", + "resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM", + "properties": { + "properties": { + "storageProfile": { + "dataDisks": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.AzureStackHCI/virtualMachineInstances", + "extendedLocation": { + "name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + "properties": { + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkInterfaces/test-nic" + } + ] + }, + "osProfile": { + "adminUsername": "localadmin", + "computerName": "luamaster" + }, + "provisioningState": "Accepted", + "storageProfile": { + "dataDisks": [ + { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/virtualHardDisks/test-vhd" + } + ], + "imageReference": { + "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image" + } + } + } + } + }, + "202": { + "headers": { + "azure-asyncoperation": "http://azure.async.operation/status" + } + } + }, + "operationId": "VirtualMachineInstances_Update", + "title": "UpdateVirtualMachine" +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/stackhcivm.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/stackhcivm.json new file mode 100644 index 000000000000..db8910818cc0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/preview/2024-02-01-preview/stackhcivm.json @@ -0,0 +1,7079 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.AzureStackHCI", + "version": "2024-02-01-preview", + "description": "Azure Stack HCI management service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "GalleryImages" + }, + { + "name": "LogicalNetworks" + }, + { + "name": "MarketplaceGalleryImages" + }, + { + "name": "NetworkInterfaces" + }, + { + "name": "NetworkSecurityGroups" + }, + { + "name": "SecurityRules" + }, + { + "name": "StorageContainers" + }, + { + "name": "VirtualHardDisks" + }, + { + "name": "VirtualMachineInstances" + }, + { + "name": "HybridIdentityMetadataGroup" + }, + { + "name": "AttestationStatuses" + }, + { + "name": "GuestAgents" + } + ], + "paths": { + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances": { + "get": { + "operationId": "VirtualMachineInstances_List", + "tags": [ + "VirtualMachineInstances" + ], + "description": "Lists all of the virtual machine instances within the specified parent resource.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualMachineInstanceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListVirtualMachineInstances": { + "$ref": "./examples/VirtualMachineInstances_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default": { + "get": { + "operationId": "VirtualMachineInstances_Get", + "tags": [ + "VirtualMachineInstances" + ], + "description": "Gets a virtual machine instance", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualMachineInstance" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetVirtualMachineInstance": { + "$ref": "./examples/VirtualMachineInstances_Get.json" + } + } + }, + "put": { + "operationId": "VirtualMachineInstances_CreateOrUpdate", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineInstance" + } + } + ], + "responses": { + "200": { + "description": "Resource 'VirtualMachineInstance' update operation succeeded", + "schema": { + "$ref": "#/definitions/VirtualMachineInstance" + } + }, + "201": { + "description": "Resource 'VirtualMachineInstance' create operation succeeded", + "schema": { + "$ref": "#/definitions/VirtualMachineInstance" + }, + "headers": { + "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": { + "PutVirtualMachineInstanceWithGalleryImage": { + "$ref": "./examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Gallery_Image.json" + }, + "PutVirtualMachineInstanceWithMarketplaceGalleryImage": { + "$ref": "./examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Marketplace_Gallery_Image.json" + }, + "PutVirtualMachineInstanceWithOsDisk": { + "$ref": "./examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Os_Disk.json" + }, + "PutVirtualMachineInstanceWithVMConfigAgent": { + "$ref": "./examples/VirtualMachineInstances_CreateOrUpdate_Put_Virtual_Machine_Instance_With_Vm_Config_Agent.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "VirtualMachineInstances_Update", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to update a virtual machine instance.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineInstanceUpdateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualMachineInstance" + } + }, + "202": { + "description": "Resource update request 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": { + "UpdateVirtualMachine": { + "$ref": "./examples/VirtualMachineInstances_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VirtualMachineInstances_Delete", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to delete a virtual machine instance.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteVirtualMachine": { + "$ref": "./examples/VirtualMachineInstances_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/attestationStatus/default": { + "get": { + "operationId": "AttestationStatuses_Get", + "tags": [ + "AttestationStatuses" + ], + "description": "Implements AttestationStatus GET method.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AttestationStatus" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetAttestationStatus": { + "$ref": "./examples/AttestationStatuses_Get.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents": { + "get": { + "operationId": "GuestAgents_ListByVirtualMachineInstance", + "tags": [ + "GuestAgents" + ], + "description": "Returns the list of GuestAgent of the given vm.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GuestAgentListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GuestAgentListByVirtualMachineInstances": { + "$ref": "./examples/GuestAgents_ListByVirtualMachineInstance.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default": { + "get": { + "operationId": "GuestAgents_Get", + "tags": [ + "GuestAgents" + ], + "description": "Implements GuestAgent GET method.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetGuestAgent": { + "$ref": "./examples/GuestAgents_Get.json" + } + } + }, + "put": { + "operationId": "GuestAgents_Create", + "tags": [ + "GuestAgents" + ], + "description": "Create Or Update GuestAgent.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/GuestAgent" + } + } + ], + "responses": { + "200": { + "description": "Resource 'GuestAgent' update operation succeeded", + "schema": { + "$ref": "#/definitions/GuestAgent" + } + }, + "201": { + "description": "Resource 'GuestAgent' create operation succeeded", + "schema": { + "$ref": "#/definitions/GuestAgent" + }, + "headers": { + "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": { + "CreateGuestAgent": { + "$ref": "./examples/GuestAgents_Create.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "GuestAgents_Delete", + "tags": [ + "GuestAgents" + ], + "description": "Implements GuestAgent DELETE method.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteGuestAgent": { + "$ref": "./examples/GuestAgents_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata": { + "get": { + "operationId": "HybridIdentityMetadata_ListByVirtualMachineInstance", + "tags": [ + "HybridIdentityMetadataGroup" + ], + "description": "Returns the list of HybridIdentityMetadata of the given vm.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadataListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "HybridIdentityMetadataListByVirtualMachineInstances": { + "$ref": "./examples/HybridIdentityMetadata_ListByVirtualMachineInstance.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default": { + "get": { + "operationId": "HybridIdentityMetadata_Get", + "tags": [ + "HybridIdentityMetadataGroup" + ], + "description": "Implements HybridIdentityMetadata GET method.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetHybridIdentityMetadata": { + "$ref": "./examples/HybridIdentityMetadataGroup_Get.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/pause": { + "post": { + "operationId": "VirtualMachineInstances_Pause", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to pause a virtual machine instance.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "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": { + "PauseVirtualMachine": { + "$ref": "./examples/VirtualMachineInstances_Pause.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/restart": { + "post": { + "operationId": "VirtualMachineInstances_Restart", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to restart a virtual machine instance.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "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": { + "RestartVirtualMachine": { + "$ref": "./examples/VirtualMachineInstances_Restart.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/save": { + "post": { + "operationId": "VirtualMachineInstances_Save", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to save a virtual machine instance.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "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": { + "SaveVirtualMachine": { + "$ref": "./examples/VirtualMachineInstances_Save.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/start": { + "post": { + "operationId": "VirtualMachineInstances_Start", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to start a virtual machine instance.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "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": { + "StartVirtualMachine": { + "$ref": "./examples/VirtualMachineInstances_Start.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/stop": { + "post": { + "operationId": "VirtualMachineInstances_Stop", + "tags": [ + "VirtualMachineInstances" + ], + "description": "The operation to stop a virtual machine instance.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.ResourceManager.ResourceUriParameter" + } + ], + "responses": { + "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": { + "StopVirtualMachine": { + "$ref": "./examples/VirtualMachineInstances_Stop.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.AzureStackHCI/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List the operations for the provider.": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryImages": { + "get": { + "operationId": "GalleryImages_ListAll", + "tags": [ + "GalleryImages" + ], + "description": "Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GalleryImageListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListGalleryImageBySubscription": { + "$ref": "./examples/GalleryImages_ListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/logicalNetworks": { + "get": { + "operationId": "LogicalNetworks_ListAll", + "tags": [ + "LogicalNetworks" + ], + "description": "Lists all of the logical networks in the specified subscription. Use the nextLink property in the response to get the next page of logical networks.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LogicalNetworkListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListLogicalNetworkBySubscription": { + "$ref": "./examples/LogicalNetworks_ListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages": { + "get": { + "operationId": "MarketplaceGalleryImages_ListAll", + "tags": [ + "MarketplaceGalleryImages" + ], + "description": "Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property in the response to get the next page of marketplace gallery images.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImageListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListMarketplaceGalleryImageBySubscription": { + "$ref": "./examples/MarketplaceGalleryImages_ListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkInterfaces": { + "get": { + "operationId": "NetworkInterfaces_ListAll", + "tags": [ + "NetworkInterfaces" + ], + "description": "Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListNetworkInterfaceBySubscription": { + "$ref": "./examples/NetworkInterfaces_ListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkSecurityGroups": { + "get": { + "operationId": "NetworkSecurityGroups_ListAll", + "tags": [ + "NetworkSecurityGroups" + ], + "description": "Gets all network security groups in a subscription.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroupListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List all network security groups": { + "$ref": "./examples/NetworkSecurityGroups_ListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storageContainers": { + "get": { + "operationId": "StorageContainers_ListAll", + "tags": [ + "StorageContainers" + ], + "description": "Lists all of the storage containers in the specified subscription. Use the nextLink property in the response to get the next page of storage containers.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/StorageContainerListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListStorageContainerBySubscription": { + "$ref": "./examples/StorageContainers_ListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualHardDisks": { + "get": { + "operationId": "VirtualHardDisks_ListAll", + "tags": [ + "VirtualHardDisks" + ], + "description": "Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualHardDiskListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListVirtualHardDiskBySubscription": { + "$ref": "./examples/VirtualHardDisks_ListAll.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages": { + "get": { + "operationId": "GalleryImages_ListByResourceGroup", + "tags": [ + "GalleryImages" + ], + "description": "Lists all of the gallery images in the specified resource group. Use the nextLink property in the response to get the next page of gallery images.", + "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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GalleryImageListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListGalleryImageByResourceGroup": { + "$ref": "./examples/GalleryImages_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}": { + "get": { + "operationId": "GalleryImages_Get", + "tags": [ + "GalleryImages" + ], + "description": "Gets a gallery image", + "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": "galleryImageName", + "in": "path", + "description": "Name of the gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetGalleryImage": { + "$ref": "./examples/GalleryImages_Get.json" + } + } + }, + "put": { + "operationId": "GalleryImages_CreateOrUpdate", + "tags": [ + "GalleryImages" + ], + "description": "The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.", + "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": "galleryImageName", + "in": "path", + "description": "Name of the gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImage" + } + } + ], + "responses": { + "200": { + "description": "Resource 'GalleryImage' update operation succeeded", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "201": { + "description": "Resource 'GalleryImage' create operation succeeded", + "schema": { + "$ref": "#/definitions/GalleryImage" + }, + "headers": { + "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": { + "PutGalleryImage": { + "$ref": "./examples/GalleryImages_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "GalleryImages_Update", + "tags": [ + "GalleryImages" + ], + "description": "The operation to update a gallery image.", + "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": "galleryImageName", + "in": "path", + "description": "Name of the gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImageTagsUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "202": { + "description": "Resource update request 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": { + "UpdateGalleryImage": { + "$ref": "./examples/GalleryImages_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "GalleryImages_Delete", + "tags": [ + "GalleryImages" + ], + "description": "The operation to delete a gallery image.", + "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": "galleryImageName", + "in": "path", + "description": "Name of the gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteGalleryImage": { + "$ref": "./examples/GalleryImages_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks": { + "get": { + "operationId": "LogicalNetworks_ListByResourceGroup", + "tags": [ + "LogicalNetworks" + ], + "description": "Lists all of the logical networks in the specified resource group. Use the nextLink property in the response to get the next page of logical networks.", + "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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LogicalNetworkListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListLogicalNetworkByResourceGroup": { + "$ref": "./examples/LogicalNetworks_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}": { + "get": { + "operationId": "LogicalNetworks_Get", + "tags": [ + "LogicalNetworks" + ], + "description": "The operation to get a logical network.", + "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": "logicalNetworkName", + "in": "path", + "description": "Name of the logical network", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LogicalNetwork" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetLogicalNetwork": { + "$ref": "./examples/LogicalNetworks_Get.json" + } + } + }, + "put": { + "operationId": "LogicalNetworks_CreateOrUpdate", + "tags": [ + "LogicalNetworks" + ], + "description": "The operation to create or update a logical network. Please note some properties can be set only during logical network creation.", + "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": "logicalNetworkName", + "in": "path", + "description": "Name of the logical network", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/LogicalNetwork" + } + } + ], + "responses": { + "200": { + "description": "Resource 'LogicalNetwork' update operation succeeded", + "schema": { + "$ref": "#/definitions/LogicalNetwork" + } + }, + "201": { + "description": "Resource 'LogicalNetwork' create operation succeeded", + "schema": { + "$ref": "#/definitions/LogicalNetwork" + }, + "headers": { + "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": { + "PutLogicalNetwork": { + "$ref": "./examples/LogicalNetworks_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "LogicalNetworks_Update", + "tags": [ + "LogicalNetworks" + ], + "description": "The operation to update a logical network.", + "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": "logicalNetworkName", + "in": "path", + "description": "Name of the logical network", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/LogicalNetworksUpdateRequest" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/LogicalNetwork" + } + }, + "202": { + "description": "Resource update request 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": { + "UpdateLogicalNetwork": { + "$ref": "./examples/LogicalNetworks_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "LogicalNetworks_Delete", + "tags": [ + "LogicalNetworks" + ], + "description": "The operation to delete a logical network.", + "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": "logicalNetworkName", + "in": "path", + "description": "Name of the logical network", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteLogicalNetwork": { + "$ref": "./examples/LogicalNetworks_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages": { + "get": { + "operationId": "MarketplaceGalleryImages_ListByResourceGroup", + "tags": [ + "MarketplaceGalleryImages" + ], + "description": "Lists all of the marketplace gallery images in the specified resource group. Use the nextLink property in the response to get the next page of marketplace gallery images.", + "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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImageListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListMarketplaceGalleryImageByResourceGroup": { + "$ref": "./examples/MarketplaceGalleryImages_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}": { + "get": { + "operationId": "MarketplaceGalleryImages_Get", + "tags": [ + "MarketplaceGalleryImages" + ], + "description": "Gets a marketplace gallery image", + "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": "marketplaceGalleryImageName", + "in": "path", + "description": "Name of the marketplace gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImage" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetMarketplaceGalleryImage": { + "$ref": "./examples/MarketplaceGalleryImages_Get.json" + } + } + }, + "put": { + "operationId": "MarketplaceGalleryImages_CreateOrUpdate", + "tags": [ + "MarketplaceGalleryImages" + ], + "description": "The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.", + "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": "marketplaceGalleryImageName", + "in": "path", + "description": "Name of the marketplace gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImage" + } + } + ], + "responses": { + "200": { + "description": "Resource 'MarketplaceGalleryImage' update operation succeeded", + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImage" + } + }, + "201": { + "description": "Resource 'MarketplaceGalleryImage' create operation succeeded", + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImage" + }, + "headers": { + "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": { + "PutMarketplaceGalleryImage": { + "$ref": "./examples/MarketplaceGalleryImages_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "MarketplaceGalleryImages_Update", + "tags": [ + "MarketplaceGalleryImages" + ], + "description": "The operation to update a marketplace gallery image.", + "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": "marketplaceGalleryImageName", + "in": "path", + "description": "Name of the marketplace gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImageTagsUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MarketplaceGalleryImage" + } + }, + "202": { + "description": "Resource update request 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": { + "UpdateMarketplaceGalleryImage": { + "$ref": "./examples/MarketplaceGalleryImages_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "MarketplaceGalleryImages_Delete", + "tags": [ + "MarketplaceGalleryImages" + ], + "description": "The operation to delete a marketplace gallery image.", + "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": "marketplaceGalleryImageName", + "in": "path", + "description": "Name of the marketplace gallery image", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteMarketplaceGalleryImage": { + "$ref": "./examples/MarketplaceGalleryImages_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces": { + "get": { + "operationId": "NetworkInterfaces_ListByResourceGroup", + "tags": [ + "NetworkInterfaces" + ], + "description": "Lists all of the network interfaces in the specified resource group. Use the nextLink property in the response to get the next page of network interfaces.", + "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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkInterfaceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListNetworkInterfaceByResourceGroup": { + "$ref": "./examples/NetworkInterfaces_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}": { + "get": { + "operationId": "NetworkInterfaces_Get", + "tags": [ + "NetworkInterfaces" + ], + "description": "Gets a network interface", + "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": "networkInterfaceName", + "in": "path", + "description": "Name of the network interface", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetNetworkInterface": { + "$ref": "./examples/NetworkInterfaces_Get.json" + } + } + }, + "put": { + "operationId": "NetworkInterfaces_CreateOrUpdate", + "tags": [ + "NetworkInterfaces" + ], + "description": "The operation to create or update a network interface. Please note some properties can be set only during network interface creation.", + "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": "networkInterfaceName", + "in": "path", + "description": "Name of the network interface", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + } + ], + "responses": { + "200": { + "description": "Resource 'NetworkInterface' update operation succeeded", + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + }, + "201": { + "description": "Resource 'NetworkInterface' create operation succeeded", + "schema": { + "$ref": "#/definitions/NetworkInterface" + }, + "headers": { + "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": { + "PutNetworkInterface": { + "$ref": "./examples/NetworkInterfaces_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "NetworkInterfaces_Update", + "tags": [ + "NetworkInterfaces" + ], + "description": "The operation to update a network interface.", + "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": "networkInterfaceName", + "in": "path", + "description": "Name of the network interface", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkInterfaceTagsUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkInterface" + } + }, + "202": { + "description": "Resource update request 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": { + "UpdateNetworkInterface": { + "$ref": "./examples/NetworkInterfaces_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "NetworkInterfaces_Delete", + "tags": [ + "NetworkInterfaces" + ], + "description": "The operation to delete a network interface.", + "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": "networkInterfaceName", + "in": "path", + "description": "Name of the network interface", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteNetworkInterface": { + "$ref": "./examples/NetworkInterfaces_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups": { + "get": { + "operationId": "NetworkSecurityGroups_ListByResourceGroup", + "tags": [ + "NetworkSecurityGroups" + ], + "description": "Gets all network security groups in a resource group.", + "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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroupListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List network security groups in resource group": { + "$ref": "./examples/NetworkSecurityGroups_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}": { + "get": { + "operationId": "NetworkSecurityGroups_Get", + "tags": [ + "NetworkSecurityGroups" + ], + "description": "Gets the specified network security group.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get network security group": { + "$ref": "./examples/NetworkSecurityGroups_Get.json" + } + } + }, + "put": { + "operationId": "NetworkSecurityGroups_CreateOrUpdate", + "tags": [ + "NetworkSecurityGroups" + ], + "description": "Creates or updates a network security group in the specified resource group.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + } + ], + "responses": { + "200": { + "description": "Resource 'NetworkSecurityGroup' update operation succeeded", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + }, + "201": { + "description": "Resource 'NetworkSecurityGroup' create operation succeeded", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + }, + "headers": { + "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": { + "CreateNetworkSecurityGroup": { + "$ref": "./examples/NetworkSecurityGroups_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "NetworkSecurityGroups_UpdateTags", + "tags": [ + "NetworkSecurityGroups" + ], + "description": "Updates a network security group tags.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/NetworkSecurityGroupTagsUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + }, + "202": { + "description": "Resource update request 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": { + "Update network security group tags": { + "$ref": "./examples/NetworkSecurityGroups_UpdateTags.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "NetworkSecurityGroups_Delete", + "tags": [ + "NetworkSecurityGroups" + ], + "description": "Deletes the specified network security group.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete network security group": { + "$ref": "./examples/NetworkSecurityGroups_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}/securityRules": { + "get": { + "operationId": "SecurityRules_ListByNetworkSecurityGroup", + "tags": [ + "SecurityRules" + ], + "description": "Gets all security rules in a Network Security Group.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SecurityRuleListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List network security rules in network security group": { + "$ref": "./examples/SecurityRules_ListByNetworkSecurityGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}": { + "get": { + "operationId": "SecurityRules_Get", + "tags": [ + "SecurityRules" + ], + "description": "Gets the specified security rule.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "securityRuleName", + "in": "path", + "description": "Name of the security rule.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SecurityRule" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get network security rule in network security group": { + "$ref": "./examples/SecurityRules_Get.json" + } + } + }, + "put": { + "operationId": "SecurityRules_CreateOrUpdate", + "tags": [ + "SecurityRules" + ], + "description": "Creates or updates a security rule in the specified resource group.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "securityRuleName", + "in": "path", + "description": "Name of the security rule.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/SecurityRule" + } + } + ], + "responses": { + "200": { + "description": "Resource 'SecurityRule' update operation succeeded", + "schema": { + "$ref": "#/definitions/SecurityRule" + } + }, + "201": { + "description": "Resource 'SecurityRule' create operation succeeded", + "schema": { + "$ref": "#/definitions/SecurityRule" + }, + "headers": { + "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": { + "SecurityRulesCreateOrUpdate": { + "$ref": "./examples/SecurityRules_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "SecurityRules_Delete", + "tags": [ + "SecurityRules" + ], + "description": "Deletes the specified security rule.", + "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": "networkSecurityGroupName", + "in": "path", + "description": "Name of the network security group", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "securityRuleName", + "in": "path", + "description": "Name of the security rule.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SecurityRulesDelete": { + "$ref": "./examples/SecurityRules_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers": { + "get": { + "operationId": "StorageContainers_ListByResourceGroup", + "tags": [ + "StorageContainers" + ], + "description": "Lists all of the storage containers in the specified resource group. Use the nextLink property in the response to get the next page of storage containers.", + "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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/StorageContainerListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListStorageContainerByResourceGroup": { + "$ref": "./examples/StorageContainers_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}": { + "get": { + "operationId": "StorageContainers_Get", + "tags": [ + "StorageContainers" + ], + "description": "Gets a storage container", + "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": "storageContainerName", + "in": "path", + "description": "Name of the storage container", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/StorageContainer" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetStorageContainer": { + "$ref": "./examples/StorageContainers_Get.json" + } + } + }, + "put": { + "operationId": "StorageContainers_CreateOrUpdate", + "tags": [ + "StorageContainers" + ], + "description": "The operation to create or update a storage container. Please note some properties can be set only during storage container creation.", + "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": "storageContainerName", + "in": "path", + "description": "Name of the storage container", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/StorageContainer" + } + } + ], + "responses": { + "200": { + "description": "Resource 'StorageContainer' update operation succeeded", + "schema": { + "$ref": "#/definitions/StorageContainer" + } + }, + "201": { + "description": "Resource 'StorageContainer' create operation succeeded", + "schema": { + "$ref": "#/definitions/StorageContainer" + }, + "headers": { + "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": { + "PutStorageContainer": { + "$ref": "./examples/StorageContainers_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "StorageContainers_Update", + "tags": [ + "StorageContainers" + ], + "description": "The operation to update a storage container.", + "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": "storageContainerName", + "in": "path", + "description": "Name of the storage container", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/StorageContainerTagsUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/StorageContainer" + } + }, + "202": { + "description": "Resource update request 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": { + "UpdateStorageContainer": { + "$ref": "./examples/StorageContainers_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "StorageContainers_Delete", + "tags": [ + "StorageContainers" + ], + "description": "The operation to delete a storage container.", + "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": "storageContainerName", + "in": "path", + "description": "Name of the storage container", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteStorageContainer": { + "$ref": "./examples/StorageContainers_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks": { + "get": { + "operationId": "VirtualHardDisks_ListByResourceGroup", + "tags": [ + "VirtualHardDisks" + ], + "description": "Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to get the next page of virtual hard disks.", + "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" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualHardDiskListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListVirtualHardDiskByResourceGroup": { + "$ref": "./examples/VirtualHardDisks_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}": { + "get": { + "operationId": "VirtualHardDisks_Get", + "tags": [ + "VirtualHardDisks" + ], + "description": "Gets a virtual hard disk", + "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": "virtualHardDiskName", + "in": "path", + "description": "Name of the virtual hard disk", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualHardDisk" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetVirtualHardDisk": { + "$ref": "./examples/VirtualHardDisks_Get.json" + } + } + }, + "put": { + "operationId": "VirtualHardDisks_CreateOrUpdate", + "tags": [ + "VirtualHardDisks" + ], + "description": "The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.", + "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": "virtualHardDiskName", + "in": "path", + "description": "Name of the virtual hard disk", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualHardDisk" + } + } + ], + "responses": { + "200": { + "description": "Resource 'VirtualHardDisk' update operation succeeded", + "schema": { + "$ref": "#/definitions/VirtualHardDisk" + } + }, + "201": { + "description": "Resource 'VirtualHardDisk' create operation succeeded", + "schema": { + "$ref": "#/definitions/VirtualHardDisk" + }, + "headers": { + "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": { + "PutVirtualHardDisk": { + "$ref": "./examples/VirtualHardDisks_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "VirtualHardDisks_Update", + "tags": [ + "VirtualHardDisks" + ], + "description": "The operation to update a virtual hard disk.", + "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": "virtualHardDiskName", + "in": "path", + "description": "Name of the virtual hard disk", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualHardDiskTagsUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/VirtualHardDisk" + } + }, + "202": { + "description": "Resource update request 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": { + "UpdateVirtualHardDisk": { + "$ref": "./examples/VirtualHardDisks_Update.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "VirtualHardDisks_Delete", + "tags": [ + "VirtualHardDisks" + ], + "description": "The operation to delete a virtual hard disk.", + "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": "virtualHardDiskName", + "in": "path", + "description": "Name of the virtual hard disk", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion 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." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteVirtualHardDisk": { + "$ref": "./examples/VirtualHardDisks_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "AttestBootIntegrityPropertyEnum": { + "type": "string", + "description": "The status of whether the list of boot integrity properties is validated.", + "enum": [ + "Valid", + "Invalid", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestBootIntegrityPropertyEnum", + "modelAsString": true, + "values": [ + { + "name": "Valid", + "value": "Valid", + "description": "Boot integrity properties are valid" + }, + { + "name": "Invalid", + "value": "Invalid", + "description": "Boot integrity properties are invalid" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Boot integrity properties status is unknown" + } + ] + } + }, + "AttestCertPropertyEnum": { + "type": "string", + "description": "The status of whether attestation certificate is validated.", + "enum": [ + "Valid", + "Invalid", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestCertPropertyEnum", + "modelAsString": true, + "values": [ + { + "name": "Valid", + "value": "Valid", + "description": "Attestation certificate is valid" + }, + { + "name": "Invalid", + "value": "Invalid", + "description": "Attestation certificate is invalid" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Attestation certificate status is unknown" + } + ] + } + }, + "AttestHealthStatusEnum": { + "type": "string", + "description": "The health status of attestation validation and parsing", + "enum": [ + "Pending", + "Healthy", + "Unhealthy", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestHealthStatusEnum", + "modelAsString": true, + "values": [ + { + "name": "Pending", + "value": "Pending", + "description": "Attestation validation and parsing pending" + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "Attestation validation and parsing healthy" + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "Attestation validation and parsing unhealthy" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Attestation validation and parsing status is unknown" + } + ] + } + }, + "AttestSecureBootPropertyEnum": { + "type": "string", + "description": "The status of whether secure boot is enabled.", + "enum": [ + "Enabled", + "Disabled", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestSecureBootPropertyEnum", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Secure boot enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Secure boot disabled" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Secure boot status is unknown" + } + ] + } + }, + "AttestationStatus": { + "type": "object", + "description": "The attestation status of the virtual machine", + "properties": { + "properties": { + "$ref": "#/definitions/AttestationStatusProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "AttestationStatusProperties": { + "type": "object", + "description": "Defines the attestation status properties", + "properties": { + "attestSecureBootEnabled": { + "type": "string", + "description": "The status of whether secure boot is enabled.", + "default": "Unknown", + "enum": [ + "Enabled", + "Disabled", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestSecureBootPropertyEnum", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Secure boot enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Secure boot disabled" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Secure boot status is unknown" + } + ] + }, + "readOnly": true + }, + "attestationCertValidated": { + "type": "string", + "description": "The status of whether attestation certificate is validated.", + "default": "Unknown", + "enum": [ + "Valid", + "Invalid", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestCertPropertyEnum", + "modelAsString": true, + "values": [ + { + "name": "Valid", + "value": "Valid", + "description": "Attestation certificate is valid" + }, + { + "name": "Invalid", + "value": "Invalid", + "description": "Attestation certificate is invalid" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Attestation certificate status is unknown" + } + ] + }, + "readOnly": true + }, + "bootIntegrityValidated": { + "type": "string", + "description": "The status of whether the list of boot integrity properties is validated.", + "default": "Unknown", + "enum": [ + "Valid", + "Invalid", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestBootIntegrityPropertyEnum", + "modelAsString": true, + "values": [ + { + "name": "Valid", + "value": "Valid", + "description": "Boot integrity properties are valid" + }, + { + "name": "Invalid", + "value": "Invalid", + "description": "Boot integrity properties are invalid" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Boot integrity properties status is unknown" + } + ] + }, + "readOnly": true + }, + "linuxKernelVersion": { + "type": "string", + "description": "kernel version string for Linux VM.", + "readOnly": true + }, + "healthStatus": { + "type": "string", + "description": "The health status of attestation validation and parsing", + "default": "Unknown", + "enum": [ + "Pending", + "Healthy", + "Unhealthy", + "Unknown" + ], + "x-ms-enum": { + "name": "AttestHealthStatusEnum", + "modelAsString": true, + "values": [ + { + "name": "Pending", + "value": "Pending", + "description": "Attestation validation and parsing pending" + }, + { + "name": "Healthy", + "value": "Healthy", + "description": "Attestation validation and parsing healthy" + }, + { + "name": "Unhealthy", + "value": "Unhealthy", + "description": "Attestation validation and parsing unhealthy" + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Attestation validation and parsing status is unknown" + } + ] + }, + "readOnly": true + }, + "timestamp": { + "type": "string", + "description": "The time stamp of the last time attestation token is validated by relying party service.", + "readOnly": true + }, + "errorMessage": { + "type": "string", + "description": "The error message of attestation validation and parsing", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the virtual machine instance.", + "readOnly": true + } + } + }, + "CloudInitDataSource": { + "type": "string", + "description": "Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]", + "enum": [ + "NoCloud", + "Azure" + ], + "x-ms-enum": { + "name": "CloudInitDataSource", + "modelAsString": true, + "values": [ + { + "name": "NoCloud", + "value": "NoCloud", + "description": "NoCloud is used as the datasource" + }, + { + "name": "Azure", + "value": "Azure", + "description": "Azure is used as the datasource" + } + ] + } + }, + "DiskFileFormat": { + "type": "string", + "description": "The format of the actual VHD file [vhd, vhdx]", + "enum": [ + "vhdx", + "vhd" + ], + "x-ms-enum": { + "name": "DiskFileFormat", + "modelAsString": true, + "values": [ + { + "name": "vhdx", + "value": "vhdx", + "description": "VHDX file format" + }, + { + "name": "vhd", + "value": "vhd", + "description": "VHD file format" + } + ] + } + }, + "ExtendedLocation": { + "type": "object", + "description": "The complex type of the extended location.", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "$ref": "#/definitions/ExtendedLocationTypes", + "description": "The type of the extended location." + } + } + }, + "ExtendedLocationTypes": { + "type": "string", + "description": "The type of extendedLocation.", + "enum": [ + "CustomLocation" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true, + "values": [ + { + "name": "CustomLocation", + "value": "CustomLocation", + "description": "Custom extended location type" + } + ] + } + }, + "GalleryDiskImage": { + "type": "object", + "description": "This is the disk image base class.", + "properties": { + "sizeInMB": { + "type": "integer", + "format": "int64", + "description": "This property indicates the size of the VHD to be created.", + "readOnly": true + } + } + }, + "GalleryImage": { + "type": "object", + "description": "The gallery images resource definition.", + "properties": { + "properties": { + "$ref": "#/definitions/GalleryImageProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true, + "x-ms-client-flatten": true + }, + "GalleryImageIdentifier": { + "type": "object", + "description": "This is the gallery image definition identifier.", + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery image definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery image definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery image definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ] + }, + "GalleryImageListResult": { + "type": "object", + "description": "The response of a GalleryImage list operation.", + "properties": { + "value": { + "type": "array", + "description": "The GalleryImage items on this page", + "items": { + "$ref": "#/definitions/GalleryImage" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "GalleryImageProperties": { + "type": "object", + "description": "Properties under the gallery image resource", + "properties": { + "containerId": { + "type": "string", + "format": "arm-id", + "description": "Storage ContainerID of the storage container to be used for gallery image", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/storageContainers" + } + ] + } + }, + "imagePath": { + "type": "string", + "format": "password", + "description": "location of the image the gallery image should be created from", + "x-ms-secret": true + }, + "osType": { + "$ref": "#/definitions/OperatingSystemTypes", + "description": "Operating system type that the gallery image uses [Windows, Linux]" + }, + "cloudInitDataSource": { + "$ref": "#/definitions/CloudInitDataSource", + "description": "Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]" + }, + "hyperVGeneration": { + "$ref": "#/definitions/HyperVGeneration", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]" + }, + "identifier": { + "$ref": "#/definitions/GalleryImageIdentifier", + "description": "This is the gallery image definition identifier." + }, + "version": { + "$ref": "#/definitions/GalleryImageVersion", + "description": "Specifies information about the gallery image version that you want to create or update." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the gallery image.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/GalleryImageStatus", + "description": "The observed state of gallery images", + "readOnly": true + } + }, + "required": [ + "osType" + ] + }, + "GalleryImageStatus": { + "type": "object", + "description": "The observed state of gallery images", + "properties": { + "errorCode": { + "type": "string", + "description": "GalleryImage provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "$ref": "#/definitions/GalleryImageStatusProvisioningStatus", + "description": "provisioning status of the gallery image" + }, + "downloadStatus": { + "$ref": "#/definitions/GalleryImageStatusDownloadStatus", + "description": "The download status of the gallery image" + }, + "progressPercentage": { + "type": "integer", + "format": "int64", + "description": "The progress of the operation in percentage" + } + }, + "x-ms-client-flatten": true + }, + "GalleryImageStatusDownloadStatus": { + "type": "object", + "description": "The download status of the gallery image", + "properties": { + "downloadSizeInMB": { + "type": "integer", + "format": "int64", + "description": "The downloaded sized of the image in MB" + } + } + }, + "GalleryImageStatusProvisioningStatus": { + "type": "object", + "description": "The status of the operation performed on the gallery image", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the gallery image" + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]" + } + } + }, + "GalleryImageTagsUpdate": { + "type": "object", + "description": "The type used for updating tags in GalleryImage resources.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "GalleryImageVersion": { + "type": "object", + "description": "Specifies information about the gallery image version that you want to create or update.", + "properties": { + "name": { + "type": "string", + "description": "This is the version of the gallery image." + }, + "properties": { + "$ref": "#/definitions/GalleryImageVersionProperties", + "description": "Describes the properties of a gallery image version.", + "x-ms-client-flatten": true + } + } + }, + "GalleryImageVersionProperties": { + "type": "object", + "description": "Describes the properties of a gallery image version.", + "properties": { + "storageProfile": { + "$ref": "#/definitions/GalleryImageVersionStorageProfile", + "description": "This is the storage profile of a Gallery Image Version." + } + }, + "required": [ + "storageProfile" + ] + }, + "GalleryImageVersionStorageProfile": { + "type": "object", + "description": "This is the storage profile of a Gallery Image Version.", + "properties": { + "osDiskImage": { + "$ref": "#/definitions/GalleryOSDiskImage", + "description": "This is the OS disk image." + } + } + }, + "GalleryImagesUpdateRequest": { + "type": "object", + "description": "The gallery images resource patch definition.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags", + "additionalProperties": { + "type": "string" + } + } + } + }, + "GalleryOSDiskImage": { + "type": "object", + "description": "This is the OS disk image.", + "properties": { + "sizeInMB": { + "type": "integer", + "format": "int64", + "description": "This property indicates the size of the VHD to be created.", + "readOnly": true + } + } + }, + "GuestAgent": { + "type": "object", + "description": "Defines the GuestAgent.", + "properties": { + "properties": { + "$ref": "#/definitions/GuestAgentProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "GuestAgentInstallStatus": { + "type": "object", + "description": "Defines the status of a guest agent installation.", + "properties": { + "vmUuid": { + "type": "string", + "description": "Specifies the VM's unique SMBIOS ID.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/StatusTypes", + "description": "The installation status of the hybrid machine agent installation.", + "readOnly": true + }, + "lastStatusChange": { + "type": "string", + "format": "date-time", + "description": "The time of the last status change.", + "readOnly": true + }, + "agentVersion": { + "type": "string", + "description": "The hybrid machine agent full version.", + "readOnly": true + }, + "errorDetails": { + "type": "array", + "description": "Details about the error state.", + "items": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorDetail" + }, + "readOnly": true, + "x-ms-identifiers": [] + } + } + }, + "GuestAgentListResult": { + "type": "object", + "description": "The response of a GuestAgent list operation.", + "properties": { + "value": { + "type": "array", + "description": "The GuestAgent items on this page", + "items": { + "$ref": "#/definitions/GuestAgent" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "GuestAgentProperties": { + "type": "object", + "description": "Defines the resource properties.", + "properties": { + "credentials": { + "$ref": "#/definitions/GuestCredential", + "description": "Username / Password Credentials to provision guest agent." + }, + "provisioningAction": { + "$ref": "#/definitions/ProvisioningAction", + "description": "The guest agent provisioning action." + }, + "status": { + "type": "string", + "description": "The guest agent status.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the virtual machine instance.", + "readOnly": true + } + } + }, + "GuestCredential": { + "type": "object", + "description": "Username / Password Credentials to connect to guest.", + "properties": { + "username": { + "type": "string", + "description": "The username to connect with the guest." + }, + "password": { + "type": "string", + "format": "password", + "description": "The password to connect with the guest.", + "x-ms-mutability": [ + "update", + "create" + ], + "x-ms-secret": true + } + } + }, + "HardwareProfileUpdate": { + "type": "object", + "description": "HardwareProfile - Specifies the hardware settings for the virtual machine instance.", + "properties": { + "vmSize": { + "$ref": "#/definitions/VmSizeEnum", + "description": "VM Size Enum" + }, + "processors": { + "type": "integer", + "format": "int32", + "description": "number of processors for the virtual machine instance" + }, + "memoryMB": { + "type": "integer", + "format": "int64", + "description": "RAM in MB for the virtual machine instance" + } + } + }, + "HttpProxyConfiguration": { + "type": "object", + "description": "HTTP Proxy configuration for the VM.", + "properties": { + "httpProxy": { + "type": "string", + "format": "password", + "description": "The HTTP proxy server endpoint to use.", + "x-ms-secret": true + }, + "httpsProxy": { + "type": "string", + "format": "password", + "description": "The HTTPS proxy server endpoint to use.", + "x-ms-secret": true + }, + "noProxy": { + "type": "array", + "description": "The endpoints that should not go through proxy.", + "items": { + "type": "string" + } + }, + "trustedCa": { + "type": "string", + "description": "Alternative CA cert to use for connecting to proxy servers." + } + } + }, + "HybridIdentityMetadata": { + "type": "object", + "description": "Defines the HybridIdentityMetadata.", + "properties": { + "properties": { + "$ref": "#/definitions/HybridIdentityMetadataProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "x-ms-azure-resource": true + }, + "HybridIdentityMetadataListResult": { + "type": "object", + "description": "The response of a HybridIdentityMetadata list operation.", + "properties": { + "value": { + "type": "array", + "description": "The HybridIdentityMetadata items on this page", + "items": { + "$ref": "#/definitions/HybridIdentityMetadata" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "HybridIdentityMetadataProperties": { + "type": "object", + "description": "Defines the resource properties.", + "properties": { + "resourceUid": { + "type": "string", + "description": "The unique identifier for the resource." + }, + "publicKey": { + "type": "string", + "description": "The Public Key." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "Identity for the resource.", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the virtual machine instance.", + "readOnly": true + } + } + }, + "HyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": true, + "values": [ + { + "name": "V1", + "value": "V1", + "description": "Generation 1 (V1) hypervisor" + }, + { + "name": "V2", + "value": "V2", + "description": "Generation 2 (V2) hypervisor" + } + ] + } + }, + "IPConfiguration": { + "type": "object", + "description": "InterfaceIPConfiguration IPConfiguration in a network interface.", + "properties": { + "name": { + "type": "string", + "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "properties": { + "$ref": "#/definitions/IPConfigurationProperties", + "description": "InterfaceIPConfigurationPropertiesFormat properties of IP configuration." + } + }, + "x-ms-client-flatten": true + }, + "IPConfigurationProperties": { + "type": "object", + "description": "InterfaceIPConfigurationPropertiesFormat properties of IP configuration.", + "properties": { + "gateway": { + "type": "string", + "description": "Gateway for network interface", + "readOnly": true + }, + "prefixLength": { + "type": "string", + "description": "prefixLength for network interface", + "readOnly": true + }, + "privateIPAddress": { + "type": "string", + "description": "PrivateIPAddress - Private IP address of the IP configuration." + }, + "subnet": { + "$ref": "#/definitions/LogicalNetworkArmReference", + "description": "Subnet - Name of Subnet bound to the IP configuration." + } + } + }, + "IPPool": { + "type": "object", + "description": "Describes IPPool", + "properties": { + "name": { + "type": "string", + "description": "Name of the IP-Pool" + }, + "ipPoolType": { + "$ref": "#/definitions/IPPoolTypeEnum", + "description": "Type of the IP Pool [vm, vippool]" + }, + "start": { + "type": "string", + "description": "Start of the IP address pool" + }, + "end": { + "type": "string", + "description": "End of the IP address pool" + }, + "info": { + "$ref": "#/definitions/IPPoolInfo", + "description": "IPPool info" + } + } + }, + "IPPoolInfo": { + "type": "object", + "description": "IP Pool info", + "properties": { + "used": { + "type": "string", + "description": "Number of IP addresses allocated from the IP Pool", + "readOnly": true + }, + "available": { + "type": "string", + "description": "Number of IP addresses available in the IP Pool", + "readOnly": true + } + } + }, + "IPPoolTypeEnum": { + "type": "string", + "description": "Type of the IP Pool [vm, vippool]", + "enum": [ + "vm", + "vippool" + ], + "x-ms-enum": { + "name": "IPPoolTypeEnum", + "modelAsString": true, + "values": [ + { + "name": "vm", + "value": "vm", + "description": "Virtual Machine IP Pool" + }, + { + "name": "vippool", + "value": "vippool", + "description": "VIP Pool" + } + ] + } + }, + "Identity": { + "type": "object", + "description": "Identity for the resource.", + "properties": { + "principalId": { + "type": "string", + "description": "The principal ID of resource identity. The value must be an UUID.", + "readOnly": true + }, + "tenantId": { + "type": "string", + "description": "The tenant ID of resource. The value must be an UUID.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The identity type.", + "enum": [ + "SystemAssigned" + ], + "x-ms-enum": { + "modelAsString": false + } + } + } + }, + "ImageArmReference": { + "type": "object", + "description": "The ARM ID for a Gallery Image.", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for an image resource used by the virtual machine instance.", + "x-ms-mutability": [ + "read", + "create" + ], + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/galleryImages" + }, + { + "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages" + } + ] + } + } + } + }, + "InstanceViewStatus": { + "type": "object", + "description": "Instance view status.", + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "$ref": "#/definitions/StatusLevelTypes", + "description": "The level code." + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + } + }, + "InterfaceDNSSettings": { + "type": "object", + "description": "DNS Settings of the interface", + "properties": { + "dnsServers": { + "type": "array", + "description": "List of DNS server IP Addresses for the interface", + "items": { + "type": "string" + } + } + } + }, + "IpAllocationMethodEnum": { + "type": "string", + "description": "IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'", + "enum": [ + "Dynamic", + "Static" + ], + "x-ms-enum": { + "name": "IpAllocationMethodEnum", + "modelAsString": true, + "values": [ + { + "name": "Dynamic", + "value": "Dynamic", + "description": "Dynamic IP allocation method" + }, + { + "name": "Static", + "value": "Static", + "description": "Static IP allocation method" + } + ] + } + }, + "LogicalNetwork": { + "type": "object", + "description": "The logical network resource definition.", + "properties": { + "properties": { + "$ref": "#/definitions/LogicalNetworkProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true, + "x-ms-client-flatten": true + }, + "LogicalNetworkArmReference": { + "type": "object", + "description": "The ARM ID for a Logical Network.", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Logical Network.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/logicalNetworks" + } + ] + } + } + } + }, + "LogicalNetworkListResult": { + "type": "object", + "description": "The response of a LogicalNetwork list operation.", + "properties": { + "value": { + "type": "array", + "description": "The LogicalNetwork items on this page", + "items": { + "$ref": "#/definitions/LogicalNetwork" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "LogicalNetworkProperties": { + "type": "object", + "description": "Properties under the logical network resource", + "properties": { + "dhcpOptions": { + "$ref": "#/definitions/LogicalNetworkPropertiesDhcpOptions", + "description": "DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options." + }, + "subnets": { + "type": "array", + "description": "Subnet - list of subnets under the logical network", + "items": { + "$ref": "#/definitions/Subnet" + }, + "x-ms-identifiers": [] + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the logical network.", + "readOnly": true + }, + "vmSwitchName": { + "type": "string", + "description": "name of the network switch to be used for VMs" + }, + "status": { + "$ref": "#/definitions/LogicalNetworkStatus", + "description": "The observed state of logical networks", + "readOnly": true + } + } + }, + "LogicalNetworkPropertiesDhcpOptions": { + "type": "object", + "description": "DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options.", + "properties": { + "dnsServers": { + "type": "array", + "description": "The list of DNS servers IP addresses.", + "items": { + "type": "string" + } + } + } + }, + "LogicalNetworkStatus": { + "type": "object", + "description": "The observed state of logical networks", + "properties": { + "errorCode": { + "type": "string", + "description": "LogicalNetwork provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "$ref": "#/definitions/LogicalNetworkStatusProvisioningStatus", + "description": "Logical network provisioning status" + } + }, + "x-ms-client-flatten": true + }, + "LogicalNetworkStatusProvisioningStatus": { + "type": "object", + "description": "Describes the status of the provisioning.", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the logical network" + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the operation performed on the logical network [Succeeded, Failed, InProgress]" + } + } + }, + "LogicalNetworksUpdateRequest": { + "type": "object", + "description": "The logical network resource patch definition.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MarketplaceGalleryImage": { + "type": "object", + "description": "The marketplace gallery image resource definition.", + "properties": { + "properties": { + "$ref": "#/definitions/MarketplaceGalleryImageProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true, + "x-ms-client-flatten": true + }, + "MarketplaceGalleryImageListResult": { + "type": "object", + "description": "The response of a MarketplaceGalleryImage list operation.", + "properties": { + "value": { + "type": "array", + "description": "The MarketplaceGalleryImage items on this page", + "items": { + "$ref": "#/definitions/MarketplaceGalleryImage" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "MarketplaceGalleryImageProperties": { + "type": "object", + "description": "Properties under the marketplace gallery image resource", + "properties": { + "containerId": { + "type": "string", + "format": "arm-id", + "description": "Storage ContainerID of the storage container to be used for marketplace gallery image", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/storageContainers" + } + ] + } + }, + "osType": { + "$ref": "#/definitions/OperatingSystemTypes", + "description": "Operating system type that the gallery image uses [Windows, Linux]" + }, + "cloudInitDataSource": { + "$ref": "#/definitions/CloudInitDataSource", + "description": "Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]" + }, + "hyperVGeneration": { + "$ref": "#/definitions/HyperVGeneration", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]" + }, + "identifier": { + "$ref": "#/definitions/GalleryImageIdentifier", + "description": "This is the gallery image definition identifier." + }, + "version": { + "$ref": "#/definitions/GalleryImageVersion", + "description": "Specifies information about the gallery image version that you want to create or update." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the marketplace gallery image.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/MarketplaceGalleryImageStatus", + "description": "The observed state of marketplace gallery images", + "readOnly": true + } + }, + "required": [ + "osType" + ] + }, + "MarketplaceGalleryImageStatus": { + "type": "object", + "description": "The observed state of marketplace gallery images", + "properties": { + "errorCode": { + "type": "string", + "description": "MarketplaceGalleryImage provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "$ref": "#/definitions/MarketplaceGalleryImageStatusProvisioningStatus", + "description": "Provisioning status of marketplace gallery image" + }, + "downloadStatus": { + "$ref": "#/definitions/MarketplaceGalleryImageStatusDownloadStatus", + "description": "The download status of the gallery image" + }, + "progressPercentage": { + "type": "integer", + "format": "int64", + "description": "The progress of the operation in percentage" + } + }, + "x-ms-client-flatten": true + }, + "MarketplaceGalleryImageStatusDownloadStatus": { + "type": "object", + "description": "The download status of the gallery image", + "properties": { + "downloadSizeInMB": { + "type": "integer", + "format": "int64", + "description": "The downloaded sized of the image in MB" + } + } + }, + "MarketplaceGalleryImageStatusProvisioningStatus": { + "type": "object", + "description": "Marketplace GalleryImage provisioning status", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the gallery image" + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]" + } + } + }, + "MarketplaceGalleryImageTagsUpdate": { + "type": "object", + "description": "The type used for updating tags in MarketplaceGalleryImage resources.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "MarketplaceGalleryImagesUpdateRequest": { + "type": "object", + "description": "The marketplace gallery image resource patch definition.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NetworkInterface": { + "type": "object", + "description": "The network interface resource definition.", + "properties": { + "properties": { + "$ref": "#/definitions/NetworkInterfaceProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true, + "x-ms-client-flatten": true + }, + "NetworkInterfaceArmReference": { + "type": "object", + "description": "The ARM ID for a Network Interface.", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Network Interface.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/networkInterfaces" + } + ] + } + } + } + }, + "NetworkInterfaceListResult": { + "type": "object", + "description": "The response of a NetworkInterface list operation.", + "properties": { + "value": { + "type": "array", + "description": "The NetworkInterface items on this page", + "items": { + "$ref": "#/definitions/NetworkInterface" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "NetworkInterfaceProperties": { + "type": "object", + "description": "Properties under the network interface resource", + "properties": { + "ipConfigurations": { + "type": "array", + "description": "IPConfigurations - A list of IPConfigurations of the network interface.", + "items": { + "$ref": "#/definitions/IPConfiguration" + }, + "x-ms-identifiers": [] + }, + "macAddress": { + "type": "string", + "description": "MacAddress - The MAC address of the network interface." + }, + "dnsSettings": { + "$ref": "#/definitions/InterfaceDNSSettings", + "description": "DNS Settings for the interface" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the network interface.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/NetworkInterfaceStatus", + "description": "The observed state of network interfaces", + "readOnly": true + }, + "networkSecurityGroup": { + "$ref": "#/definitions/NetworkSecurityGroupArmReference", + "description": "NetworkSecurityGroup - Network Security Group attached to the network interface." + } + } + }, + "NetworkInterfaceStatus": { + "type": "object", + "description": "The observed state of network interfaces", + "properties": { + "errorCode": { + "type": "string", + "description": "NetworkInterface provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "$ref": "#/definitions/NetworkInterfaceStatusProvisioningStatus", + "description": "Network interface provisioning status" + } + }, + "x-ms-client-flatten": true + }, + "NetworkInterfaceStatusProvisioningStatus": { + "type": "object", + "description": "Network interface provisioning status", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the network interface" + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the operation performed on the network interface [Succeeded, Failed, InProgress]" + } + } + }, + "NetworkInterfaceTagsUpdate": { + "type": "object", + "description": "The type used for updating tags in NetworkInterface resources.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NetworkInterfacesUpdateRequest": { + "type": "object", + "description": "The network interface resource patch definition.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags", + "additionalProperties": { + "type": "string" + } + } + } + }, + "NetworkProfileUpdate": { + "type": "object", + "description": "NetworkProfile - describes the network update configuration the virtual machine instance", + "properties": { + "networkInterfaces": { + "type": "array", + "description": "NetworkInterfaces - list of network interfaces to be attached to the virtual machine instance", + "items": { + "$ref": "#/definitions/NetworkInterfaceArmReference" + }, + "x-ms-identifiers": [] + } + } + }, + "NetworkSecurityGroup": { + "type": "object", + "description": "NetworkSecurityGroup resource.", + "properties": { + "properties": { + "$ref": "#/definitions/NetworkSecurityGroupProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "eTag": { + "type": "string", + "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ] + }, + "NetworkSecurityGroupArmReference": { + "type": "object", + "description": "The ARM ID for a Network Security Group.", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Network Security Group.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/networkSecurityGroups" + } + ] + } + } + } + }, + "NetworkSecurityGroupListResult": { + "type": "object", + "description": "The response of a NetworkSecurityGroup list operation.", + "properties": { + "value": { + "type": "array", + "description": "The NetworkSecurityGroup items on this page", + "items": { + "$ref": "#/definitions/NetworkSecurityGroup" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "NetworkSecurityGroupProperties": { + "type": "object", + "description": "Network Security Group resource.", + "properties": { + "networkInterfaces": { + "type": "array", + "description": "A collection of references to network interfaces that are currently using this NSG.", + "items": { + "$ref": "#/definitions/NetworkInterfaceArmReference" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "subnets": { + "type": "array", + "description": "A collection of references to logical networks that are currently using this NSG", + "items": { + "$ref": "#/definitions/LogicalNetworkArmReference" + }, + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "The provisioning state of the network security group resource.", + "readOnly": true + } + } + }, + "NetworkSecurityGroupTagsUpdate": { + "type": "object", + "description": "The type used for updating tags in NetworkSecurityGroup resources.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "OperatingSystemTypes": { + "type": "string", + "description": "Operating system type that the gallery image uses [Windows, Linux]", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": true, + "values": [ + { + "name": "Windows", + "value": "Windows", + "description": "Windows operating system" + }, + { + "name": "Linux", + "value": "Linux", + "description": "Linux operating system" + } + ] + } + }, + "OsProfileUpdate": { + "type": "object", + "description": "OsProfile - describes the update configuration of the operating system", + "properties": { + "computerName": { + "type": "string", + "description": "ComputerName - name of the computer" + }, + "linuxConfiguration": { + "$ref": "#/definitions/OsProfileUpdateLinuxConfiguration", + "description": "Linux configuration properties" + }, + "windowsConfiguration": { + "$ref": "#/definitions/OsProfileUpdateWindowsConfiguration", + "description": "Windows configuration properties" + } + } + }, + "OsProfileUpdateLinuxConfiguration": { + "type": "object", + "description": "OSProfile update linux configuration", + "properties": { + "provisionVMAgent": { + "type": "boolean", + "description": "Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process." + }, + "provisionVMConfigAgent": { + "type": "boolean", + "description": "Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process." + } + } + }, + "OsProfileUpdateWindowsConfiguration": { + "type": "object", + "description": "OSProfile update windows configuration", + "properties": { + "provisionVMAgent": { + "type": "boolean", + "description": "Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process." + }, + "provisionVMConfigAgent": { + "type": "boolean", + "description": "Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process." + } + } + }, + "PowerStateEnum": { + "type": "string", + "description": "The power state of the virtual machine instance", + "enum": [ + "Deallocated", + "Deallocating", + "Running", + "Starting", + "Stopped", + "Stopping", + "Paused", + "Saved", + "Unknown" + ], + "x-ms-enum": { + "name": "PowerStateEnum", + "modelAsString": true, + "values": [ + { + "name": "Deallocated", + "value": "Deallocated", + "description": "Virtual machine deallocated" + }, + { + "name": "Deallocating", + "value": "Deallocating", + "description": "Virtual machine deallocating" + }, + { + "name": "Running", + "value": "Running", + "description": "Virtual machine running" + }, + { + "name": "Starting", + "value": "Starting", + "description": "Virtual machine starting" + }, + { + "name": "Stopped", + "value": "Stopped", + "description": "Virtual machine stopped" + }, + { + "name": "Stopping", + "value": "Stopping", + "description": "Virtual machine stopping" + }, + { + "name": "Paused", + "value": "Paused", + "description": "Virtual machine paused" + }, + { + "name": "Saved", + "value": "Saved", + "description": "Virtual machine Saved," + }, + { + "name": "Unknown", + "value": "Unknown", + "description": "Power state of the virtual machine is unknown" + } + ] + } + }, + "ProvisioningAction": { + "type": "string", + "description": "Defines the different types of operations for guest agent.", + "enum": [ + "install", + "uninstall", + "repair" + ], + "x-ms-enum": { + "name": "ProvisioningAction", + "modelAsString": true, + "values": [ + { + "name": "install", + "value": "install", + "description": "Install guest agent" + }, + { + "name": "uninstall", + "value": "uninstall", + "description": "Uninstall guest agent" + }, + { + "name": "repair", + "value": "repair", + "description": "Repair guest agent" + } + ] + } + }, + "ProvisioningStateEnum": { + "type": "string", + "description": "Provisioning state of the resource.", + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Provisioning has succeeded" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Provisioning has failed" + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "Provisioning is in progress" + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "Provisioning has been accepted" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Deletion of the resource is in progress" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Provisioning has been canceled" + } + ] + }, + "readOnly": true + }, + "Route": { + "type": "object", + "description": "Route - Route resource.", + "properties": { + "properties": { + "$ref": "#/definitions/RouteProperties", + "description": "Properties of the route.", + "x-ms-client-flatten": true + }, + "name": { + "type": "string", + "description": "Name - name of the subnet", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$" + } + } + }, + "RouteProperties": { + "type": "object", + "description": "RoutePropertiesFormat - Route resource.", + "properties": { + "addressPrefix": { + "type": "string", + "description": "The destination CIDR to which the route applies." + }, + "nextHopIpAddress": { + "type": "string", + "description": "The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance." + } + } + }, + "RouteTable": { + "type": "object", + "description": "Route table resource.", + "properties": { + "etag": { + "type": "string", + "description": "A unique read-only string that changes whenever the resource is updated.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Resource name.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Resource type.", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/RouteTableProperties", + "description": "Properties of the route table.", + "x-ms-client-flatten": true + } + } + }, + "RouteTableProperties": { + "type": "object", + "description": "RouteTablePropertiesFormat - Route Table resource.", + "properties": { + "routes": { + "type": "array", + "description": "Collection of routes contained within a route table.", + "items": { + "$ref": "#/definitions/Route" + }, + "x-ms-identifiers": [] + } + } + }, + "SecurityRule": { + "type": "object", + "description": "Security Rule resource.", + "properties": { + "properties": { + "$ref": "#/definitions/SecurityRuleProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "SecurityRuleAccess": { + "type": "string", + "description": "Whether network traffic is allowed or denied.", + "enum": [ + "Allow", + "Deny" + ], + "x-ms-enum": { + "name": "SecurityRuleAccess", + "modelAsString": true, + "values": [ + { + "name": "Allow", + "value": "Allow", + "description": "Network traffic is allowed" + }, + { + "name": "Deny", + "value": "Deny", + "description": "Network traffic is denied" + } + ] + } + }, + "SecurityRuleDirection": { + "type": "string", + "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.", + "enum": [ + "Inbound", + "Outbound" + ], + "x-ms-enum": { + "name": "SecurityRuleDirection", + "modelAsString": true, + "values": [ + { + "name": "Inbound", + "value": "Inbound", + "description": "Rule is evaluated on incoming traffic" + }, + { + "name": "Outbound", + "value": "Outbound", + "description": "Rule is evaluated on outgoing traffic" + } + ] + } + }, + "SecurityRuleListResult": { + "type": "object", + "description": "The response of a SecurityRule list operation.", + "properties": { + "value": { + "type": "array", + "description": "The SecurityRule items on this page", + "items": { + "$ref": "#/definitions/SecurityRule" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "SecurityRuleProperties": { + "type": "object", + "description": "Security rule resource.", + "properties": { + "description": { + "type": "string", + "description": "A description for this rule. Restricted to 140 chars." + }, + "protocol": { + "$ref": "#/definitions/SecurityRuleProtocol", + "description": "Network protocol this rule applies to." + }, + "sourceAddressPrefixes": { + "type": "array", + "description": "The CIDR or source IP ranges.", + "items": { + "type": "string" + } + }, + "destinationAddressPrefixes": { + "type": "array", + "description": "The destination address prefixes. CIDR or destination IP ranges.", + "items": { + "type": "string" + } + }, + "sourcePortRanges": { + "type": "array", + "description": "The source port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.", + "items": { + "type": "string" + } + }, + "destinationPortRanges": { + "type": "array", + "description": "The destination port ranges. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.", + "items": { + "type": "string" + } + }, + "access": { + "$ref": "#/definitions/SecurityRuleAccess", + "description": "The network traffic is allowed or denied." + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." + }, + "direction": { + "$ref": "#/definitions/SecurityRuleDirection", + "description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the SR", + "readOnly": true + } + }, + "required": [ + "protocol", + "access", + "priority", + "direction" + ] + }, + "SecurityRuleProtocol": { + "type": "string", + "description": "Network protocol this rule applies to.", + "enum": [ + "Tcp", + "Udp", + "Icmp", + "*" + ], + "x-ms-enum": { + "name": "SecurityRuleProtocol", + "modelAsString": true, + "values": [ + { + "name": "Tcp", + "value": "Tcp", + "description": "Transmission Control Protocol" + }, + { + "name": "Udp", + "value": "Udp", + "description": "User Datagram Protocol" + }, + { + "name": "Icmp", + "value": "Icmp", + "description": "Internet Control Message Protocol" + }, + { + "name": "Asterisk", + "value": "*", + "description": "Wildcard rule for all protocols" + } + ] + } + }, + "SecurityTypes": { + "type": "string", + "description": "Specifies the SecurityType of the virtual machine. EnableTPM and SecureBootEnabled must be set to true for SecurityType to function.", + "enum": [ + "TrustedLaunch", + "ConfidentialVM" + ], + "x-ms-enum": { + "name": "SecurityTypes", + "modelAsString": true, + "values": [ + { + "name": "TrustedLaunch", + "value": "TrustedLaunch", + "description": "Trusted Launch security type" + }, + { + "name": "ConfidentialVM", + "value": "ConfidentialVM", + "description": "Confidential VM security type" + } + ] + } + }, + "SshConfiguration": { + "type": "object", + "description": "SSH configuration for Linux based VMs running on Azure", + "properties": { + "publicKeys": { + "type": "array", + "description": "The list of SSH public keys used to authenticate with linux based VMs.", + "items": { + "$ref": "#/definitions/SshPublicKey" + }, + "x-ms-identifiers": [ + "path" + ] + } + } + }, + "SshPublicKey": { + "type": "object", + "description": "Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.", + "properties": { + "path": { + "type": "string", + "description": "Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys" + }, + "keyData": { + "type": "string", + "description": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." + } + } + }, + "Status": { + "type": "string", + "description": "The status of the operation performed on the resource [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "Status", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Operation succeeded" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Operation failed" + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "Operation is in progress" + } + ] + }, + "readOnly": true + }, + "StatusLevelTypes": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": true, + "values": [ + { + "name": "Info", + "value": "Info", + "description": "Informational status level" + }, + { + "name": "Warning", + "value": "Warning", + "description": "Warning status level" + }, + { + "name": "Error", + "value": "Error", + "description": "Error status level" + } + ] + } + }, + "StatusTypes": { + "type": "string", + "description": "The installation status of the hybrid machine agent installation.", + "enum": [ + "Succeeded", + "InProgress", + "Failed" + ], + "x-ms-enum": { + "name": "StatusTypes", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Installation succeeded" + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "Installation in progress" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Installation failed" + } + ] + }, + "readOnly": true + }, + "StorageContainer": { + "type": "object", + "description": "The storage container resource definition.", + "properties": { + "properties": { + "$ref": "#/definitions/StorageContainerProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true, + "x-ms-client-flatten": true + }, + "StorageContainerArmReference": { + "type": "object", + "description": "The ARM ID for a Storage Container.", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Storage Container.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/storageContainers" + } + ] + } + } + } + }, + "StorageContainerListResult": { + "type": "object", + "description": "The response of a StorageContainer list operation.", + "properties": { + "value": { + "type": "array", + "description": "The StorageContainer items on this page", + "items": { + "$ref": "#/definitions/StorageContainer" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "StorageContainerProperties": { + "type": "object", + "description": "Properties under the storage container resource", + "properties": { + "path": { + "type": "string", + "description": "Path of the storage container on the disk" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the storage container.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/StorageContainerStatus", + "description": "The observed state of storage containers", + "readOnly": true + } + }, + "required": [ + "path" + ] + }, + "StorageContainerStatus": { + "type": "object", + "description": "The observed state of storage containers", + "properties": { + "errorCode": { + "type": "string", + "description": "StorageContainer provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "availableSizeMB": { + "type": "integer", + "format": "int64", + "description": "Amount of space available on the disk in MB" + }, + "containerSizeMB": { + "type": "integer", + "format": "int64", + "description": "Total size of the disk in MB" + }, + "provisioningStatus": { + "$ref": "#/definitions/StorageContainerStatusProvisioningStatus", + "description": "Storage container's provisioning status" + } + }, + "x-ms-client-flatten": true + }, + "StorageContainerStatusProvisioningStatus": { + "type": "object", + "description": "Storage container provisioning status", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the storage container" + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the operation performed on the storage container [Succeeded, Failed, InProgress]" + } + } + }, + "StorageContainerTagsUpdate": { + "type": "object", + "description": "The type used for updating tags in StorageContainer resources.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "StorageContainersUpdateRequest": { + "type": "object", + "description": "The storage container resource patch definition.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags", + "additionalProperties": { + "type": "string" + } + } + } + }, + "StorageProfileUpdate": { + "type": "object", + "description": "Storage profile update", + "properties": { + "dataDisks": { + "type": "array", + "description": "adds data disks to the virtual machine instance for the update call", + "items": { + "$ref": "#/definitions/VirtualHardDiskArmReference" + } + } + } + }, + "Subnet": { + "type": "object", + "description": "Properties of the subnet.", + "properties": { + "properties": { + "$ref": "#/definitions/SubnetProperties", + "description": "Properties of the subnet.", + "x-ms-client-flatten": true + }, + "name": { + "type": "string", + "description": "Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$" + } + } + }, + "SubnetIpConfigurationReference": { + "type": "object", + "description": "The ARM ID for a Network Interface.", + "properties": { + "ID": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Network Interface.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/networkInterfaces" + } + ] + } + } + } + }, + "SubnetProperties": { + "type": "object", + "description": "Properties of the subnet.", + "properties": { + "addressPrefix": { + "type": "string", + "description": "The address prefix for the subnet: Cidr for this subnet - IPv4, IPv6." + }, + "addressPrefixes": { + "type": "array", + "description": "List of address prefixes for the subnet.", + "items": { + "type": "string" + } + }, + "ipAllocationMethod": { + "$ref": "#/definitions/IpAllocationMethodEnum", + "description": "IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'" + }, + "ipConfigurationReferences": { + "type": "array", + "description": "IPConfigurationReferences - list of IPConfigurationReferences", + "items": { + "$ref": "#/definitions/SubnetIpConfigurationReference" + }, + "x-ms-identifiers": [] + }, + "networkSecurityGroup": { + "$ref": "#/definitions/NetworkSecurityGroupArmReference", + "description": "NetworkSecurityGroup - Network Security Group attached to the logical network." + }, + "routeTable": { + "$ref": "#/definitions/RouteTable", + "description": "Route table resource." + }, + "ipPools": { + "type": "array", + "description": "network associated pool of IP Addresses", + "items": { + "$ref": "#/definitions/IPPool" + }, + "x-ms-identifiers": [] + }, + "vlan": { + "type": "integer", + "format": "int32", + "description": "Vlan to use for the subnet" + } + } + }, + "TagsObject": { + "type": "object", + "description": "Tags object for patch operations.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "VirtualHardDisk": { + "type": "object", + "description": "The virtual hard disk resource definition.", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualHardDiskProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true, + "x-ms-client-flatten": true + }, + "VirtualHardDiskArmReference": { + "type": "object", + "description": "The ARM ID for a Virtual Hard Disk.", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Virtual Hard Disk.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/virtualHardDisks" + } + ] + } + } + } + }, + "VirtualHardDiskListResult": { + "type": "object", + "description": "The response of a VirtualHardDisk list operation.", + "properties": { + "value": { + "type": "array", + "description": "The VirtualHardDisk items on this page", + "items": { + "$ref": "#/definitions/VirtualHardDisk" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "VirtualHardDiskProperties": { + "type": "object", + "description": "Properties under the virtual hard disk resource", + "properties": { + "blockSizeBytes": { + "type": "integer", + "format": "int32", + "description": "Block size in bytes" + }, + "diskSizeGB": { + "type": "integer", + "format": "int64", + "description": "Size of the disk in GB" + }, + "dynamic": { + "type": "boolean", + "description": "Boolean for enabling dynamic sizing on the virtual hard disk" + }, + "logicalSectorBytes": { + "type": "integer", + "format": "int32", + "description": "Logical sector in bytes" + }, + "physicalSectorBytes": { + "type": "integer", + "format": "int32", + "description": "Physical sector in bytes" + }, + "hyperVGeneration": { + "$ref": "#/definitions/HyperVGeneration", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]" + }, + "diskFileFormat": { + "$ref": "#/definitions/DiskFileFormat", + "description": "The format of the actual VHD file [vhd, vhdx]" + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the virtual hard disk.", + "readOnly": true + }, + "containerId": { + "type": "string", + "format": "arm-id", + "description": "Storage ContainerID of the storage container to be used for VHD", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/storageContainers" + } + ] + } + }, + "status": { + "$ref": "#/definitions/VirtualHardDiskStatus", + "description": "The observed state of virtual hard disks", + "readOnly": true + } + } + }, + "VirtualHardDiskStatus": { + "type": "object", + "description": "The observed state of virtual hard disks", + "properties": { + "errorCode": { + "type": "string", + "description": "VirtualHardDisk provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "$ref": "#/definitions/VirtualHardDiskStatusProvisioningStatus", + "description": "Provisioning status of the vhd" + } + }, + "x-ms-client-flatten": true + }, + "VirtualHardDiskStatusProvisioningStatus": { + "type": "object", + "description": "VHD Status provisioning status", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the virtual hard disk" + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]" + } + } + }, + "VirtualHardDiskTagsUpdate": { + "type": "object", + "description": "The type used for updating tags in VirtualHardDisk resources.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "VirtualHardDisksUpdateRequest": { + "type": "object", + "description": "The virtual hard disk resource patch definition.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags", + "additionalProperties": { + "type": "string" + } + } + } + }, + "VirtualMachineArmReference": { + "type": "object", + "description": "The ARM ID for a Virtual Machine.", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Virtual Machine.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/virtualMachineInstance" + } + ] + } + } + } + }, + "VirtualMachineConfigAgentInstanceView": { + "type": "object", + "description": "The instance view of the VM Config Agent running on the virtual machine.", + "properties": { + "vmConfigAgentVersion": { + "type": "string", + "description": "The VM Config Agent full version." + }, + "statuses": { + "type": "array", + "description": "The resource status information.", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "x-ms-identifiers": [] + } + } + }, + "VirtualMachineInstance": { + "type": "object", + "description": "The virtual machine instance resource definition.", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualMachineInstanceProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "extendedLocation": { + "$ref": "#/definitions/ExtendedLocation", + "description": "The extendedLocation of the resource." + }, + "identity": { + "$ref": "../../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "The managed service identities assigned to this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "x-ms-azure-resource": true, + "x-ms-client-flatten": true + }, + "VirtualMachineInstanceListResult": { + "type": "object", + "description": "The response of a VirtualMachineInstance list operation.", + "properties": { + "value": { + "type": "array", + "description": "The VirtualMachineInstance items on this page", + "items": { + "$ref": "#/definitions/VirtualMachineInstance" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "VirtualMachineInstanceProperties": { + "type": "object", + "description": "Properties under the virtual machine instance resource", + "properties": { + "hardwareProfile": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesHardwareProfile", + "description": "HardwareProfile - Specifies the hardware settings for the virtual machine instance." + }, + "networkProfile": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesNetworkProfile", + "description": "NetworkProfile - describes the network configuration the virtual machine instance" + }, + "osProfile": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesOsProfile", + "description": "OsProfile - describes the configuration of the operating system and sets login data" + }, + "securityProfile": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesSecurityProfile", + "description": "SecurityProfile - Specifies the security settings for the virtual machine instance." + }, + "storageProfile": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesStorageProfile", + "description": "StorageProfile - contains information about the disks and storage information for the virtual machine instance" + }, + "httpProxyConfig": { + "$ref": "#/definitions/HttpProxyConfiguration", + "description": "HTTP Proxy configuration for the VM." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningStateEnum", + "description": "Provisioning state of the virtual machine instance.", + "readOnly": true + }, + "instanceView": { + "$ref": "#/definitions/VirtualMachineInstanceView", + "description": "The virtual machine instance view.", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/VirtualMachineInstanceStatus", + "description": "The observed state of virtual machine instances", + "readOnly": true + }, + "guestAgentInstallStatus": { + "$ref": "#/definitions/GuestAgentInstallStatus", + "description": "Guest agent install status." + }, + "vmId": { + "type": "string", + "description": "Unique identifier for the vm resource.", + "readOnly": true + }, + "resourceUid": { + "type": "string", + "description": "Unique identifier defined by ARC to identify the guest of the VM." + } + } + }, + "VirtualMachineInstancePropertiesHardwareProfile": { + "type": "object", + "description": "HardwareProfile - Specifies the hardware settings for the virtual machine instance.", + "properties": { + "vmSize": { + "type": "string", + "description": "Enum of VM Sizes", + "default": "Default", + "enum": [ + "Default", + "Standard_A2_v2", + "Standard_A4_v2", + "Standard_D2s_v3", + "Standard_D4s_v3", + "Standard_D8s_v3", + "Standard_D16s_v3", + "Standard_D32s_v3", + "Standard_DS2_v2", + "Standard_DS3_v2", + "Standard_DS4_v2", + "Standard_DS5_v2", + "Standard_DS13_v2", + "Standard_K8S_v1", + "Standard_K8S2_v1", + "Standard_K8S3_v1", + "Standard_K8S4_v1", + "Standard_NK6", + "Standard_NK12", + "Standard_NV6", + "Standard_NV12", + "Standard_K8S5_v1", + "Custom" + ], + "x-ms-enum": { + "name": "VmSizeEnum", + "modelAsString": true, + "values": [ + { + "name": "Default", + "value": "Default", + "description": "Default virtual machine size" + }, + { + "name": "Standard_A2_v2", + "value": "Standard_A2_v2", + "description": "Standard A2 v2 virtual machine size" + }, + { + "name": "Standard_A4_v2", + "value": "Standard_A4_v2", + "description": "Standard A4 v2 virtual machine size" + }, + { + "name": "Standard_D2s_v3", + "value": "Standard_D2s_v3", + "description": "Standard D2s v3 virtual machine size" + }, + { + "name": "Standard_D4s_v3", + "value": "Standard_D4s_v3", + "description": "Standard D4s v3 virtual machine size" + }, + { + "name": "Standard_D8s_v3", + "value": "Standard_D8s_v3", + "description": "Standard D8s v3 virtual machine size" + }, + { + "name": "Standard_D16s_v3", + "value": "Standard_D16s_v3", + "description": "Standard D16s v3 virtual machine size" + }, + { + "name": "Standard_D32s_v3", + "value": "Standard_D32s_v3", + "description": "Standard D32s v3 virtual machine size" + }, + { + "name": "Standard_DS2_v2", + "value": "Standard_DS2_v2", + "description": "Standard DS2 v2 virtual machine size" + }, + { + "name": "Standard_DS3_v2", + "value": "Standard_DS3_v2", + "description": "Standard DS3 v2 virtual machine size" + }, + { + "name": "Standard_DS4_v2", + "value": "Standard_DS4_v2", + "description": "Standard DS4 v2 virtual machine size" + }, + { + "name": "Standard_DS5_v2", + "value": "Standard_DS5_v2", + "description": "Standard DS5 v2 virtual machine size" + }, + { + "name": "Standard_DS13_v2", + "value": "Standard_DS13_v2", + "description": "Standard DS13 v2 virtual machine size" + }, + { + "name": "Standard_K8S_v1", + "value": "Standard_K8S_v1", + "description": "Standard K8S v1 virtual machine size" + }, + { + "name": "Standard_K8S2_v1", + "value": "Standard_K8S2_v1", + "description": "Standard K8S2 v1 virtual machine size" + }, + { + "name": "Standard_K8S3_v1", + "value": "Standard_K8S3_v1", + "description": "Standard K8S3 v1 virtual machine size" + }, + { + "name": "Standard_K8S4_v1", + "value": "Standard_K8S4_v1", + "description": "Standard K8S4 v1 virtual machine size" + }, + { + "name": "Standard_NK6", + "value": "Standard_NK6", + "description": "Standard NK6 virtual machine size" + }, + { + "name": "Standard_NK12", + "value": "Standard_NK12", + "description": "Standard NK12 virtual machine size" + }, + { + "name": "Standard_NV6", + "value": "Standard_NV6", + "description": "Standard NV6 virtual machine size" + }, + { + "name": "Standard_NV12", + "value": "Standard_NV12", + "description": "Standard NV12 virtual machine size" + }, + { + "name": "Standard_K8S5_v1", + "value": "Standard_K8S5_v1", + "description": "Standard K8S5 v1 virtual machine size" + }, + { + "name": "Custom", + "value": "Custom", + "description": "Custom virtual machine size" + } + ] + } + }, + "processors": { + "type": "integer", + "format": "int32", + "description": "number of processors for the virtual machine instance" + }, + "memoryMB": { + "type": "integer", + "format": "int64", + "description": "RAM in MB for the virtual machine instance" + }, + "dynamicMemoryConfig": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig", + "description": "Dynamic memory config" + } + } + }, + "VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig": { + "type": "object", + "description": "Dynamic memory config", + "properties": { + "maximumMemoryMB": { + "type": "integer", + "format": "int64", + "description": "Maximum memory in MB" + }, + "minimumMemoryMB": { + "type": "integer", + "format": "int64", + "description": "Minimum memory in MB" + }, + "targetMemoryBuffer": { + "type": "integer", + "format": "int32", + "description": "Defines the amount of extra memory that should be reserved for a virtual machine instance at runtime, as a percentage of the total memory that the virtual machine instance is thought to need. This only applies to virtual systems with dynamic memory enabled. This property can be in the range of 5 to 2000." + } + } + }, + "VirtualMachineInstancePropertiesNetworkProfile": { + "type": "object", + "description": "NetworkProfile - describes the network configuration the virtual machine instance", + "properties": { + "networkInterfaces": { + "type": "array", + "description": "NetworkInterfaces - list of network interfaces to be attached to the virtual machine instance", + "items": { + "$ref": "#/definitions/NetworkInterfaceArmReference" + }, + "x-ms-identifiers": [] + } + } + }, + "VirtualMachineInstancePropertiesOsProfile": { + "type": "object", + "description": "OsProfile - describes the configuration of the operating system and sets login data", + "properties": { + "adminPassword": { + "type": "string", + "format": "password", + "description": "AdminPassword - admin password", + "x-ms-mutability": [ + "create" + ], + "x-ms-secret": true + }, + "adminUsername": { + "type": "string", + "description": "AdminUsername - admin username" + }, + "computerName": { + "type": "string", + "description": "ComputerName - name of the compute" + }, + "linuxConfiguration": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesOsProfileLinuxConfiguration", + "description": "LinuxConfiguration - linux specific configuration values for the virtual machine instance" + }, + "windowsConfiguration": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesOsProfileWindowsConfiguration", + "description": "Windows Configuration for the virtual machine instance" + } + } + }, + "VirtualMachineInstancePropertiesOsProfileLinuxConfiguration": { + "type": "object", + "description": "LinuxConfiguration - linux specific configuration values for the virtual machine instance", + "properties": { + "disablePasswordAuthentication": { + "type": "boolean", + "description": "DisablePasswordAuthentication - whether password authentication should be disabled" + }, + "ssh": { + "$ref": "#/definitions/SshConfiguration", + "description": "Specifies the ssh key configuration for a Linux OS." + }, + "provisionVMAgent": { + "type": "boolean", + "description": "Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process.", + "default": true + }, + "provisionVMConfigAgent": { + "type": "boolean", + "description": "Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process.", + "default": true + } + } + }, + "VirtualMachineInstancePropertiesOsProfileWindowsConfiguration": { + "type": "object", + "description": "Windows Configuration for the virtual machine instance", + "properties": { + "enableAutomaticUpdates": { + "type": "boolean", + "description": "Whether to EnableAutomaticUpdates on the machine" + }, + "ssh": { + "$ref": "#/definitions/SshConfiguration", + "description": "Specifies the ssh key configuration for Windows OS." + }, + "timeZone": { + "type": "string", + "description": "TimeZone for the virtual machine instance" + }, + "provisionVMAgent": { + "type": "boolean", + "description": "Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process.", + "default": true + }, + "provisionVMConfigAgent": { + "type": "boolean", + "description": "Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process.", + "default": true + } + } + }, + "VirtualMachineInstancePropertiesSecurityProfile": { + "type": "object", + "description": "SecurityProfile - Specifies the security settings for the virtual machine instance.", + "properties": { + "enableTPM": { + "type": "boolean", + "description": "Enable TPM flag", + "default": false + }, + "uefiSettings": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesSecurityProfileUefiSettings", + "description": "Uefi settings of the virtual machine instance" + }, + "securityType": { + "$ref": "#/definitions/SecurityTypes", + "description": "Specifies the SecurityType of the virtual machine. EnableTPM and SecureBootEnabled must be set to true for SecurityType to function." + } + } + }, + "VirtualMachineInstancePropertiesSecurityProfileUefiSettings": { + "type": "object", + "description": "Uefi settings - Specifies whether secure boot should be enabled on the virtual machine instance.", + "properties": { + "secureBootEnabled": { + "type": "boolean", + "description": "Specifies whether secure boot should be enabled on the virtual machine instance.", + "default": false + } + } + }, + "VirtualMachineInstancePropertiesStorageProfile": { + "type": "object", + "description": "StorageProfile - contains information about the disks and storage information for the virtual machine instance", + "properties": { + "dataDisks": { + "type": "array", + "description": "adds data disks to the virtual machine instance", + "items": { + "$ref": "#/definitions/VirtualHardDiskArmReference" + } + }, + "imageReference": { + "$ref": "#/definitions/ImageArmReference", + "description": "Which Image to use for the virtual machine instance", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "osDisk": { + "$ref": "#/definitions/VirtualMachineInstancePropertiesStorageProfileOsDisk", + "description": "VHD to attach as OS disk" + }, + "vmConfigStoragePathId": { + "type": "string", + "format": "arm-id", + "description": "Id of the storage container that hosts the VM configuration file", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/storageContainers" + } + ] + } + } + } + }, + "VirtualMachineInstancePropertiesStorageProfileOsDisk": { + "type": "object", + "description": "VHD to attach as OS disk", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The ARM ID for a Virtual Hard Disk.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.AzureStackHCI/virtualHardDisks" + } + ] + } + }, + "osType": { + "$ref": "#/definitions/OperatingSystemTypes", + "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: Windows, Linux." + } + } + }, + "VirtualMachineInstanceStatus": { + "type": "object", + "description": "The observed state of virtual machine instances", + "properties": { + "errorCode": { + "type": "string", + "description": "VirtualMachine provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "powerState": { + "$ref": "#/definitions/PowerStateEnum", + "description": "The power state of the virtual machine instance" + }, + "provisioningStatus": { + "$ref": "#/definitions/VirtualMachineInstanceStatusProvisioningStatus", + "description": "Provisioning status of the virtual machine instance" + } + }, + "x-ms-client-flatten": true + }, + "VirtualMachineInstanceStatusProvisioningStatus": { + "type": "object", + "description": "Virtual machine instance provisioning status.", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the virtual machine instance" + }, + "status": { + "$ref": "#/definitions/Status", + "description": "The status of the operation performed on the virtual machine instance [Succeeded, Failed, InProgress]" + } + } + }, + "VirtualMachineInstanceUpdateProperties": { + "type": "object", + "description": "Defines the resource properties for the update.", + "properties": { + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfileUpdate", + "description": "HardwareProfile - Specifies the hardware settings for the virtual machine instance." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfileUpdate", + "description": "StorageProfile - Specifies the storage settings for the virtual machine instance." + }, + "networkProfile": { + "$ref": "#/definitions/NetworkProfileUpdate", + "description": "NetworkProfile - describes the network update configuration the virtual machine instance" + }, + "osProfile": { + "$ref": "#/definitions/OsProfileUpdate", + "description": "OsProfile - describes the update configuration of the operating system" + } + } + }, + "VirtualMachineInstanceUpdateRequest": { + "type": "object", + "description": "The virtual machine instance resource patch definition.", + "properties": { + "properties": { + "$ref": "#/definitions/VirtualMachineInstanceUpdateProperties", + "description": "Defines the resource properties for the update." + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "Identity for the resource." + } + } + }, + "VirtualMachineInstanceView": { + "type": "object", + "description": "The instance view of a virtual machine.", + "properties": { + "vmAgent": { + "$ref": "#/definitions/VirtualMachineConfigAgentInstanceView", + "description": "The VM Config Agent running on the virtual machine." + } + } + }, + "VmSizeEnum": { + "type": "string", + "description": "VM Sizes", + "enum": [ + "Default", + "Standard_A2_v2", + "Standard_A4_v2", + "Standard_D2s_v3", + "Standard_D4s_v3", + "Standard_D8s_v3", + "Standard_D16s_v3", + "Standard_D32s_v3", + "Standard_DS2_v2", + "Standard_DS3_v2", + "Standard_DS4_v2", + "Standard_DS5_v2", + "Standard_DS13_v2", + "Standard_K8S_v1", + "Standard_K8S2_v1", + "Standard_K8S3_v1", + "Standard_K8S4_v1", + "Standard_NK6", + "Standard_NK12", + "Standard_NV6", + "Standard_NV12", + "Standard_K8S5_v1", + "Custom" + ], + "x-ms-enum": { + "name": "VmSizeEnum", + "modelAsString": true, + "values": [ + { + "name": "Default", + "value": "Default", + "description": "Default virtual machine size" + }, + { + "name": "Standard_A2_v2", + "value": "Standard_A2_v2", + "description": "Standard A2 v2 virtual machine size" + }, + { + "name": "Standard_A4_v2", + "value": "Standard_A4_v2", + "description": "Standard A4 v2 virtual machine size" + }, + { + "name": "Standard_D2s_v3", + "value": "Standard_D2s_v3", + "description": "Standard D2s v3 virtual machine size" + }, + { + "name": "Standard_D4s_v3", + "value": "Standard_D4s_v3", + "description": "Standard D4s v3 virtual machine size" + }, + { + "name": "Standard_D8s_v3", + "value": "Standard_D8s_v3", + "description": "Standard D8s v3 virtual machine size" + }, + { + "name": "Standard_D16s_v3", + "value": "Standard_D16s_v3", + "description": "Standard D16s v3 virtual machine size" + }, + { + "name": "Standard_D32s_v3", + "value": "Standard_D32s_v3", + "description": "Standard D32s v3 virtual machine size" + }, + { + "name": "Standard_DS2_v2", + "value": "Standard_DS2_v2", + "description": "Standard DS2 v2 virtual machine size" + }, + { + "name": "Standard_DS3_v2", + "value": "Standard_DS3_v2", + "description": "Standard DS3 v2 virtual machine size" + }, + { + "name": "Standard_DS4_v2", + "value": "Standard_DS4_v2", + "description": "Standard DS4 v2 virtual machine size" + }, + { + "name": "Standard_DS5_v2", + "value": "Standard_DS5_v2", + "description": "Standard DS5 v2 virtual machine size" + }, + { + "name": "Standard_DS13_v2", + "value": "Standard_DS13_v2", + "description": "Standard DS13 v2 virtual machine size" + }, + { + "name": "Standard_K8S_v1", + "value": "Standard_K8S_v1", + "description": "Standard K8S v1 virtual machine size" + }, + { + "name": "Standard_K8S2_v1", + "value": "Standard_K8S2_v1", + "description": "Standard K8S2 v1 virtual machine size" + }, + { + "name": "Standard_K8S3_v1", + "value": "Standard_K8S3_v1", + "description": "Standard K8S3 v1 virtual machine size" + }, + { + "name": "Standard_K8S4_v1", + "value": "Standard_K8S4_v1", + "description": "Standard K8S4 v1 virtual machine size" + }, + { + "name": "Standard_NK6", + "value": "Standard_NK6", + "description": "Standard NK6 virtual machine size" + }, + { + "name": "Standard_NK12", + "value": "Standard_NK12", + "description": "Standard NK12 virtual machine size" + }, + { + "name": "Standard_NV6", + "value": "Standard_NV6", + "description": "Standard NV6 virtual machine size" + }, + { + "name": "Standard_NV12", + "value": "Standard_NV12", + "description": "Standard NV12 virtual machine size" + }, + { + "name": "Standard_K8S5_v1", + "value": "Standard_K8S5_v1", + "description": "Standard K8S5 v1 virtual machine size" + }, + { + "name": "Custom", + "value": "Custom", + "description": "Custom virtual machine size" + } + ] + } + } + }, + "parameters": { + "Azure.ResourceManager.ResourceUriParameter": { + "name": "resourceUri", + "in": "path", + "description": "The fully qualified Azure Resource manager identifier of the resource.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "x-ms-skip-url-encoding": true + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.csharp.md b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.csharp.md new file mode 100644 index 000000000000..1fe337740d71 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.csharp.md @@ -0,0 +1,16 @@ +## C + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.AzureStackHCI + package-name: Microsoft.Azure.Management.StackHCIVM + output-folder: $(csharp-sdks-folder)/azurestackhci/management/Microsoft.AzureStackHCI/GeneratedProtocol +``` diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.go.md b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.go.md new file mode 100644 index 000000000000..61e35fe461a3 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.go.md @@ -0,0 +1,41 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +go: + license-header: MICROSOFT_MIT_NO_VERSION + module-name: sdk/resourcemanager/azuresatckhci/armazurestackhci + module: github.com/Azure/azure-sdk-for-go/$(module-name) + output-folder: $(go-sdk-folder)/$(module-name) + azure-arm: true + package-name: armstackhcivm +``` + +### Go multi-api + +```yaml $(go) && $(multiapi) +batch: + - tag: package-2020-11-01-preview + - tag: package-preview-2021-01 +``` + +### Tag: package-preview-2021-01 and go + +These settings apply only when `--tag=package-preview-2021-01 --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-preview-2021-01' && $(go) +namespace: azurestackhci +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-01-01-preview/$(namespace) +``` + +### Tag: package-2020-11-01-preview and go + +These settings apply only when `--tag=package-2020-11-01-preview --go` is specified on the command line. +Please also specify `--go-sdks-folder=`. + +```yaml $(tag) == 'package-2020-11-01-preview' && $(go) +namespace: azurestackhci +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-11-01-preview/$(namespace) +``` diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.md b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.md new file mode 100644 index 000000000000..8b0a92feed18 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.md @@ -0,0 +1,69 @@ +# azurestackhci + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for azurestackhci. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the azurestackhci. + +```yaml +title: Microsoft.AzureStackHCI +description: Azure Stack HCI management service +openapi-type: arm +openapi-subtype: rpaas +tag: package-preview-2024-02-01 +``` + +## Suppression + +```yaml +directive: + - suppress: R3020 + from: + - stackhcivm.json + reason: Microsoft.AzureStackHCI is the correct name for our RP. +suppressions: + - code: PathResourceProviderNamePascalCase + reason: We had already gone to production with "HCI" in our namespace, so changing it to "Hci" now would be disruptive. + from: + - stackhcivm.json + - code: DefinitionsPropertiesNamesCamelCase + reason: There is a false positive reporting the two letter acronym ID should be lower camel case. The property is correctly capitalized according to guidance. + from: + - stackhcivm.json + - code: XmsPageableForListCalls + reason: XmsPageable not needed for GET calls + from: + - stackhcivm.json + - code: EvenSegmentedPathForPutOperation + reason: resourceUri in virtualmachineinstances is the parent resource. It consists of an even number of segmented paths. + from: + - stackhcivm.json +``` + +### Tag: package-preview-2024-02 + +These settings apply only when `--tag=package-preview-2024-02-01` is specified on the command line. + +```yaml $(tag) == 'package-preview-2024-02-01' +input-file: + - preview/2024-02-01-preview/stackhcivm.json +``` diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.python.md b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.python.md new file mode 100644 index 000000000000..0b1caa65986b --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.python.md @@ -0,0 +1,23 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +```yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-stackhcivm +namespace: azure.mgmt.azurestackhci +package-version: 1.0.0b1 +clear-output-folder: true +``` + +```yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci +``` + +```yaml $(python) +modelerfour: + lenient-model-deduplication: true +``` diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.ruby.md b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.ruby.md new file mode 100644 index 000000000000..a1e874dca52f --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.ruby.md @@ -0,0 +1,19 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +```yaml +package-name: azure_mgmt_stackhcivm +package-version: 2020-03-01-preview +azure-arm: true +``` + +### Tag: package-2020-03-01-preview and ruby + +These settings apply only when `--tag=package-2020-03-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2020-03-01-preview' && $(ruby) +namespace: Microsoft.AzureStackHCI +output-folder: $(ruby-sdks-folder)/azurestackhci +``` diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.typescript.md b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.typescript.md new file mode 100644 index 000000000000..402698d05ba3 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/readme.typescript.md @@ -0,0 +1,13 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +```yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-stackhcivm" + output-folder: "$(typescript-sdks-folder)/sdk/azurestackhci/arm-azurestackhci" + payload-flattening-threshold: 1 + generate-metadata: true +``` diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/preview/2024-02-01-preview/examples/Operations_List.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/preview/2024-02-01-preview/examples/Operations_List.json new file mode 100644 index 000000000000..4a5ff103d84a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/preview/2024-02-01-preview/examples/Operations_List.json @@ -0,0 +1,305 @@ +{ + "parameters": { + "api-version": "2024-02-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Deletes virtual hard disk resource", + "description": "Deletes virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Creates/Updates virtual hard disk resource", + "description": "Creates/Updates virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualHardDisks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualHardDisks", + "operation": "Gets/Lists virtual hard disk resource", + "description": "Gets/Lists virtual hard disk resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Deletes network interfaces resource", + "description": "Deletes network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Creates/Updates network interfaces resource", + "description": "Creates/Updates network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/NetworkInterfaces/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "NetworkInterfaces", + "operation": "Gets/Lists network interfaces resource", + "description": "Gets/Lists network interfaces resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Deletes gallery images resource", + "description": "Deletes gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Creates/Updates gallery images resource", + "description": "Creates/Updates gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/GalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "GalleryImages", + "operation": "Gets/Lists gallery images resource", + "description": "Gets/Lists gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/HybridIdentityMetadata/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/HybridIdentityMetadata", + "operation": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource", + "description": "Gets/Lists virtual machine instance hybrid identity metadata proxy resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/attestationStatus/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances/attestationStatus", + "operation": "Gets/Lists virtual machine instance's attestation status", + "description": "Gets/Lists virtual machine instance's attestation status" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Deletes logical networks resource", + "description": "Deletes logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Creates/Updates logical networks resource", + "description": "Creates/Updates logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Gets/Lists logical networks resource", + "description": "Gets/Lists logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/LogicalNetworks/join/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "LogicalNetworks", + "operation": "Joins logical networks resource", + "description": "Joins logical networks resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Restart/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Restarts virtual machine instance resource", + "description": "Restarts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Start/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Starts virtual machine instance resource", + "description": "Starts virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Stop/Action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Stops virtual machine instance resource", + "description": "Stops virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Deletes virtual machine instance resource", + "description": "Deletes virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Creates/Updates virtual machine instance resource", + "description": "Creates/Updates virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/VirtualMachineInstances/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "VirtualMachineInstances", + "operation": "Gets/Lists virtual machine instance resource", + "description": "Gets/Lists virtual machine instance resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deletes storage containers resource", + "description": "Deletes storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Creates/Updates storage containers resource", + "description": "Creates/Updates storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Gets/Lists storage containers resource", + "description": "Gets/Lists storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/StorageContainers/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "StorageContainers", + "operation": "Deploys storage containers resource", + "description": "Deploys storage containers resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deletes market place gallery images resource", + "description": "Deletes market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Write", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Creates/Updates market place gallery images resource", + "description": "Creates/Updates market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/Read", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Gets/Lists market place gallery images resource", + "description": "Gets/Lists market place gallery images resource" + } + }, + { + "name": "Microsoft.AzureStackHCI/MarketPlaceGalleryImages/deploy/action", + "isDataAction": false, + "display": { + "provider": "Microsoft.AzureStackHCI", + "resource": "MarketPlaceGalleryImages", + "operation": "Deploys market place gallery images resource", + "description": "Deploys market place gallery images resource" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "List the operations for the provider." +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/preview/2024-02-01-preview/operations.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/preview/2024-02-01-preview/operations.json new file mode 100644 index 000000000000..129e01b5403a --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/operations/preview/2024-02-01-preview/operations.json @@ -0,0 +1,86 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.AzureStackHCI", + "version": "2024-02-01-preview", + "description": "Azure Stack HCI management service", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + } + ], + "paths": { + "/providers/Microsoft.AzureStackHCI/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List the operations for the provider.": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": {}, + "parameters": {} +} diff --git a/specification/azurestackhci/resource-manager/readme.azureresourceschema.md b/specification/azurestackhci/resource-manager/readme.azureresourceschema.md new file mode 100644 index 000000000000..520ed2927cdc --- /dev/null +++ b/specification/azurestackhci/resource-manager/readme.azureresourceschema.md @@ -0,0 +1,18 @@ +## AzureResourceSchema + +These settings apply only when `--azureresourceschema` is specified on the command line. + +### AzureResourceSchema multi-api + +```yaml $(azureresourceschema) && $(multiapi) +batch: + - tag: package-2020-11-01 +``` + +Please also specify `--azureresourceschema-folder=`. + +### Tag: package-2020-11-01 and azureresourceschema + +```yaml $(tag) == '2020-11-01-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas +``` \ No newline at end of file