spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud
spectrocloud.getClusterProfile
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Context string
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - Id string
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - Name string
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - Version string
 - The version of the cluster profile.
 
- Context string
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - Id string
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - Name string
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - Version string
 - The version of the cluster profile.
 
- context String
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - id String
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name String
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - version String
 - The version of the cluster profile.
 
- context string
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - id string
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name string
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - version string
 - The version of the cluster profile.
 
- context str
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - id str
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name str
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - version str
 - The version of the cluster profile.
 
- context String
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - id String
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name String
 - The name of the cluster profile. Either 
idornamemust 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 
idornamemust be provided, but not both. - Name string
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - Packs
List<Get
Cluster Profile Pack>  - Version string
 - The version of the cluster profile.
 - Context string
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. 
- Id string
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - Name string
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - Packs
[]Get
Cluster Profile Pack  - Version string
 - The version of the cluster profile.
 - Context string
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. 
- id String
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name String
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - packs
List<Get
Cluster Profile Pack>  - version String
 - The version of the cluster profile.
 - context String
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. 
- id string
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name string
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - packs
Get
Cluster Profile Pack[]  - version string
 - The version of the cluster profile.
 - context string
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. 
- id str
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name str
 - The name of the cluster profile. Either 
idornamemust be provided, but not both. - packs
Sequence[Get
Cluster Profile Pack]  - version str
 - The version of the cluster profile.
 - context str
 - Cluster profile context. Allowed values are 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. 
- id String
 - The unique ID of the cluster profile. Either 
idornamemust be provided, but not both. - name String
 - The name of the cluster profile. Either 
idornamemust 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 
projectortenant. Defaults toproject.If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. 
Supporting Types
GetClusterProfilePack   
- Manifests
List<Get
Cluster Profile Pack Manifest>  - Name string
 - Registry
Uid string - Tag string
 - Type string
 - Uid string
 - Values string
 
- Manifests
[]Get
Cluster Profile Pack Manifest  - Name string
 - Registry
Uid string - Tag string
 - Type string
 - Uid string
 - Values string
 
- manifests
List<Get
Cluster Profile Pack Manifest>  - name String
 - registry
Uid String - tag String
 - type String
 - uid String
 - values String
 
- manifests
Get
Cluster Profile Pack Manifest[]  - name string
 - registry
Uid string - tag string
 - type string
 - uid string
 - values string
 
- manifests
Sequence[Get
Cluster Profile Pack Manifest]  - name str
 - registry_
uid str - tag str
 - type str
 - uid str
 - values str
 
- manifests List<Property Map>
 - name String
 - registry
Uid String - tag String
 - type String
 - uid String
 - values String
 
GetClusterProfilePackManifest    
Package Details
- Repository
 - spectrocloud spectrocloud/terraform-provider-spectrocloud
 - License
 - Notes
 - This Pulumi package is based on the 
spectrocloudTerraform Provider. 
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud