Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
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 dictionarydata "cloudflare_getflagshipapp" "name" {
# arguments
}The following arguments are supported:
- account_
id string - Cloudflare account ID.
- app_
id string - App identifier.
- account_
id str - Cloudflare account ID.
- app_
id str - App identifier.
getFlagshipApp Result
The following output properties are available:
- 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-gatewayfor 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-gatewayfor gateway-authenticated changes.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi