1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. getClusterProfile
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

spectrocloud.getClusterProfile

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const profile1 = spectrocloud.getClusterProfile({
        name: "niktest_profile",
    });
    export const same = profile1;
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    profile1 = spectrocloud.get_cluster_profile(name="niktest_profile")
    pulumi.export("same", profile1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		profile1, err := spectrocloud.LookupClusterProfile(ctx, &spectrocloud.LookupClusterProfileArgs{
    			Name: pulumi.StringRef("niktest_profile"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("same", profile1)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var profile1 = Spectrocloud.GetClusterProfile.Invoke(new()
        {
            Name = "niktest_profile",
        });
    
        return new Dictionary<string, object?>
        {
            ["same"] = profile1,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.SpectrocloudFunctions;
    import com.pulumi.spectrocloud.inputs.GetClusterProfileArgs;
    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 profile1 = SpectrocloudFunctions.getClusterProfile(GetClusterProfileArgs.builder()
                .name("niktest_profile")
                .build());
    
            ctx.export("same", profile1.applyValue(getClusterProfileResult -> getClusterProfileResult));
        }
    }
    
    variables:
      profile1:
        fn::invoke:
          function: spectrocloud:getClusterProfile
          arguments:
            name: niktest_profile
    outputs:
      same: ${profile1}
    

    Using getClusterProfile

    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 getClusterProfile(args: GetClusterProfileArgs, opts?: InvokeOptions): Promise<GetClusterProfileResult>
    function getClusterProfileOutput(args: GetClusterProfileOutputArgs, opts?: InvokeOptions): Output<GetClusterProfileResult>
    def get_cluster_profile(context: Optional[str] = None,
                            id: Optional[str] = None,
                            name: Optional[str] = None,
                            version: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetClusterProfileResult
    def get_cluster_profile_output(context: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            version: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetClusterProfileResult]
    func LookupClusterProfile(ctx *Context, args *LookupClusterProfileArgs, opts ...InvokeOption) (*LookupClusterProfileResult, error)
    func LookupClusterProfileOutput(ctx *Context, args *LookupClusterProfileOutputArgs, opts ...InvokeOption) LookupClusterProfileResultOutput

    > Note: This function is named LookupClusterProfile in the Go SDK.

    public static class GetClusterProfile 
    {
        public static Task<GetClusterProfileResult> InvokeAsync(GetClusterProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetClusterProfileResult> Invoke(GetClusterProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClusterProfileResult> getClusterProfile(GetClusterProfileArgs args, InvokeOptions options)
    public static Output<GetClusterProfileResult> getClusterProfile(GetClusterProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: spectrocloud:index/getClusterProfile:getClusterProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Context string
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    Id string
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    Name string
    The name of the cluster profile. Either id or name must be provided, but not both.
    Version string
    The version of the cluster profile.
    Context string
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    Id string
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    Name string
    The name of the cluster profile. Either id or name must be provided, but not both.
    Version string
    The version of the cluster profile.
    context String
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id String
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name String
    The name of the cluster profile. Either id or name must be provided, but not both.
    version String
    The version of the cluster profile.
    context string
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id string
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name string
    The name of the cluster profile. Either id or name must be provided, but not both.
    version string
    The version of the cluster profile.
    context str
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id str
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name str
    The name of the cluster profile. Either id or name must be provided, but not both.
    version str
    The version of the cluster profile.
    context String
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id String
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name String
    The name of the cluster profile. Either id or name must be provided, but not both.
    version String
    The version of the cluster profile.

    getClusterProfile Result

    The following output properties are available:

    Id string
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    Name string
    The name of the cluster profile. Either id or name must be provided, but not both.
    Packs List<GetClusterProfilePack>
    Version string
    The version of the cluster profile.
    Context string
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    Id string
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    Name string
    The name of the cluster profile. Either id or name must be provided, but not both.
    Packs []GetClusterProfilePack
    Version string
    The version of the cluster profile.
    Context string
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id String
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name String
    The name of the cluster profile. Either id or name must be provided, but not both.
    packs List<GetClusterProfilePack>
    version String
    The version of the cluster profile.
    context String
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id string
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name string
    The name of the cluster profile. Either id or name must be provided, but not both.
    packs GetClusterProfilePack[]
    version string
    The version of the cluster profile.
    context string
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id str
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name str
    The name of the cluster profile. Either id or name must be provided, but not both.
    packs Sequence[GetClusterProfilePack]
    version str
    The version of the cluster profile.
    context str
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
    id String
    The unique ID of the cluster profile. Either id or name must be provided, but not both.
    name String
    The name of the cluster profile. Either id or name must be provided, but not both.
    packs List<Property Map>
    version String
    The version of the cluster profile.
    context String
    Cluster profile context. Allowed values are project or tenant. Defaults to project.If the project context is specified, the project name will sourced from the provider configuration parameter project_name.

    Supporting Types

    GetClusterProfilePack

    manifests List<Property Map>
    name String
    registryUid String
    tag String
    type String
    uid String
    values String

    GetClusterProfilePackManifest

    Content string
    Name string
    Uid string
    Content string
    Name string
    Uid string
    content String
    name String
    uid String
    content string
    name string
    uid string
    content str
    name str
    uid str
    content String
    name String
    uid String

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    spectrocloud logo
    spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud