1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. getApplicationProfile
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

spectrocloud.getApplicationProfile

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

    Use this data source to get the details of an existing application profile.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const exampleProfile = spectrocloud.getApplicationProfile({
        name: "my-app-profile",
    });
    export const applicationProfileVersion = exampleProfile.then(exampleProfile => exampleProfile.version);
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    example_profile = spectrocloud.get_application_profile(name="my-app-profile")
    pulumi.export("applicationProfileVersion", example_profile.version)
    
    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 {
    		exampleProfile, err := spectrocloud.LookupApplicationProfile(ctx, &spectrocloud.LookupApplicationProfileArgs{
    			Name: "my-app-profile",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("applicationProfileVersion", exampleProfile.Version)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleProfile = Spectrocloud.GetApplicationProfile.Invoke(new()
        {
            Name = "my-app-profile",
        });
    
        return new Dictionary<string, object?>
        {
            ["applicationProfileVersion"] = exampleProfile.Apply(getApplicationProfileResult => getApplicationProfileResult.Version),
        };
    });
    
    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.GetApplicationProfileArgs;
    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 exampleProfile = SpectrocloudFunctions.getApplicationProfile(GetApplicationProfileArgs.builder()
                .name("my-app-profile")
                .build());
    
            ctx.export("applicationProfileVersion", exampleProfile.applyValue(getApplicationProfileResult -> getApplicationProfileResult.version()));
        }
    }
    
    variables:
      exampleProfile:
        fn::invoke:
          function: spectrocloud:getApplicationProfile
          arguments:
            name: my-app-profile
    outputs:
      # Output the retrieved application profile details
      applicationProfileVersion: ${exampleProfile.version}
    

    Using getApplicationProfile

    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 getApplicationProfile(args: GetApplicationProfileArgs, opts?: InvokeOptions): Promise<GetApplicationProfileResult>
    function getApplicationProfileOutput(args: GetApplicationProfileOutputArgs, opts?: InvokeOptions): Output<GetApplicationProfileResult>
    def get_application_profile(id: Optional[str] = None,
                                name: Optional[str] = None,
                                version: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetApplicationProfileResult
    def get_application_profile_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                version: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetApplicationProfileResult]
    func LookupApplicationProfile(ctx *Context, args *LookupApplicationProfileArgs, opts ...InvokeOption) (*LookupApplicationProfileResult, error)
    func LookupApplicationProfileOutput(ctx *Context, args *LookupApplicationProfileOutputArgs, opts ...InvokeOption) LookupApplicationProfileResultOutput

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

    public static class GetApplicationProfile 
    {
        public static Task<GetApplicationProfileResult> InvokeAsync(GetApplicationProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetApplicationProfileResult> Invoke(GetApplicationProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplicationProfileResult> getApplicationProfile(GetApplicationProfileArgs args, InvokeOptions options)
    public static Output<GetApplicationProfileResult> getApplicationProfile(GetApplicationProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: spectrocloud:index/getApplicationProfile:getApplicationProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the application profile
    Id string
    The ID of this resource.
    Version string
    The version of the app profile. Default value is '1.0.0'.
    Name string
    Name of the application profile
    Id string
    The ID of this resource.
    Version string
    The version of the app profile. Default value is '1.0.0'.
    name String
    Name of the application profile
    id String
    The ID of this resource.
    version String
    The version of the app profile. Default value is '1.0.0'.
    name string
    Name of the application profile
    id string
    The ID of this resource.
    version string
    The version of the app profile. Default value is '1.0.0'.
    name str
    Name of the application profile
    id str
    The ID of this resource.
    version str
    The version of the app profile. Default value is '1.0.0'.
    name String
    Name of the application profile
    id String
    The ID of this resource.
    version String
    The version of the app profile. Default value is '1.0.0'.

    getApplicationProfile Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Name of the application profile
    Version string
    The version of the app profile. Default value is '1.0.0'.
    Id string
    The ID of this resource.
    Name string
    Name of the application profile
    Version string
    The version of the app profile. Default value is '1.0.0'.
    id String
    The ID of this resource.
    name String
    Name of the application profile
    version String
    The version of the app profile. Default value is '1.0.0'.
    id string
    The ID of this resource.
    name string
    Name of the application profile
    version string
    The version of the app profile. Default value is '1.0.0'.
    id str
    The ID of this resource.
    name str
    Name of the application profile
    version str
    The version of the app profile. Default value is '1.0.0'.
    id String
    The ID of this resource.
    name String
    Name of the application profile
    version String
    The version of the app profile. Default value is '1.0.0'.

    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.5 published on Sunday, Apr 20, 2025 by spectrocloud