Rancher 2 v7.1.1 published on Monday, Oct 7, 2024 by Pulumi
rancher2.getApp
Explore with Pulumi AI
Use this data source to retrieve information about a Rancher v2 app.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const rancher2 = rancher2.getApp({
name: "foo",
projectId: "<project_id>",
targetNamespace: "<namespace_name>",
});
import pulumi
import pulumi_rancher2 as rancher2
rancher2 = rancher2.get_app(name="foo",
project_id="<project_id>",
target_namespace="<namespace_name>")
package main
import (
"github.com/pulumi/pulumi-rancher2/sdk/v7/go/rancher2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rancher2.LookupApp(ctx, &rancher2.LookupAppArgs{
Name: "foo",
ProjectId: "<project_id>",
TargetNamespace: pulumi.StringRef("<namespace_name>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
return await Deployment.RunAsync(() =>
{
var rancher2 = Rancher2.GetApp.Invoke(new()
{
Name = "foo",
ProjectId = "<project_id>",
TargetNamespace = "<namespace_name>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rancher2.Rancher2Functions;
import com.pulumi.rancher2.inputs.GetAppArgs;
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 rancher2 = Rancher2Functions.getApp(GetAppArgs.builder()
.name("foo")
.projectId("<project_id>")
.targetNamespace("<namespace_name>")
.build());
}
}
variables:
rancher2:
fn::invoke:
Function: rancher2:getApp
Arguments:
name: foo
projectId: <project_id>
targetNamespace: <namespace_name>
Using getApp
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 getApp(args: GetAppArgs, opts?: InvokeOptions): Promise<GetAppResult>
function getAppOutput(args: GetAppOutputArgs, opts?: InvokeOptions): Output<GetAppResult>
def get_app(annotations: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
target_namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppResult
def get_app_output(annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
target_namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppResult]
func LookupApp(ctx *Context, args *LookupAppArgs, opts ...InvokeOption) (*LookupAppResult, error)
func LookupAppOutput(ctx *Context, args *LookupAppOutputArgs, opts ...InvokeOption) LookupAppResultOutput
> Note: This function is named LookupApp
in the Go SDK.
public static class GetApp
{
public static Task<GetAppResult> InvokeAsync(GetAppArgs args, InvokeOptions? opts = null)
public static Output<GetAppResult> Invoke(GetAppInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rancher2:index/getApp:getApp
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The app name (string)
- Project
Id string - The id of the project where the app is deployed (string)
- Annotations Dictionary<string, string>
- (Computed) Annotations for the catalog (map)
- Target
Namespace string - The namespace name where the app is deployed (string)
- Name string
- The app name (string)
- Project
Id string - The id of the project where the app is deployed (string)
- Annotations map[string]string
- (Computed) Annotations for the catalog (map)
- Target
Namespace string - The namespace name where the app is deployed (string)
- name String
- The app name (string)
- project
Id String - The id of the project where the app is deployed (string)
- annotations Map<String,String>
- (Computed) Annotations for the catalog (map)
- target
Namespace String - The namespace name where the app is deployed (string)
- name string
- The app name (string)
- project
Id string - The id of the project where the app is deployed (string)
- annotations {[key: string]: string}
- (Computed) Annotations for the catalog (map)
- target
Namespace 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, str]
- (Computed) Annotations for the catalog (map)
- target_
namespace str - The namespace name where the app is deployed (string)
- name String
- The app name (string)
- project
Id String - The id of the project where the app is deployed (string)
- annotations Map<String>
- (Computed) Annotations for the catalog (map)
- target
Namespace String - The namespace name where the app is deployed (string)
getApp Result
The following output properties are available:
- Annotations Dictionary<string, string>
- (Computed) Annotations for the catalog (map)
- Answers Dictionary<string, string>
- (Computed) Answers for the app (map)
- Catalog
Name string - (Computed) Catalog name of the app (string)
- Description string
- (Computed) Description for the app (string)
- External
Id string - (Computed) The URL of the helm catalog app (string)
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- (Computed) Labels for the catalog (map)
- Name string
- Project
Id string - Revision
Id string - (Computed) Current revision id for the app (string)
- Target
Namespace string - Template
Name string - (Computed) Template name of the app (string)
- Template
Version string - (Computed) Template version of the app (string)
- Values
Yaml string - (Computed) values.yaml base64 encoded file content for the app (string)
- Annotations map[string]string
- (Computed) Annotations for the catalog (map)
- Answers map[string]string
- (Computed) Answers for the app (map)
- Catalog
Name string - (Computed) Catalog name of the app (string)
- Description string
- (Computed) Description for the app (string)
- External
Id string - (Computed) The URL of the helm catalog app (string)
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- (Computed) Labels for the catalog (map)
- Name string
- Project
Id string - Revision
Id string - (Computed) Current revision id for the app (string)
- Target
Namespace string - Template
Name string - (Computed) Template name of the app (string)
- Template
Version string - (Computed) Template version of the app (string)
- Values
Yaml string - (Computed) values.yaml base64 encoded file content for the app (string)
- annotations Map<String,String>
- (Computed) Annotations for the catalog (map)
- answers Map<String,String>
- (Computed) Answers for the app (map)
- catalog
Name String - (Computed) Catalog name of the app (string)
- description String
- (Computed) Description for the app (string)
- external
Id String - (Computed) The URL of the helm catalog app (string)
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- (Computed) Labels for the catalog (map)
- name String
- project
Id String - revision
Id String - (Computed) Current revision id for the app (string)
- target
Namespace String - template
Name String - (Computed) Template name of the app (string)
- template
Version String - (Computed) Template version of the app (string)
- values
Yaml String - (Computed) values.yaml base64 encoded file content for the app (string)
- annotations {[key: string]: string}
- (Computed) Annotations for the catalog (map)
- answers {[key: string]: string}
- (Computed) Answers for the app (map)
- catalog
Name string - (Computed) Catalog name of the app (string)
- description string
- (Computed) Description for the app (string)
- external
Id string - (Computed) The URL of the helm catalog app (string)
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- (Computed) Labels for the catalog (map)
- name string
- project
Id string - revision
Id string - (Computed) Current revision id for the app (string)
- target
Namespace string - template
Name string - (Computed) Template name of the app (string)
- template
Version string - (Computed) Template version of the app (string)
- values
Yaml string - (Computed) values.yaml base64 encoded file content for the app (string)
- annotations Mapping[str, str]
- (Computed) Annotations for the catalog (map)
- answers Mapping[str, str]
- (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, str]
- (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)
- annotations Map<String>
- (Computed) Annotations for the catalog (map)
- answers Map<String>
- (Computed) Answers for the app (map)
- catalog
Name String - (Computed) Catalog name of the app (string)
- description String
- (Computed) Description for the app (string)
- external
Id String - (Computed) The URL of the helm catalog app (string)
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- (Computed) Labels for the catalog (map)
- name String
- project
Id String - revision
Id String - (Computed) Current revision id for the app (string)
- target
Namespace String - template
Name String - (Computed) Template name of the app (string)
- template
Version String - (Computed) Template version of the app (string)
- values
Yaml String - (Computed) values.yaml base64 encoded file content for the app (string)
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2
Terraform Provider.