1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getImages
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getImages

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleImages = cloudflare.getImages({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_images = cloudflare.get_images(account_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.LookupImages(ctx, &cloudflare.LookupImagesArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleImages = Cloudflare.GetImages.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetImagesArgs;
    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 exampleImages = CloudflareFunctions.getImages(GetImagesArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleImages:
        fn::invoke:
          function: cloudflare:getImages
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getImages

    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 getImages(args: GetImagesArgs, opts?: InvokeOptions): Promise<GetImagesResult>
    function getImagesOutput(args: GetImagesOutputArgs, opts?: InvokeOptions): Output<GetImagesResult>
    def get_images(account_id: Optional[str] = None,
                   max_items: Optional[int] = None,
                   opts: Optional[InvokeOptions] = None) -> GetImagesResult
    def get_images_output(account_id: Optional[pulumi.Input[str]] = None,
                   max_items: Optional[pulumi.Input[int]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetImagesResult]
    func LookupImages(ctx *Context, args *LookupImagesArgs, opts ...InvokeOption) (*LookupImagesResult, error)
    func LookupImagesOutput(ctx *Context, args *LookupImagesOutputArgs, opts ...InvokeOption) LookupImagesResultOutput

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

    public static class GetImages 
    {
        public static Task<GetImagesResult> InvokeAsync(GetImagesArgs args, InvokeOptions? opts = null)
        public static Output<GetImagesResult> Invoke(GetImagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
    public static Output<GetImagesResult> getImages(GetImagesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getImages:getImages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier tag.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Account identifier tag.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Account identifier tag.
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Account identifier tag.
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    maxItems Number
    Max items to fetch, default: 1000

    getImages Result

    The following output properties are available:

    AccountId string
    Account identifier tag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetImagesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Account identifier tag.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetImagesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetImagesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Account identifier tag.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetImagesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Account identifier tag.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetImagesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Account identifier tag.
    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

    GetImagesResult

    GetImagesResultImage

    Filename string
    Image file name.
    Id string
    Image unique identifier.
    Meta string
    User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes.
    RequireSignedUrls bool
    Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
    Uploaded string
    When the media item was uploaded.
    Variants List<string>
    Object specifying available variants for an image.
    Filename string
    Image file name.
    Id string
    Image unique identifier.
    Meta string
    User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes.
    RequireSignedUrls bool
    Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
    Uploaded string
    When the media item was uploaded.
    Variants []string
    Object specifying available variants for an image.
    filename String
    Image file name.
    id String
    Image unique identifier.
    meta String
    User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes.
    requireSignedUrls Boolean
    Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
    uploaded String
    When the media item was uploaded.
    variants List<String>
    Object specifying available variants for an image.
    filename string
    Image file name.
    id string
    Image unique identifier.
    meta string
    User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes.
    requireSignedUrls boolean
    Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
    uploaded string
    When the media item was uploaded.
    variants string[]
    Object specifying available variants for an image.
    filename str
    Image file name.
    id str
    Image unique identifier.
    meta str
    User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes.
    require_signed_urls bool
    Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
    uploaded str
    When the media item was uploaded.
    variants Sequence[str]
    Object specifying available variants for an image.
    filename String
    Image file name.
    id String
    Image unique identifier.
    meta String
    User modifiable key-value store. Can be used for keeping references to another system of record for managing images. Metadata must not exceed 1024 bytes.
    requireSignedUrls Boolean
    Indicates whether the image can be a accessed only using it's UID. If set to true, a signed token needs to be generated with a signing key to view the image.
    uploaded String
    When the media item was uploaded.
    variants List<String>
    Object specifying available variants for an image.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi