1. Packages
  2. Koyeb
  3. API Docs
  4. getApp
koyeb v0.1.7 published on Wednesday, Nov 30, 2022 by Koyeb

koyeb.getApp

Explore with Pulumi AI

koyeb logo
koyeb v0.1.7 published on Wednesday, Nov 30, 2022 by Koyeb

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Koyeb = Pulumi.Koyeb;
    
    return await Deployment.RunAsync(() => 
    {
        var my_app = Koyeb.GetApp.Invoke(new()
        {
            Name = "my-app",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-koyeb/sdk/go/koyeb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := koyeb.GetApp(ctx, &GetAppArgs{
    			Name: "my-app",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.koyeb.KoyebFunctions;
    import com.pulumi.koyeb.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 my-app = KoyebFunctions.getApp(GetAppArgs.builder()
                .name("my-app")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_koyeb as koyeb
    
    my_app = koyeb.get_app(name="my-app")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as koyeb from "@pulumi/koyeb";
    
    const my_app = pulumi.output(koyeb.getApp({
        name: "my-app",
    }));
    
    variables:
      my-app:
        Fn::Invoke:
          Function: koyeb:getApp
          Arguments:
            name: my-app
    

    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(name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetAppResult
    def get_app_output(name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAppResult]
    func GetApp(ctx *Context, args *GetAppArgs, opts ...InvokeOption) (*GetAppResult, error)
    func GetAppOutput(ctx *Context, args *GetAppOutputArgs, opts ...InvokeOption) GetAppResultOutput

    > Note: This function is named GetApp 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: koyeb:index/getApp:getApp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The app name
    Name string
    The app name
    name String
    The app name
    name string
    The app name
    name str
    The app name
    name String
    The app name

    getApp Result

    The following output properties are available:

    CreatedAt string
    The date and time of when the app was created
    Domains List<GetAppDomain>
    The app domains
    Id string
    The app ID
    Name string
    The app name
    OrganizationId string
    The organization ID owning the app
    UpdatedAt string
    The date and time of when the app was last updated
    CreatedAt string
    The date and time of when the app was created
    Domains []GetAppDomain
    The app domains
    Id string
    The app ID
    Name string
    The app name
    OrganizationId string
    The organization ID owning the app
    UpdatedAt string
    The date and time of when the app was last updated
    createdAt String
    The date and time of when the app was created
    domains List<GetAppDomain>
    The app domains
    id String
    The app ID
    name String
    The app name
    organizationId String
    The organization ID owning the app
    updatedAt String
    The date and time of when the app was last updated
    createdAt string
    The date and time of when the app was created
    domains GetAppDomain[]
    The app domains
    id string
    The app ID
    name string
    The app name
    organizationId string
    The organization ID owning the app
    updatedAt string
    The date and time of when the app was last updated
    created_at str
    The date and time of when the app was created
    domains Sequence[GetAppDomain]
    The app domains
    id str
    The app ID
    name str
    The app name
    organization_id str
    The organization ID owning the app
    updated_at str
    The date and time of when the app was last updated
    createdAt String
    The date and time of when the app was created
    domains List<Property Map>
    The app domains
    id String
    The app ID
    name String
    The app name
    organizationId String
    The organization ID owning the app
    updatedAt String
    The date and time of when the app was last updated

    Supporting Types

    GetAppDomain

    CreatedAt string
    The date and time of when the app was created
    DeploymentGroup string
    Id string
    The app ID
    IntendedCname string
    Messages string
    Name string
    The app name
    OrganizationId string
    The organization ID owning the app
    Status string
    Type string
    UpdatedAt string
    The date and time of when the app was last updated
    VerifiedAt string
    Version string
    AppName string
    CreatedAt string
    The date and time of when the app was created
    DeploymentGroup string
    Id string
    The app ID
    IntendedCname string
    Messages string
    Name string
    The app name
    OrganizationId string
    The organization ID owning the app
    Status string
    Type string
    UpdatedAt string
    The date and time of when the app was last updated
    VerifiedAt string
    Version string
    AppName string
    createdAt String
    The date and time of when the app was created
    deploymentGroup String
    id String
    The app ID
    intendedCname String
    messages String
    name String
    The app name
    organizationId String
    The organization ID owning the app
    status String
    type String
    updatedAt String
    The date and time of when the app was last updated
    verifiedAt String
    version String
    appName String
    createdAt string
    The date and time of when the app was created
    deploymentGroup string
    id string
    The app ID
    intendedCname string
    messages string
    name string
    The app name
    organizationId string
    The organization ID owning the app
    status string
    type string
    updatedAt string
    The date and time of when the app was last updated
    verifiedAt string
    version string
    appName string
    created_at str
    The date and time of when the app was created
    deployment_group str
    id str
    The app ID
    intended_cname str
    messages str
    name str
    The app name
    organization_id str
    The organization ID owning the app
    status str
    type str
    updated_at str
    The date and time of when the app was last updated
    verified_at str
    version str
    app_name str
    createdAt String
    The date and time of when the app was created
    deploymentGroup String
    id String
    The app ID
    intendedCname String
    messages String
    name String
    The app name
    organizationId String
    The organization ID owning the app
    status String
    type String
    updatedAt String
    The date and time of when the app was last updated
    verifiedAt String
    version String
    appName String

    Package Details

    Repository
    koyeb koyeb/pulumi-koyeb
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the koyeb Terraform Provider.
    koyeb logo
    koyeb v0.1.7 published on Wednesday, Nov 30, 2022 by Koyeb