koyeb v0.1.8 published on Friday, Nov 15, 2024 by Koyeb
koyeb.getApp
Explore with Pulumi AI
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:
- Created
At string - The date and time of when the app was created
- Domains
List<Get
App Domain> - The app domains
- Id string
- The app ID
- Name string
- The app name
- Organization
Id string - The organization ID owning the app
- Updated
At string - The date and time of when the app was last updated
- Created
At string - The date and time of when the app was created
- Domains
[]Get
App Domain - The app domains
- Id string
- The app ID
- Name string
- The app name
- Organization
Id string - The organization ID owning the app
- Updated
At string - The date and time of when the app was last updated
- created
At String - The date and time of when the app was created
- domains
List<Get
App Domain> - The app domains
- id String
- The app ID
- name String
- The app name
- organization
Id String - The organization ID owning the app
- updated
At String - The date and time of when the app was last updated
- created
At string - The date and time of when the app was created
- domains
Get
App Domain[] - The app domains
- id string
- The app ID
- name string
- The app name
- organization
Id string - The organization ID owning the app
- updated
At 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[Get
App Domain] - 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
- created
At 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
- organization
Id String - The organization ID owning the app
- updated
At String - The date and time of when the app was last updated
Supporting Types
GetAppDomain
- Created
At string - The date and time of when the domain was created
- Deployment
Group string - The deployment group assigned to the domain
- Id string
- The domain ID
- Intended
Cname string - The CNAME record to point the domain to
- Messages string
- The status messages of the domain
- Name string
- The domain name
- Organization
Id string - The organization ID owning the domain
- Status string
- The status of the domain
- Type string
- The domain type
- Updated
At string - The date and time of when the domain was last updated
- Verified
At string - The date and time of when the domain was last verified
- Version string
- The version of the domain
- App
Name string - The app name the domain is assigned to
- Created
At string - The date and time of when the domain was created
- Deployment
Group string - The deployment group assigned to the domain
- Id string
- The domain ID
- Intended
Cname string - The CNAME record to point the domain to
- Messages string
- The status messages of the domain
- Name string
- The domain name
- Organization
Id string - The organization ID owning the domain
- Status string
- The status of the domain
- Type string
- The domain type
- Updated
At string - The date and time of when the domain was last updated
- Verified
At string - The date and time of when the domain was last verified
- Version string
- The version of the domain
- App
Name string - The app name the domain is assigned to
- created
At String - The date and time of when the domain was created
- deployment
Group String - The deployment group assigned to the domain
- id String
- The domain ID
- intended
Cname String - The CNAME record to point the domain to
- messages String
- The status messages of the domain
- name String
- The domain name
- organization
Id String - The organization ID owning the domain
- status String
- The status of the domain
- type String
- The domain type
- updated
At String - The date and time of when the domain was last updated
- verified
At String - The date and time of when the domain was last verified
- version String
- The version of the domain
- app
Name String - The app name the domain is assigned to
- created
At string - The date and time of when the domain was created
- deployment
Group string - The deployment group assigned to the domain
- id string
- The domain ID
- intended
Cname string - The CNAME record to point the domain to
- messages string
- The status messages of the domain
- name string
- The domain name
- organization
Id string - The organization ID owning the domain
- status string
- The status of the domain
- type string
- The domain type
- updated
At string - The date and time of when the domain was last updated
- verified
At string - The date and time of when the domain was last verified
- version string
- The version of the domain
- app
Name 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
- created
At String - The date and time of when the domain was created
- deployment
Group String - The deployment group assigned to the domain
- id String
- The domain ID
- intended
Cname String - The CNAME record to point the domain to
- messages String
- The status messages of the domain
- name String
- The domain name
- organization
Id String - The organization ID owning the domain
- status String
- The status of the domain
- type String
- The domain type
- updated
At String - The date and time of when the domain was last updated
- verified
At String - The date and time of when the domain was last verified
- version String
- The version of the domain
- app
Name 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.