ResourcePoolArgs

data class ResourcePoolArgs(val extendedLocation: Output<ExtendedLocationArgs>? = null, val inventoryItemId: Output<String>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val moRefId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourcePoolName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vCenterId: Output<String>? = null) : ConvertibleToJava<ResourcePoolArgs>

Define the resourcePool. Uses Azure REST API version 2023-12-01. In version 2.x of the Azure Native provider, it used API version 2022-07-15-preview. Other available API versions: 2022-07-15-preview, 2023-03-01-preview, 2023-10-01. 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/#accessing-any-api-version-via-local-packages for details.

Example Usage

CreateResourcePool

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var resourcePool = new AzureNative.ConnectedVMwarevSphere.ResourcePool("resourcePool", new()
{
ExtendedLocation = new AzureNative.ConnectedVMwarevSphere.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso",
Type = "customLocation",
},
Location = "East US",
MoRefId = "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
ResourceGroupName = "testrg",
ResourcePoolName = "HRPool",
VCenterId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
});
});
package main
import (
connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connectedvmwarevsphere.NewResourcePool(ctx, "resourcePool", &connectedvmwarevsphere.ResourcePoolArgs{
ExtendedLocation: &connectedvmwarevsphere.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"),
Type: pulumi.String("customLocation"),
},
Location: pulumi.String("East US"),
MoRefId: pulumi.String("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"),
ResourceGroupName: pulumi.String("testrg"),
ResourcePoolName: pulumi.String("HRPool"),
VCenterId: pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.connectedvmwarevsphere.ResourcePool;
import com.pulumi.azurenative.connectedvmwarevsphere.ResourcePoolArgs;
import com.pulumi.azurenative.connectedvmwarevsphere.inputs.ExtendedLocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var resourcePool = new ResourcePool("resourcePool", ResourcePoolArgs.builder()
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso")
.type("customLocation")
.build())
.location("East US")
.moRefId("aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
.resourceGroupName("testrg")
.resourcePoolName("HRPool")
.vCenterId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:connectedvmwarevsphere:ResourcePool HRPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}

Constructors

Link copied to clipboard
constructor(extendedLocation: Output<ExtendedLocationArgs>? = null, inventoryItemId: Output<String>? = null, kind: Output<String>? = null, location: Output<String>? = null, moRefId: Output<String>? = null, resourceGroupName: Output<String>? = null, resourcePoolName: Output<String>? = null, tags: Output<Map<String, String>>? = null, vCenterId: Output<String>? = null)

Properties

Link copied to clipboard

Gets or sets the extended location.

Link copied to clipboard
val inventoryItemId: Output<String>? = null

Gets or sets the inventory Item ID for the resource pool.

Link copied to clipboard
val kind: Output<String>? = null

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.

Link copied to clipboard
val location: Output<String>? = null

Gets or sets the location.

Link copied to clipboard
val moRefId: Output<String>? = null

Gets or sets the vCenter MoRef (Managed Object Reference) ID for the resource pool.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The Resource Group Name.

Link copied to clipboard
val resourcePoolName: Output<String>? = null

Name of the resourcePool.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Gets or sets the Resource tags.

Link copied to clipboard
val vCenterId: Output<String>? = null

Gets or sets the ARM Id of the vCenter resource in which this resource pool resides.

Functions

Link copied to clipboard
open override fun toJava(): ResourcePoolArgs