1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getFlagshipApp
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Accepted Permissions

    • Flagship Read

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleFlagshipApp = cloudflare.getFlagshipApp({
        accountId: "account_id",
        appId: "app_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_flagship_app = cloudflare.get_flagship_app(account_id="account_id",
        app_id="app_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetFlagshipApp(ctx, &cloudflare.LookupFlagshipAppArgs{
    			AccountId: "account_id",
    			AppId:     "app_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleFlagshipApp = Cloudflare.GetFlagshipApp.Invoke(new()
        {
            AccountId = "account_id",
            AppId = "app_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetFlagshipAppArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleFlagshipApp = CloudflareFunctions.getFlagshipApp(GetFlagshipAppArgs.builder()
                .accountId("account_id")
                .appId("app_id")
                .build());
    
        }
    }
    
    variables:
      exampleFlagshipApp:
        fn::invoke:
          function: cloudflare:getFlagshipApp
          arguments:
            accountId: account_id
            appId: app_id
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getflagshipapp" "exampleFlagshipApp" {
      account_id = "account_id"
      app_id     = "app_id"
    }
    

    Using getFlagshipApp

    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 getFlagshipApp(args: GetFlagshipAppArgs, opts?: InvokeOptions): Promise<GetFlagshipAppResult>
    function getFlagshipAppOutput(args: GetFlagshipAppOutputArgs, opts?: InvokeOptions): Output<GetFlagshipAppResult>
    def get_flagship_app(account_id: Optional[str] = None,
                         app_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetFlagshipAppResult
    def get_flagship_app_output(account_id: pulumi.Input[Optional[str]] = None,
                         app_id: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetFlagshipAppResult]
    func LookupFlagshipApp(ctx *Context, args *LookupFlagshipAppArgs, opts ...InvokeOption) (*LookupFlagshipAppResult, error)
    func LookupFlagshipAppOutput(ctx *Context, args *LookupFlagshipAppOutputArgs, opts ...InvokeOption) LookupFlagshipAppResultOutput

    > Note: This function is named LookupFlagshipApp in the Go SDK.

    public static class GetFlagshipApp 
    {
        public static Task<GetFlagshipAppResult> InvokeAsync(GetFlagshipAppArgs args, InvokeOptions? opts = null)
        public static Output<GetFlagshipAppResult> Invoke(GetFlagshipAppInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFlagshipAppResult> getFlagshipApp(GetFlagshipAppArgs args, InvokeOptions options)
    public static Output<GetFlagshipAppResult> getFlagshipApp(GetFlagshipAppArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getFlagshipApp:getFlagshipApp
      arguments:
        # arguments dictionary
    data "cloudflare_getflagshipapp" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Cloudflare account ID.
    AppId string
    App identifier.
    AccountId string
    Cloudflare account ID.
    AppId string
    App identifier.
    account_id string
    Cloudflare account ID.
    app_id string
    App identifier.
    accountId String
    Cloudflare account ID.
    appId String
    App identifier.
    accountId string
    Cloudflare account ID.
    appId string
    App identifier.
    account_id str
    Cloudflare account ID.
    app_id str
    App identifier.
    accountId String
    Cloudflare account ID.
    appId String
    App identifier.

    getFlagshipApp Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID.
    AppId string
    App identifier.
    CreatedAt string
    Id string
    App identifier.
    Name string
    UpdatedAt string
    UpdatedBy string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    AccountId string
    Cloudflare account ID.
    AppId string
    App identifier.
    CreatedAt string
    Id string
    App identifier.
    Name string
    UpdatedAt string
    UpdatedBy string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    account_id string
    Cloudflare account ID.
    app_id string
    App identifier.
    created_at string
    id string
    App identifier.
    name string
    updated_at string
    updated_by string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    accountId String
    Cloudflare account ID.
    appId String
    App identifier.
    createdAt String
    id String
    App identifier.
    name String
    updatedAt String
    updatedBy String
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    accountId string
    Cloudflare account ID.
    appId string
    App identifier.
    createdAt string
    id string
    App identifier.
    name string
    updatedAt string
    updatedBy string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    account_id str
    Cloudflare account ID.
    app_id str
    App identifier.
    created_at str
    id str
    App identifier.
    name str
    updated_at str
    updated_by str
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    accountId String
    Cloudflare account ID.
    appId String
    App identifier.
    createdAt String
    id String
    App identifier.
    name String
    updatedAt String
    updatedBy String
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial