Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getImage
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleImage = cloudflare.getImage({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
imageId: "image_id",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_image = cloudflare.get_image(account_id="023e105f4ecef8ad9ca31a8372d0c353",
image_id="image_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.LookupImage(ctx, &cloudflare.LookupImageArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
ImageId: "image_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 exampleImage = Cloudflare.GetImage.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
ImageId = "image_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.GetImageArgs;
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 exampleImage = CloudflareFunctions.getImage(GetImageArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.imageId("image_id")
.build());
}
}
variables:
exampleImage:
fn::invoke:
function: cloudflare:getImage
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
imageId: image_id
Using getImage
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 getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>
function getImageOutput(args: GetImageOutputArgs, opts?: InvokeOptions): Output<GetImageResult>
def get_image(account_id: Optional[str] = None,
image_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImageResult
def get_image_output(account_id: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImageResult]
func LookupImage(ctx *Context, args *LookupImageArgs, opts ...InvokeOption) (*LookupImageResult, error)
func LookupImageOutput(ctx *Context, args *LookupImageOutputArgs, opts ...InvokeOption) LookupImageResultOutput
> Note: This function is named LookupImage
in the Go SDK.
public static class GetImage
{
public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
public static Output<GetImageResult> Invoke(GetImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
public static Output<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getImage:getImage
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - Account identifier tag.
- image_
id str - Image unique identifier.
getImage Result
The following output properties are available:
- Account
Id string - Account identifier tag.
- Filename string
- Image file name.
- Id string
- Image unique identifier.
- Image
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.
- Require
Signed boolUrls - 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.
- Account
Id string - Account identifier tag.
- Filename string
- Image file name.
- Id string
- Image unique identifier.
- Image
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.
- Require
Signed boolUrls - 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.
- account
Id String - Account identifier tag.
- filename String
- Image file name.
- id String
- Image unique identifier.
- image
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.
- require
Signed BooleanUrls - 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.
- account
Id string - Account identifier tag.
- filename string
- Image file name.
- id string
- Image unique identifier.
- image
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.
- require
Signed booleanUrls - 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.
- account_
id str - Account identifier tag.
- filename str
- Image file name.
- id str
- Image unique identifier.
- image_
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_ boolurls - 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.
- account
Id String - Account identifier tag.
- filename String
- Image file name.
- id String
- Image unique identifier.
- image
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.
- require
Signed BooleanUrls - 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.