Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getApp

Use this data source to retrieve information about a Rancher v2 app.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var rancher2 = Output.Create(Rancher2.GetApp.InvokeAsync(new Rancher2.GetAppArgs
        {
            Name = "foo",
            ProjectId = "<project_id>",
            TargetNamespace = "<namespace_name>",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "<namespace_name>"
        _, err := rancher2.LookupApp(ctx, &rancher2.LookupAppArgs{
            Name:            "foo",
            ProjectId:       "<project_id>",
            TargetNamespace: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_rancher2 as rancher2

rancher2 = rancher2.get_app(name="foo",
    project_id="<project_id>",
    target_namespace="<namespace_name>")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const rancher2App = pulumi.output(rancher2.getApp({
    name: "foo",
    projectId: "<project_id>",
    targetNamespace: "<namespace_name>",
}, { async: true }));

Using getApp

function getApp(args: GetAppArgs, opts?: InvokeOptions): Promise<GetAppResult>
def get_app(annotations: Optional[Mapping[str, Any]] = None, name: Optional[str] = None, project_id: Optional[str] = None, target_namespace: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetAppResult
func LookupApp(ctx *Context, args *LookupAppArgs, opts ...InvokeOption) (*LookupAppResult, error)

Note: This function is named LookupApp in the Go SDK.

public static class GetApp {
    public static Task<GetAppResult> InvokeAsync(GetAppArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The app name (string)

ProjectId string

The id of the project where the app is deployed (string)

Annotations Dictionary<string, object>

(Computed) Annotations for the catalog (map)

TargetNamespace string

The namespace name where the app is deployed (string)

Name string

The app name (string)

ProjectId string

The id of the project where the app is deployed (string)

Annotations map[string]interface{}

(Computed) Annotations for the catalog (map)

TargetNamespace string

The namespace name where the app is deployed (string)

name string

The app name (string)

projectId string

The id of the project where the app is deployed (string)

annotations {[key: string]: any}

(Computed) Annotations for the catalog (map)

targetNamespace string

The namespace name where the app is deployed (string)

name str

The app name (string)

project_id str

The id of the project where the app is deployed (string)

annotations Mapping[str, Any]

(Computed) Annotations for the catalog (map)

target_namespace str

The namespace name where the app is deployed (string)

getApp Result

The following output properties are available:

Annotations Dictionary<string, object>

(Computed) Annotations for the catalog (map)

Answers Dictionary<string, object>

(Computed) Answers for the app (map)

CatalogName string

(Computed) Catalog name of the app (string)

Description string

(Computed) Description for the app (string)

ExternalId string

(Computed) The URL of the helm catalog app (string)

Id string

The provider-assigned unique ID for this managed resource.

Labels Dictionary<string, object>

(Computed) Labels for the catalog (map)

Name string
ProjectId string
RevisionId string

(Computed) Current revision id for the app (string)

TargetNamespace string
TemplateName string

(Computed) Template name of the app (string)

TemplateVersion string

(Computed) Template version of the app (string)

ValuesYaml string

(Computed) values.yaml base64 encoded file content for the app (string)

Annotations map[string]interface{}

(Computed) Annotations for the catalog (map)

Answers map[string]interface{}

(Computed) Answers for the app (map)

CatalogName string

(Computed) Catalog name of the app (string)

Description string

(Computed) Description for the app (string)

ExternalId string

(Computed) The URL of the helm catalog app (string)

Id string

The provider-assigned unique ID for this managed resource.

Labels map[string]interface{}

(Computed) Labels for the catalog (map)

Name string
ProjectId string
RevisionId string

(Computed) Current revision id for the app (string)

TargetNamespace string
TemplateName string

(Computed) Template name of the app (string)

TemplateVersion string

(Computed) Template version of the app (string)

ValuesYaml string

(Computed) values.yaml base64 encoded file content for the app (string)

annotations {[key: string]: any}

(Computed) Annotations for the catalog (map)

answers {[key: string]: any}

(Computed) Answers for the app (map)

catalogName string

(Computed) Catalog name of the app (string)

description string

(Computed) Description for the app (string)

externalId string

(Computed) The URL of the helm catalog app (string)

id string

The provider-assigned unique ID for this managed resource.

labels {[key: string]: any}

(Computed) Labels for the catalog (map)

name string
projectId string
revisionId string

(Computed) Current revision id for the app (string)

targetNamespace string
templateName string

(Computed) Template name of the app (string)

templateVersion string

(Computed) Template version of the app (string)

valuesYaml string

(Computed) values.yaml base64 encoded file content for the app (string)

annotations Mapping[str, Any]

(Computed) Annotations for the catalog (map)

answers Mapping[str, Any]

(Computed) Answers for the app (map)

catalog_name str

(Computed) Catalog name of the app (string)

description str

(Computed) Description for the app (string)

external_id str

(Computed) The URL of the helm catalog app (string)

id str

The provider-assigned unique ID for this managed resource.

labels Mapping[str, Any]

(Computed) Labels for the catalog (map)

name str
project_id str
revision_id str

(Computed) Current revision id for the app (string)

target_namespace str
template_name str

(Computed) Template name of the app (string)

template_version str

(Computed) Template version of the app (string)

values_yaml str

(Computed) values.yaml base64 encoded file content for the app (string)

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.