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

spectrocloud.getApplicationProfile

Explore with Pulumi AI

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 my_app_profile = spectrocloud.getApplicationProfile({
    name: "my-app-profile",
});
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

my_app_profile = spectrocloud.get_application_profile(name="my-app-profile")
Copy
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 {
		_, err := spectrocloud.LookupApplicationProfile(ctx, &spectrocloud.LookupApplicationProfileArgs{
			Name: "my-app-profile",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var my_app_profile = Spectrocloud.GetApplicationProfile.Invoke(new()
    {
        Name = "my-app-profile",
    });

});
Copy
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 my-app-profile = SpectrocloudFunctions.getApplicationProfile(GetApplicationProfileArgs.builder()
            .name("my-app-profile")
            .build());

    }
}
Copy
variables:
  my-app-profile:
    fn::invoke:
      function: spectrocloud:getApplicationProfile
      arguments:
        name: my-app-profile
Copy

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>
Copy
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]
Copy
func LookupApplicationProfile(ctx *Context, args *LookupApplicationProfileArgs, opts ...InvokeOption) (*LookupApplicationProfileResult, error)
func LookupApplicationProfileOutput(ctx *Context, args *LookupApplicationProfileOutputArgs, opts ...InvokeOption) LookupApplicationProfileResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetApplicationProfileResult> getApplicationProfile(GetApplicationProfileArgs args, InvokeOptions options)
public static Output<GetApplicationProfileResult> getApplicationProfile(GetApplicationProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: spectrocloud:index/getApplicationProfile:getApplicationProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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.