UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

179 lines (178 loc) 5.72 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Implements virtual machine GET method. * * Uses Azure REST API version 2023-03-01-preview. * * Other available API versions: 2022-07-15-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native connectedvmwarevsphere [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getVirtualMachine(args: GetVirtualMachineArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualMachineResult>; export interface GetVirtualMachineArgs { /** * The Resource Group Name. */ resourceGroupName: string; /** * Name of the virtual machine resource. */ virtualMachineName: string; } /** * Define the virtualMachine. */ export interface GetVirtualMachineResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Gets the name of the corresponding resource in Kubernetes. */ readonly customResourceName: string; /** * Gets or sets the extended location. */ readonly extendedLocation?: outputs.connectedvmwarevsphere.ExtendedLocationResponse; /** * Firmware type */ readonly firmwareType?: string; /** * Gets or sets the folder path of the vm. */ readonly folderPath: string; /** * Guest agent status properties. */ readonly guestAgentProfile?: outputs.connectedvmwarevsphere.GuestAgentProfileResponse; /** * Hardware properties. */ readonly hardwareProfile?: outputs.connectedvmwarevsphere.HardwareProfileResponse; /** * Gets or sets the Id. */ readonly id: string; /** * The identity of the resource. */ readonly identity?: outputs.connectedvmwarevsphere.IdentityResponse; /** * Gets or sets the instance uuid of the vm. */ readonly instanceUuid: string; /** * Gets or sets the inventory Item ID for the virtual machine. */ readonly inventoryItemId?: string; /** * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. */ readonly kind?: string; /** * Gets or sets the location. */ readonly location: string; /** * Gets or sets the vCenter Managed Object name for the virtual machine. */ readonly moName: string; /** * Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine. */ readonly moRefId?: string; /** * Gets or sets the name. */ readonly name: string; /** * Network properties. */ readonly networkProfile?: outputs.connectedvmwarevsphere.NetworkProfileResponse; /** * OS properties. */ readonly osProfile?: outputs.connectedvmwarevsphere.OsProfileResponse; /** * Placement properties. */ readonly placementProfile?: outputs.connectedvmwarevsphere.PlacementProfileResponse; /** * Gets the power state of the virtual machine. */ readonly powerState: string; /** * Gets the provisioning state. */ readonly provisioningState: string; /** * Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will * deploy. */ readonly resourcePoolId?: string; /** * Gets the security profile. */ readonly securityProfile?: outputs.connectedvmwarevsphere.SecurityProfileResponse; /** * Gets or sets the SMBIOS UUID of the vm. */ readonly smbiosUuid?: string; /** * The resource status information. */ readonly statuses: outputs.connectedvmwarevsphere.ResourceStatusResponse[]; /** * Storage properties. */ readonly storageProfile?: outputs.connectedvmwarevsphere.StorageProfileResponse; /** * The system data. */ readonly systemData: outputs.connectedvmwarevsphere.SystemDataResponse; /** * Gets or sets the Resource tags. */ readonly tags?: { [key: string]: string; }; /** * Gets or sets the ARM Id of the template resource to deploy the virtual machine. */ readonly templateId?: string; /** * Gets or sets the type of the resource. */ readonly type: string; /** * Gets or sets a unique identifier for this resource. */ readonly uuid: string; /** * Gets or sets the ARM Id of the vCenter resource in which this resource pool resides. */ readonly vCenterId?: string; /** * Gets or sets a unique identifier for the vm resource. */ readonly vmId: string; } /** * Implements virtual machine GET method. * * Uses Azure REST API version 2023-03-01-preview. * * Other available API versions: 2022-07-15-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native connectedvmwarevsphere [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getVirtualMachineOutput(args: GetVirtualMachineOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualMachineResult>; export interface GetVirtualMachineOutputArgs { /** * The Resource Group Name. */ resourceGroupName: pulumi.Input<string>; /** * Name of the virtual machine resource. */ virtualMachineName: pulumi.Input<string>; }