1. Packages
  2. Scaleway
  3. API Docs
  4. getRegistryImage
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.getRegistryImage

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Gets information about a registry image.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myImage = scaleway.getRegistryImage({
        imageId: "11111111-1111-1111-1111-111111111111",
        namespaceId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_image = scaleway.get_registry_image(image_id="11111111-1111-1111-1111-111111111111",
        namespace_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.GetRegistryImage(ctx, &scaleway.GetRegistryImageArgs{
    			ImageId:     pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    			NamespaceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myImage = Scaleway.GetRegistryImage.Invoke(new()
        {
            ImageId = "11111111-1111-1111-1111-111111111111",
            NamespaceId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetRegistryImageArgs;
    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 myImage = ScalewayFunctions.getRegistryImage(GetRegistryImageArgs.builder()
                .imageId("11111111-1111-1111-1111-111111111111")
                .namespaceId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      myImage:
        fn::invoke:
          Function: scaleway:getRegistryImage
          Arguments:
            imageId: 11111111-1111-1111-1111-111111111111
            namespaceId: 11111111-1111-1111-1111-111111111111
    

    Using getRegistryImage

    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 getRegistryImage(args: GetRegistryImageArgs, opts?: InvokeOptions): Promise<GetRegistryImageResult>
    function getRegistryImageOutput(args: GetRegistryImageOutputArgs, opts?: InvokeOptions): Output<GetRegistryImageResult>
    def get_registry_image(image_id: Optional[str] = None,
                           name: Optional[str] = None,
                           namespace_id: Optional[str] = None,
                           project_id: Optional[str] = None,
                           region: Optional[str] = None,
                           tags: Optional[Sequence[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRegistryImageResult
    def get_registry_image_output(image_id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           namespace_id: Optional[pulumi.Input[str]] = None,
                           project_id: Optional[pulumi.Input[str]] = None,
                           region: Optional[pulumi.Input[str]] = None,
                           tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRegistryImageResult]
    func GetRegistryImage(ctx *Context, args *GetRegistryImageArgs, opts ...InvokeOption) (*GetRegistryImageResult, error)
    func GetRegistryImageOutput(ctx *Context, args *GetRegistryImageOutputArgs, opts ...InvokeOption) GetRegistryImageResultOutput

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

    public static class GetRegistryImage 
    {
        public static Task<GetRegistryImageResult> InvokeAsync(GetRegistryImageArgs args, InvokeOptions? opts = null)
        public static Output<GetRegistryImageResult> Invoke(GetRegistryImageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistryImageResult> getRegistryImage(GetRegistryImageArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getRegistryImage:getRegistryImage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ImageId string
    The image ID. Only one of name and image_id should be specified.
    Name string
    The image name. Only one of name and image_id should be specified.
    NamespaceId string
    The namespace ID in which the image is.
    ProjectId string
    project_id) The ID of the project the image is associated with.
    Region string
    region) The region in which the image exists.
    Tags List<string>
    The tags associated with the registry image
    ImageId string
    The image ID. Only one of name and image_id should be specified.
    Name string
    The image name. Only one of name and image_id should be specified.
    NamespaceId string
    The namespace ID in which the image is.
    ProjectId string
    project_id) The ID of the project the image is associated with.
    Region string
    region) The region in which the image exists.
    Tags []string
    The tags associated with the registry image
    imageId String
    The image ID. Only one of name and image_id should be specified.
    name String
    The image name. Only one of name and image_id should be specified.
    namespaceId String
    The namespace ID in which the image is.
    projectId String
    project_id) The ID of the project the image is associated with.
    region String
    region) The region in which the image exists.
    tags List<String>
    The tags associated with the registry image
    imageId string
    The image ID. Only one of name and image_id should be specified.
    name string
    The image name. Only one of name and image_id should be specified.
    namespaceId string
    The namespace ID in which the image is.
    projectId string
    project_id) The ID of the project the image is associated with.
    region string
    region) The region in which the image exists.
    tags string[]
    The tags associated with the registry image
    image_id str
    The image ID. Only one of name and image_id should be specified.
    name str
    The image name. Only one of name and image_id should be specified.
    namespace_id str
    The namespace ID in which the image is.
    project_id str
    project_id) The ID of the project the image is associated with.
    region str
    region) The region in which the image exists.
    tags Sequence[str]
    The tags associated with the registry image
    imageId String
    The image ID. Only one of name and image_id should be specified.
    name String
    The image name. Only one of name and image_id should be specified.
    namespaceId String
    The namespace ID in which the image is.
    projectId String
    project_id) The ID of the project the image is associated with.
    region String
    region) The region in which the image exists.
    tags List<String>
    The tags associated with the registry image

    getRegistryImage Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NamespaceId string
    OrganizationId string
    The organization ID the image is associated with.
    ProjectId string
    Region string
    Size int
    The size of the registry image.
    Tags List<string>
    The tags associated with the registry image
    UpdatedAt string
    The date the image of the last update
    Visibility string
    The privacy policy of the registry image.
    ImageId string
    Name string
    Id string
    The provider-assigned unique ID for this managed resource.
    NamespaceId string
    OrganizationId string
    The organization ID the image is associated with.
    ProjectId string
    Region string
    Size int
    The size of the registry image.
    Tags []string
    The tags associated with the registry image
    UpdatedAt string
    The date the image of the last update
    Visibility string
    The privacy policy of the registry image.
    ImageId string
    Name string
    id String
    The provider-assigned unique ID for this managed resource.
    namespaceId String
    organizationId String
    The organization ID the image is associated with.
    projectId String
    region String
    size Integer
    The size of the registry image.
    tags List<String>
    The tags associated with the registry image
    updatedAt String
    The date the image of the last update
    visibility String
    The privacy policy of the registry image.
    imageId String
    name String
    id string
    The provider-assigned unique ID for this managed resource.
    namespaceId string
    organizationId string
    The organization ID the image is associated with.
    projectId string
    region string
    size number
    The size of the registry image.
    tags string[]
    The tags associated with the registry image
    updatedAt string
    The date the image of the last update
    visibility string
    The privacy policy of the registry image.
    imageId string
    name string
    id str
    The provider-assigned unique ID for this managed resource.
    namespace_id str
    organization_id str
    The organization ID the image is associated with.
    project_id str
    region str
    size int
    The size of the registry image.
    tags Sequence[str]
    The tags associated with the registry image
    updated_at str
    The date the image of the last update
    visibility str
    The privacy policy of the registry image.
    image_id str
    name str
    id String
    The provider-assigned unique ID for this managed resource.
    namespaceId String
    organizationId String
    The organization ID the image is associated with.
    projectId String
    region String
    size Number
    The size of the registry image.
    tags List<String>
    The tags associated with the registry image
    updatedAt String
    The date the image of the last update
    visibility String
    The privacy policy of the registry image.
    imageId String
    name String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse