vSphere v4.16.0 published on Saturday, Aug 23, 2025 by Pulumi
vsphere.getConfigurationProfile
Explore with Pulumi AI
The vsphere.ConfigurationProfile
data source can be used to export the configuration and schema
of a cluster that is already managed via configuration profiles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const datacenter = vsphere.getDatacenter({
name: "dc-01",
});
const computeCluster = datacenter.then(datacenter => vsphere.getComputeCluster({
name: "cluster-01",
datacenterId: datacenter.id,
}));
const profile = computeCluster.then(computeCluster => vsphere.getConfigurationProfile({
clusterId: computeCluster.id,
}));
import pulumi
import pulumi_vsphere as vsphere
datacenter = vsphere.get_datacenter(name="dc-01")
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
datacenter_id=datacenter.id)
profile = vsphere.get_configuration_profile(cluster_id=compute_cluster.id)
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
}
computeCluster, err := vsphere.LookupComputeCluster(ctx, &vsphere.LookupComputeClusterArgs{
Name: "cluster-01",
DatacenterId: pulumi.StringRef(datacenter.Id),
}, nil)
if err != nil {
return err
}
_, err = vsphere.LookupConfigurationProfile(ctx, &vsphere.LookupConfigurationProfileArgs{
ClusterId: computeCluster.Id,
}, nil)
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 computeCluster = VSphere.GetComputeCluster.Invoke(new()
{
Name = "cluster-01",
DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
});
var profile = VSphere.GetConfigurationProfile.Invoke(new()
{
ClusterId = computeCluster.Apply(getComputeClusterResult => getComputeClusterResult.Id),
});
});
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.GetConfigurationProfileArgs;
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 computeCluster = VsphereFunctions.getComputeCluster(GetComputeClusterArgs.builder()
.name("cluster-01")
.datacenterId(datacenter.id())
.build());
final var profile = VsphereFunctions.getConfigurationProfile(GetConfigurationProfileArgs.builder()
.clusterId(computeCluster.id())
.build());
}
}
variables:
datacenter:
fn::invoke:
function: vsphere:getDatacenter
arguments:
name: dc-01
computeCluster:
fn::invoke:
function: vsphere:getComputeCluster
arguments:
name: cluster-01
datacenterId: ${datacenter.id}
profile:
fn::invoke:
function: vsphere:getConfigurationProfile
arguments:
clusterId: ${computeCluster.id}
Using getConfigurationProfile
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getConfigurationProfile(args: GetConfigurationProfileArgs, opts?: InvokeOptions): Promise<GetConfigurationProfileResult>
function getConfigurationProfileOutput(args: GetConfigurationProfileOutputArgs, opts?: InvokeOptions): Output<GetConfigurationProfileResult>
def get_configuration_profile(cluster_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConfigurationProfileResult
def get_configuration_profile_output(cluster_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationProfileResult]
func LookupConfigurationProfile(ctx *Context, args *LookupConfigurationProfileArgs, opts ...InvokeOption) (*LookupConfigurationProfileResult, error)
func LookupConfigurationProfileOutput(ctx *Context, args *LookupConfigurationProfileOutputArgs, opts ...InvokeOption) LookupConfigurationProfileResultOutput
> Note: This function is named LookupConfigurationProfile
in the Go SDK.
public static class GetConfigurationProfile
{
public static Task<GetConfigurationProfileResult> InvokeAsync(GetConfigurationProfileArgs args, InvokeOptions? opts = null)
public static Output<GetConfigurationProfileResult> Invoke(GetConfigurationProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConfigurationProfileResult> getConfigurationProfile(GetConfigurationProfileArgs args, InvokeOptions options)
public static Output<GetConfigurationProfileResult> getConfigurationProfile(GetConfigurationProfileArgs args, InvokeOptions options)
fn::invoke:
function: vsphere:index/getConfigurationProfile:getConfigurationProfile
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The identifier of the compute cluster.
- Cluster
Id string - The identifier of the compute cluster.
- cluster
Id String - The identifier of the compute cluster.
- cluster
Id string - The identifier of the compute cluster.
- cluster_
id str - The identifier of the compute cluster.
- cluster
Id String - The identifier of the compute cluster.
getConfigurationProfile Result
The following output properties are available:
- Cluster
Id string - Configuration string
- The current configuration which is active on the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schema string
- The JSON schema for the profile.
- Cluster
Id string - Configuration string
- The current configuration which is active on the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schema string
- The JSON schema for the profile.
- cluster
Id String - configuration String
- The current configuration which is active on the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- schema String
- The JSON schema for the profile.
- cluster
Id string - configuration string
- The current configuration which is active on the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- schema string
- The JSON schema for the profile.
- cluster_
id str - configuration str
- The current configuration which is active on the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- schema str
- The JSON schema for the profile.
- cluster
Id String - configuration String
- The current configuration which is active on the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.