1. Packages
  2. Vsphere Provider
  3. API Docs
  4. ConfigurationProfile
Viewing docs for vSphere v4.16.5
published on Friday, Mar 27, 2026 by Pulumi
vsphere logo
Viewing docs for vSphere v4.16.5
published on Friday, Mar 27, 2026 by Pulumi

    The vsphere.ConfigurationProfile resource can be used to configure profile-based host management on a vSphere compute cluster. The source for the configuration can either be a ESXi host that is part of the compute cluster or a JSON file, but not both at the same time.

    It is allowed to switch from one type of configuration source to the other at any time.

    Deleting a vsphere.ConfigurationProfile resource has no effect on the compute cluster. Once management via configuration profiles is turned ot it is not possible to disable it.

    NOTE: This resource requires a vCenter 8 or higher and will not work on direct ESXi connections.

    Example Usage

    Creating a profile using an ESXi host as a reference

    The following example sets up a configuration profile on a compute cluster using one of its hosts as a reference and then propagates that configuration to two additional clusters.

    Note that this example assumes that the hosts across all three clusters are compatible with the source configuration. This includes but is not limited to their ESXi versions and hardware capabilities.

    import * as pulumi from "@pulumi/pulumi";
    import * as vsphere from "@pulumi/vsphere";
    
    const datacenter = vsphere.getDatacenter({
        name: "dc-01",
    });
    const cluster1 = datacenter.then(datacenter => vsphere.getComputeCluster({
        name: "cluster-01",
        datacenterId: datacenter.id,
    }));
    const cluster2 = datacenter.then(datacenter => vsphere.getComputeCluster({
        name: "cluster-02",
        datacenterId: datacenter.id,
    }));
    const cluster3 = datacenter.then(datacenter => vsphere.getComputeCluster({
        name: "cluster-03",
        datacenterId: datacenter.id,
    }));
    // This host is assumed to be part of "cluster-01"
    const host = datacenter.then(datacenter => vsphere.getHost({
        name: "esxi-01.example.com",
        datacenterId: datacenter.id,
    }));
    // Configure a profile on "cluster-01" using one of its hosts as a reference
    const profile1 = new vsphere.ConfigurationProfile("profile1", {
        clusterId: cluster1.then(cluster1 => cluster1.id),
        referenceHostId: host.then(host => host.id),
    });
    // Copy the configuration of "cluster-01" onto "cluster-02"
    const profile2 = new vsphere.ConfigurationProfile("profile2", {
        clusterId: cluster2.then(cluster2 => cluster2.id),
        configuration: profile1.configuration,
    });
    // Copy the configuration of "cluster-01" onto "cluster-03"
    const profile3 = new vsphere.ConfigurationProfile("profile3", {
        clusterId: cluster3.then(cluster3 => cluster3.id),
        configuration: profile1.configuration,
    });
    
    import pulumi
    import pulumi_vsphere as vsphere
    
    datacenter = vsphere.get_datacenter(name="dc-01")
    cluster1 = vsphere.get_compute_cluster(name="cluster-01",
        datacenter_id=datacenter.id)
    cluster2 = vsphere.get_compute_cluster(name="cluster-02",
        datacenter_id=datacenter.id)
    cluster3 = vsphere.get_compute_cluster(name="cluster-03",
        datacenter_id=datacenter.id)
    # This host is assumed to be part of "cluster-01"
    host = vsphere.get_host(name="esxi-01.example.com",
        datacenter_id=datacenter.id)
    # Configure a profile on "cluster-01" using one of its hosts as a reference
    profile1 = vsphere.ConfigurationProfile("profile1",
        cluster_id=cluster1.id,
        reference_host_id=host.id)
    # Copy the configuration of "cluster-01" onto "cluster-02"
    profile2 = vsphere.ConfigurationProfile("profile2",
        cluster_id=cluster2.id,
        configuration=profile1.configuration)
    # Copy the configuration of "cluster-01" onto "cluster-03"
    profile3 = vsphere.ConfigurationProfile("profile3",
        cluster_id=cluster3.id,
        configuration=profile1.configuration)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		datacenter, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
    			Name: pulumi.StringRef("dc-01"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		cluster1, err := vsphere.LookupComputeCluster(ctx, &vsphere.LookupComputeClusterArgs{
    			Name:         "cluster-01",
    			DatacenterId: pulumi.StringRef(datacenter.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		cluster2, err := vsphere.LookupComputeCluster(ctx, &vsphere.LookupComputeClusterArgs{
    			Name:         "cluster-02",
    			DatacenterId: pulumi.StringRef(datacenter.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		cluster3, err := vsphere.LookupComputeCluster(ctx, &vsphere.LookupComputeClusterArgs{
    			Name:         "cluster-03",
    			DatacenterId: pulumi.StringRef(datacenter.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// This host is assumed to be part of "cluster-01"
    		host, err := vsphere.LookupHost(ctx, &vsphere.LookupHostArgs{
    			Name:         pulumi.StringRef("esxi-01.example.com"),
    			DatacenterId: datacenter.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Configure a profile on "cluster-01" using one of its hosts as a reference
    		profile1, err := vsphere.NewConfigurationProfile(ctx, "profile1", &vsphere.ConfigurationProfileArgs{
    			ClusterId:       pulumi.String(cluster1.Id),
    			ReferenceHostId: pulumi.String(host.Id),
    		})
    		if err != nil {
    			return err
    		}
    		// Copy the configuration of "cluster-01" onto "cluster-02"
    		_, err = vsphere.NewConfigurationProfile(ctx, "profile2", &vsphere.ConfigurationProfileArgs{
    			ClusterId:     pulumi.String(cluster2.Id),
    			Configuration: profile1.Configuration,
    		})
    		if err != nil {
    			return err
    		}
    		// Copy the configuration of "cluster-01" onto "cluster-03"
    		_, err = vsphere.NewConfigurationProfile(ctx, "profile3", &vsphere.ConfigurationProfileArgs{
    			ClusterId:     pulumi.String(cluster3.Id),
    			Configuration: profile1.Configuration,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using VSphere = Pulumi.VSphere;
    
    return await Deployment.RunAsync(() => 
    {
        var datacenter = VSphere.GetDatacenter.Invoke(new()
        {
            Name = "dc-01",
        });
    
        var cluster1 = VSphere.GetComputeCluster.Invoke(new()
        {
            Name = "cluster-01",
            DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
        });
    
        var cluster2 = VSphere.GetComputeCluster.Invoke(new()
        {
            Name = "cluster-02",
            DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
        });
    
        var cluster3 = VSphere.GetComputeCluster.Invoke(new()
        {
            Name = "cluster-03",
            DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
        });
    
        // This host is assumed to be part of "cluster-01"
        var host = VSphere.GetHost.Invoke(new()
        {
            Name = "esxi-01.example.com",
            DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
        });
    
        // Configure a profile on "cluster-01" using one of its hosts as a reference
        var profile1 = new VSphere.ConfigurationProfile("profile1", new()
        {
            ClusterId = cluster1.Apply(getComputeClusterResult => getComputeClusterResult.Id),
            ReferenceHostId = host.Apply(getHostResult => getHostResult.Id),
        });
    
        // Copy the configuration of "cluster-01" onto "cluster-02"
        var profile2 = new VSphere.ConfigurationProfile("profile2", new()
        {
            ClusterId = cluster2.Apply(getComputeClusterResult => getComputeClusterResult.Id),
            Configuration = profile1.Configuration,
        });
    
        // Copy the configuration of "cluster-01" onto "cluster-03"
        var profile3 = new VSphere.ConfigurationProfile("profile3", new()
        {
            ClusterId = cluster3.Apply(getComputeClusterResult => getComputeClusterResult.Id),
            Configuration = profile1.Configuration,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vsphere.VsphereFunctions;
    import com.pulumi.vsphere.inputs.GetDatacenterArgs;
    import com.pulumi.vsphere.inputs.GetComputeClusterArgs;
    import com.pulumi.vsphere.inputs.GetHostArgs;
    import com.pulumi.vsphere.ConfigurationProfile;
    import com.pulumi.vsphere.ConfigurationProfileArgs;
    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) {
            final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder()
                .name("dc-01")
                .build());
    
            final var cluster1 = VsphereFunctions.getComputeCluster(GetComputeClusterArgs.builder()
                .name("cluster-01")
                .datacenterId(datacenter.id())
                .build());
    
            final var cluster2 = VsphereFunctions.getComputeCluster(GetComputeClusterArgs.builder()
                .name("cluster-02")
                .datacenterId(datacenter.id())
                .build());
    
            final var cluster3 = VsphereFunctions.getComputeCluster(GetComputeClusterArgs.builder()
                .name("cluster-03")
                .datacenterId(datacenter.id())
                .build());
    
            // This host is assumed to be part of "cluster-01"
            final var host = VsphereFunctions.getHost(GetHostArgs.builder()
                .name("esxi-01.example.com")
                .datacenterId(datacenter.id())
                .build());
    
            // Configure a profile on "cluster-01" using one of its hosts as a reference
            var profile1 = new ConfigurationProfile("profile1", ConfigurationProfileArgs.builder()
                .clusterId(cluster1.id())
                .referenceHostId(host.id())
                .build());
    
            // Copy the configuration of "cluster-01" onto "cluster-02"
            var profile2 = new ConfigurationProfile("profile2", ConfigurationProfileArgs.builder()
                .clusterId(cluster2.id())
                .configuration(profile1.configuration())
                .build());
    
            // Copy the configuration of "cluster-01" onto "cluster-03"
            var profile3 = new ConfigurationProfile("profile3", ConfigurationProfileArgs.builder()
                .clusterId(cluster3.id())
                .configuration(profile1.configuration())
                .build());
    
        }
    }
    
    resources:
      # Configure a profile on "cluster-01" using one of its hosts as a reference
      profile1:
        type: vsphere:ConfigurationProfile
        properties:
          clusterId: ${cluster1.id}
          referenceHostId: ${host.id}
      # Copy the configuration of "cluster-01" onto "cluster-02"
      profile2:
        type: vsphere:ConfigurationProfile
        properties:
          clusterId: ${cluster2.id}
          configuration: ${profile1.configuration}
      # Copy the configuration of "cluster-01" onto "cluster-03"
      profile3:
        type: vsphere:ConfigurationProfile
        properties:
          clusterId: ${cluster3.id}
          configuration: ${profile1.configuration}
    variables:
      datacenter:
        fn::invoke:
          function: vsphere:getDatacenter
          arguments:
            name: dc-01
      cluster1:
        fn::invoke:
          function: vsphere:getComputeCluster
          arguments:
            name: cluster-01
            datacenterId: ${datacenter.id}
      cluster2:
        fn::invoke:
          function: vsphere:getComputeCluster
          arguments:
            name: cluster-02
            datacenterId: ${datacenter.id}
      cluster3:
        fn::invoke:
          function: vsphere:getComputeCluster
          arguments:
            name: cluster-03
            datacenterId: ${datacenter.id}
      # This host is assumed to be part of "cluster-01"
      host:
        fn::invoke:
          function: vsphere:getHost
          arguments:
            name: esxi-01.example.com
            datacenterId: ${datacenter.id}
    

    Creating a profile using a configuration file

    This example sets up a configuration profile on a cluster by reading a configuration from a JSON file on the local filesystem. Reading files is natively supported by Terraform.

    import * as pulumi from "@pulumi/pulumi";
    import * as std from "@pulumi/std";
    import * as vsphere from "@pulumi/vsphere";
    
    const datacenter = vsphere.getDatacenter({
        name: "dc-01",
    });
    const cluster1 = datacenter.then(datacenter => vsphere.getComputeCluster({
        name: "cluster-01",
        datacenterId: datacenter.id,
    }));
    const profile1 = new vsphere.ConfigurationProfile("profile1", {
        clusterId: cluster1.then(cluster1 => cluster1.id),
        configuration: std.index.file({
            input: "/path/to/cluster_config_1.json",
        }).result,
    });
    
    import pulumi
    import pulumi_std as std
    import pulumi_vsphere as vsphere
    
    datacenter = vsphere.get_datacenter(name="dc-01")
    cluster1 = vsphere.get_compute_cluster(name="cluster-01",
        datacenter_id=datacenter.id)
    profile1 = vsphere.ConfigurationProfile("profile1",
        cluster_id=cluster1.id,
        configuration=std.index.file(input="/path/to/cluster_config_1.json")["result"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		datacenter, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
    			Name: pulumi.StringRef("dc-01"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		cluster1, err := vsphere.LookupComputeCluster(ctx, &vsphere.LookupComputeClusterArgs{
    			Name:         "cluster-01",
    			DatacenterId: pulumi.StringRef(datacenter.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		invokeFile, err := std.File(ctx, map[string]interface{}{
    			"input": "/path/to/cluster_config_1.json",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vsphere.NewConfigurationProfile(ctx, "profile1", &vsphere.ConfigurationProfileArgs{
    			ClusterId:     pulumi.String(cluster1.Id),
    			Configuration: invokeFile.Result,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Std = Pulumi.Std;
    using VSphere = Pulumi.VSphere;
    
    return await Deployment.RunAsync(() => 
    {
        var datacenter = VSphere.GetDatacenter.Invoke(new()
        {
            Name = "dc-01",
        });
    
        var cluster1 = VSphere.GetComputeCluster.Invoke(new()
        {
            Name = "cluster-01",
            DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
        });
    
        var profile1 = new VSphere.ConfigurationProfile("profile1", new()
        {
            ClusterId = cluster1.Apply(getComputeClusterResult => getComputeClusterResult.Id),
            Configuration = Std.Index.File.Invoke(new()
            {
                Input = "/path/to/cluster_config_1.json",
            }).Result,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vsphere.VsphereFunctions;
    import com.pulumi.vsphere.inputs.GetDatacenterArgs;
    import com.pulumi.vsphere.inputs.GetComputeClusterArgs;
    import com.pulumi.vsphere.ConfigurationProfile;
    import com.pulumi.vsphere.ConfigurationProfileArgs;
    import com.pulumi.std.StdFunctions;
    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) {
            final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder()
                .name("dc-01")
                .build());
    
            final var cluster1 = VsphereFunctions.getComputeCluster(GetComputeClusterArgs.builder()
                .name("cluster-01")
                .datacenterId(datacenter.id())
                .build());
    
            var profile1 = new ConfigurationProfile("profile1", ConfigurationProfileArgs.builder()
                .clusterId(cluster1.id())
                .configuration(StdFunctions.file(Map.of("input", "/path/to/cluster_config_1.json")).result())
                .build());
    
        }
    }
    
    resources:
      profile1:
        type: vsphere:ConfigurationProfile
        properties:
          clusterId: ${cluster1.id}
          configuration:
            fn::invoke:
              function: std:file
              arguments:
                input: /path/to/cluster_config_1.json
              return: result
    variables:
      datacenter:
        fn::invoke:
          function: vsphere:getDatacenter
          arguments:
            name: dc-01
      cluster1:
        fn::invoke:
          function: vsphere:getComputeCluster
          arguments:
            name: cluster-01
            datacenterId: ${datacenter.id}
    

    Create ConfigurationProfile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConfigurationProfile(name: string, args: ConfigurationProfileArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigurationProfile(resource_name: str,
                             args: ConfigurationProfileArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConfigurationProfile(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             cluster_id: Optional[str] = None,
                             configuration: Optional[str] = None,
                             reference_host_id: Optional[str] = None)
    func NewConfigurationProfile(ctx *Context, name string, args ConfigurationProfileArgs, opts ...ResourceOption) (*ConfigurationProfile, error)
    public ConfigurationProfile(string name, ConfigurationProfileArgs args, CustomResourceOptions? opts = null)
    public ConfigurationProfile(String name, ConfigurationProfileArgs args)
    public ConfigurationProfile(String name, ConfigurationProfileArgs args, CustomResourceOptions options)
    
    type: vsphere:ConfigurationProfile
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ConfigurationProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ConfigurationProfileArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ConfigurationProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigurationProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigurationProfileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var configurationProfileResource = new VSphere.ConfigurationProfile("configurationProfileResource", new()
    {
        ClusterId = "string",
        Configuration = "string",
        ReferenceHostId = "string",
    });
    
    example, err := vsphere.NewConfigurationProfile(ctx, "configurationProfileResource", &vsphere.ConfigurationProfileArgs{
    	ClusterId:       pulumi.String("string"),
    	Configuration:   pulumi.String("string"),
    	ReferenceHostId: pulumi.String("string"),
    })
    
    var configurationProfileResource = new ConfigurationProfile("configurationProfileResource", ConfigurationProfileArgs.builder()
        .clusterId("string")
        .configuration("string")
        .referenceHostId("string")
        .build());
    
    configuration_profile_resource = vsphere.ConfigurationProfile("configurationProfileResource",
        cluster_id="string",
        configuration="string",
        reference_host_id="string")
    
    const configurationProfileResource = new vsphere.ConfigurationProfile("configurationProfileResource", {
        clusterId: "string",
        configuration: "string",
        referenceHostId: "string",
    });
    
    type: vsphere:ConfigurationProfile
    properties:
        clusterId: string
        configuration: string
        referenceHostId: string
    

    ConfigurationProfile Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ConfigurationProfile resource accepts the following input properties:

    ClusterId string
    The identifier of the cluster.
    Configuration string
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    ReferenceHostId string
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    ClusterId string
    The identifier of the cluster.
    Configuration string
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    ReferenceHostId string
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    clusterId String
    The identifier of the cluster.
    configuration String
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    referenceHostId String
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    clusterId string
    The identifier of the cluster.
    configuration string
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    referenceHostId string
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    cluster_id str
    The identifier of the cluster.
    configuration str
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    reference_host_id str
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    clusterId String
    The identifier of the cluster.
    configuration String
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    referenceHostId String
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConfigurationProfile resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Schema string
    The JSON schema for the profile.
    Id string
    The provider-assigned unique ID for this managed resource.
    Schema string
    The JSON schema for the profile.
    id String
    The provider-assigned unique ID for this managed resource.
    schema String
    The JSON schema for the profile.
    id string
    The provider-assigned unique ID for this managed resource.
    schema string
    The JSON schema for the profile.
    id str
    The provider-assigned unique ID for this managed resource.
    schema str
    The JSON schema for the profile.
    id String
    The provider-assigned unique ID for this managed resource.
    schema String
    The JSON schema for the profile.

    Look up Existing ConfigurationProfile Resource

    Get an existing ConfigurationProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ConfigurationProfileState, opts?: CustomResourceOptions): ConfigurationProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            configuration: Optional[str] = None,
            reference_host_id: Optional[str] = None,
            schema: Optional[str] = None) -> ConfigurationProfile
    func GetConfigurationProfile(ctx *Context, name string, id IDInput, state *ConfigurationProfileState, opts ...ResourceOption) (*ConfigurationProfile, error)
    public static ConfigurationProfile Get(string name, Input<string> id, ConfigurationProfileState? state, CustomResourceOptions? opts = null)
    public static ConfigurationProfile get(String name, Output<String> id, ConfigurationProfileState state, CustomResourceOptions options)
    resources:  _:    type: vsphere:ConfigurationProfile    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClusterId string
    The identifier of the cluster.
    Configuration string
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    ReferenceHostId string
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    Schema string
    The JSON schema for the profile.
    ClusterId string
    The identifier of the cluster.
    Configuration string
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    ReferenceHostId string
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    Schema string
    The JSON schema for the profile.
    clusterId String
    The identifier of the cluster.
    configuration String
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    referenceHostId String
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    schema String
    The JSON schema for the profile.
    clusterId string
    The identifier of the cluster.
    configuration string
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    referenceHostId string
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    schema string
    The JSON schema for the profile.
    cluster_id str
    The identifier of the cluster.
    configuration str
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    reference_host_id str
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    schema str
    The JSON schema for the profile.
    clusterId String
    The identifier of the cluster.
    configuration String
    The configuration JSON provided as a plain string. This argument can only be specified if reference_host_id is not set.
    referenceHostId String
    The identifier of the host to use as a configuration source. The host needs to be a member of the cluster identified by cluster_id. This argument can only be specified if configuration is not set.
    schema String
    The JSON schema for the profile.

    Package Details

    Repository
    vSphere pulumi/pulumi-vsphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vsphere Terraform Provider.
    vsphere logo
    Viewing docs for vSphere v4.16.5
    published on Friday, Mar 27, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.