1. Packages
  2. Koyeb
  3. API Docs
  4. getApp
koyeb v0.1.8 published on Friday, Nov 15, 2024 by Koyeb

koyeb.getApp

Explore with Pulumi AI

koyeb logo
koyeb v0.1.8 published on Friday, Nov 15, 2024 by Koyeb

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as koyeb from "@pulumi/koyeb";
    
    const my-app = koyeb.getApp({
        name: "my-app",
    });
    
    import pulumi
    import pulumi_koyeb as koyeb
    
    my_app = koyeb.get_app(name="my-app")
    
    package main
    
    import (
    	"github.com/koyeb/pulumi-koyeb/sdk/go/koyeb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := koyeb.LookupApp(ctx, &koyeb.LookupAppArgs{
    			Name: "my-app",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Koyeb = Pulumi.Koyeb;
    
    return await Deployment.RunAsync(() => 
    {
        var my_app = Koyeb.GetApp.Invoke(new()
        {
            Name = "my-app",
        });
    
    });
    
    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());
    
        }
    }
    
    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 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: 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 domain was created
    DeploymentGroup string
    The deployment group assigned to the domain
    Id string
    The domain ID
    IntendedCname string
    The CNAME record to point the domain to
    Messages string
    The status messages of the domain
    Name string
    The domain name
    OrganizationId string
    The organization ID owning the domain
    Status string
    The status of the domain
    Type string
    The domain type
    UpdatedAt string
    The date and time of when the domain was last updated
    VerifiedAt string
    The date and time of when the domain was last verified
    Version string
    The version of the domain
    AppName string
    The app name the domain is assigned to
    CreatedAt string
    The date and time of when the domain was created
    DeploymentGroup string
    The deployment group assigned to the domain
    Id string
    The domain ID
    IntendedCname string
    The CNAME record to point the domain to
    Messages string
    The status messages of the domain
    Name string
    The domain name
    OrganizationId string
    The organization ID owning the domain
    Status string
    The status of the domain
    Type string
    The domain type
    UpdatedAt string
    The date and time of when the domain was last updated
    VerifiedAt string
    The date and time of when the domain was last verified
    Version string
    The version of the domain
    AppName string
    The app name the domain is assigned to
    createdAt String
    The date and time of when the domain was created
    deploymentGroup String
    The deployment group assigned to the domain
    id String
    The domain ID
    intendedCname String
    The CNAME record to point the domain to
    messages String
    The status messages of the domain
    name String
    The domain name
    organizationId String
    The organization ID owning the domain
    status String
    The status of the domain
    type String
    The domain type
    updatedAt String
    The date and time of when the domain was last updated
    verifiedAt String
    The date and time of when the domain was last verified
    version String
    The version of the domain
    appName String
    The app name the domain is assigned to
    createdAt string
    The date and time of when the domain was created
    deploymentGroup string
    The deployment group assigned to the domain
    id string
    The domain ID
    intendedCname string
    The CNAME record to point the domain to
    messages string
    The status messages of the domain
    name string
    The domain name
    organizationId string
    The organization ID owning the domain
    status string
    The status of the domain
    type string
    The domain type
    updatedAt string
    The date and time of when the domain was last updated
    verifiedAt string
    The date and time of when the domain was last verified
    version string
    The version of the domain
    appName string
    The app name the domain is assigned to
    created_at str
    The date and time of when the domain was created
    deployment_group str
    The deployment group assigned to the domain
    id str
    The domain ID
    intended_cname str
    The CNAME record to point the domain to
    messages str
    The status messages of the domain
    name str
    The domain name
    organization_id str
    The organization ID owning the domain
    status str
    The status of the domain
    type str
    The domain type
    updated_at str
    The date and time of when the domain was last updated
    verified_at str
    The date and time of when the domain was last verified
    version str
    The version of the domain
    app_name str
    The app name the domain is assigned to
    createdAt String
    The date and time of when the domain was created
    deploymentGroup String
    The deployment group assigned to the domain
    id String
    The domain ID
    intendedCname String
    The CNAME record to point the domain to
    messages String
    The status messages of the domain
    name String
    The domain name
    organizationId String
    The organization ID owning the domain
    status String
    The status of the domain
    type String
    The domain type
    updatedAt String
    The date and time of when the domain was last updated
    verifiedAt String
    The date and time of when the domain was last verified
    version String
    The version of the domain
    appName String
    The app name the domain is assigned to

    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.8 published on Friday, Nov 15, 2024 by Koyeb