1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getFlagshipApps
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 exampleFlagshipApps = cloudflare.getFlagshipApps({
        accountId: "account_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_flagship_apps = cloudflare.get_flagship_apps(account_id="account_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.GetFlagshipApps(ctx, &cloudflare.LookupFlagshipAppsArgs{
    			AccountId: "account_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 exampleFlagshipApps = Cloudflare.GetFlagshipApps.Invoke(new()
        {
            AccountId = "account_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.GetFlagshipAppsArgs;
    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 exampleFlagshipApps = CloudflareFunctions.getFlagshipApps(GetFlagshipAppsArgs.builder()
                .accountId("account_id")
                .build());
    
        }
    }
    
    variables:
      exampleFlagshipApps:
        fn::invoke:
          function: cloudflare:getFlagshipApps
          arguments:
            accountId: account_id
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getflagshipapps" "exampleFlagshipApps" {
      account_id = "account_id"
    }
    

    Using getFlagshipApps

    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 getFlagshipApps(args: GetFlagshipAppsArgs, opts?: InvokeOptions): Promise<GetFlagshipAppsResult>
    function getFlagshipAppsOutput(args: GetFlagshipAppsOutputArgs, opts?: InvokeOptions): Output<GetFlagshipAppsResult>
    def get_flagship_apps(account_id: Optional[str] = None,
                          max_items: Optional[int] = None,
                          opts: Optional[InvokeOptions] = None) -> GetFlagshipAppsResult
    def get_flagship_apps_output(account_id: pulumi.Input[Optional[str]] = None,
                          max_items: pulumi.Input[Optional[int]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetFlagshipAppsResult]
    func LookupFlagshipApps(ctx *Context, args *LookupFlagshipAppsArgs, opts ...InvokeOption) (*LookupFlagshipAppsResult, error)
    func LookupFlagshipAppsOutput(ctx *Context, args *LookupFlagshipAppsOutputArgs, opts ...InvokeOption) LookupFlagshipAppsResultOutput

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

    public static class GetFlagshipApps 
    {
        public static Task<GetFlagshipAppsResult> InvokeAsync(GetFlagshipAppsArgs args, InvokeOptions? opts = null)
        public static Output<GetFlagshipAppsResult> Invoke(GetFlagshipAppsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFlagshipAppsResult> getFlagshipApps(GetFlagshipAppsArgs args, InvokeOptions options)
    public static Output<GetFlagshipAppsResult> getFlagshipApps(GetFlagshipAppsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getFlagshipApps:getFlagshipApps
      arguments:
        # arguments dictionary
    data "cloudflare_get_flagship_apps" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Cloudflare account ID.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Cloudflare account ID.
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Cloudflare account ID.
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Cloudflare account ID.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Cloudflare account ID.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Cloudflare account ID.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Cloudflare account ID.
    maxItems Number
    Max items to fetch, default: 1000

    getFlagshipApps Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetFlagshipAppsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Cloudflare account ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetFlagshipAppsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Cloudflare account ID.
    id string
    The provider-assigned unique ID for this managed resource.
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Cloudflare account ID.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetFlagshipAppsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Cloudflare account ID.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetFlagshipAppsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Cloudflare account ID.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetFlagshipAppsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Cloudflare account ID.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetFlagshipAppsResult

    CreatedAt string
    Id string
    Name string
    UpdatedAt string
    UpdatedBy string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    CreatedAt string
    Id string
    Name string
    UpdatedAt string
    UpdatedBy string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    created_at string
    id string
    name string
    updated_at string
    updated_by string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    createdAt String
    id String
    name String
    updatedAt String
    updatedBy String
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    createdAt string
    id string
    name string
    updatedAt string
    updatedBy string
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    created_at str
    id str
    name str
    updated_at str
    updated_by str
    Email of the actor who last modified the app, or edge-gateway for gateway-authenticated changes.
    createdAt String
    id String
    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