Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleImageVariant = cloudflare.getImageVariant({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
variantId: "hero",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_image_variant = cloudflare.get_image_variant(account_id="023e105f4ecef8ad9ca31a8372d0c353",
variant_id="hero")
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.LookupImageVariant(ctx, &cloudflare.LookupImageVariantArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
VariantId: "hero",
}, 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 exampleImageVariant = Cloudflare.GetImageVariant.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
VariantId = "hero",
});
});
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.GetImageVariantArgs;
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 exampleImageVariant = CloudflareFunctions.getImageVariant(GetImageVariantArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.variantId("hero")
.build());
}
}
variables:
exampleImageVariant:
fn::invoke:
function: cloudflare:getImageVariant
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
variantId: hero
Using getImageVariant
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 getImageVariant(args: GetImageVariantArgs, opts?: InvokeOptions): Promise<GetImageVariantResult>
function getImageVariantOutput(args: GetImageVariantOutputArgs, opts?: InvokeOptions): Output<GetImageVariantResult>def get_image_variant(account_id: Optional[str] = None,
variant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImageVariantResult
def get_image_variant_output(account_id: Optional[pulumi.Input[str]] = None,
variant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImageVariantResult]func LookupImageVariant(ctx *Context, args *LookupImageVariantArgs, opts ...InvokeOption) (*LookupImageVariantResult, error)
func LookupImageVariantOutput(ctx *Context, args *LookupImageVariantOutputArgs, opts ...InvokeOption) LookupImageVariantResultOutput> Note: This function is named LookupImageVariant in the Go SDK.
public static class GetImageVariant
{
public static Task<GetImageVariantResult> InvokeAsync(GetImageVariantArgs args, InvokeOptions? opts = null)
public static Output<GetImageVariantResult> Invoke(GetImageVariantInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetImageVariantResult> getImageVariant(GetImageVariantArgs args, InvokeOptions options)
public static Output<GetImageVariantResult> getImageVariant(GetImageVariantArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getImageVariant:getImageVariant
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - Account identifier tag.
- variant_
id str
getImageVariant Result
The following output properties are available:
- Account
Id string - Account identifier tag.
- Id string
- The ID of this resource.
- Variant
Get
Image Variant Variant - Variant
Id string
- Account
Id string - Account identifier tag.
- Id string
- The ID of this resource.
- Variant
Get
Image Variant Variant - Variant
Id string
- account
Id String - Account identifier tag.
- id String
- The ID of this resource.
- variant
Get
Image Variant Variant - variant
Id String
- account
Id string - Account identifier tag.
- id string
- The ID of this resource.
- variant
Get
Image Variant Variant - variant
Id string
- account_
id str - Account identifier tag.
- id str
- The ID of this resource.
- variant
Get
Image Variant Variant - variant_
id str
- account
Id String - Account identifier tag.
- id String
- The ID of this resource.
- variant Property Map
- variant
Id String
Supporting Types
GetImageVariantVariant
- Id string
- Never
Require boolSigned Urls - Indicates whether the variant can access an image without a signature, regardless of image access control.
- Options
Get
Image Variant Variant Options - Allows you to define image resizing sizes for different use cases.
- Id string
- Never
Require boolSigned Urls - Indicates whether the variant can access an image without a signature, regardless of image access control.
- Options
Get
Image Variant Variant Options - Allows you to define image resizing sizes for different use cases.
- id String
- never
Require BooleanSigned Urls - Indicates whether the variant can access an image without a signature, regardless of image access control.
- options
Get
Image Variant Variant Options - Allows you to define image resizing sizes for different use cases.
- id string
- never
Require booleanSigned Urls - Indicates whether the variant can access an image without a signature, regardless of image access control.
- options
Get
Image Variant Variant Options - Allows you to define image resizing sizes for different use cases.
- id str
- never_
require_ boolsigned_ urls - Indicates whether the variant can access an image without a signature, regardless of image access control.
- options
Get
Image Variant Variant Options - Allows you to define image resizing sizes for different use cases.
- id String
- never
Require BooleanSigned Urls - Indicates whether the variant can access an image without a signature, regardless of image access control.
- options Property Map
- Allows you to define image resizing sizes for different use cases.
GetImageVariantVariantOptions
- Fit string
- The fit property describes how the width and height dimensions should be interpreted. Available values: "scale-down", "contain", "cover", "crop", "pad".
- Height double
- Maximum height in image pixels.
- Metadata string
- What EXIF data should be preserved in the output image. Available values: "keep", "copyright", "none".
- Width double
- Maximum width in image pixels.
- Fit string
- The fit property describes how the width and height dimensions should be interpreted. Available values: "scale-down", "contain", "cover", "crop", "pad".
- Height float64
- Maximum height in image pixels.
- Metadata string
- What EXIF data should be preserved in the output image. Available values: "keep", "copyright", "none".
- Width float64
- Maximum width in image pixels.
- fit String
- The fit property describes how the width and height dimensions should be interpreted. Available values: "scale-down", "contain", "cover", "crop", "pad".
- height Double
- Maximum height in image pixels.
- metadata String
- What EXIF data should be preserved in the output image. Available values: "keep", "copyright", "none".
- width Double
- Maximum width in image pixels.
- fit string
- The fit property describes how the width and height dimensions should be interpreted. Available values: "scale-down", "contain", "cover", "crop", "pad".
- height number
- Maximum height in image pixels.
- metadata string
- What EXIF data should be preserved in the output image. Available values: "keep", "copyright", "none".
- width number
- Maximum width in image pixels.
- fit str
- The fit property describes how the width and height dimensions should be interpreted. Available values: "scale-down", "contain", "cover", "crop", "pad".
- height float
- Maximum height in image pixels.
- metadata str
- What EXIF data should be preserved in the output image. Available values: "keep", "copyright", "none".
- width float
- Maximum width in image pixels.
- fit String
- The fit property describes how the width and height dimensions should be interpreted. Available values: "scale-down", "contain", "cover", "crop", "pad".
- height Number
- Maximum height in image pixels.
- metadata String
- What EXIF data should be preserved in the output image. Available values: "keep", "copyright", "none".
- width Number
- Maximum width in image pixels.
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.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
