Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getRegistryImage
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Image
Id string - The image ID.
Only one of 
nameandimage_idshould be specified. - Name string
 - The image name.
Only one of 
nameandimage_idshould be specified. - Namespace
Id string - The namespace ID in which the image is.
 - Project
Id string project_id) The ID of the project the image is associated with.- Region string
 region) The region in which the image exists.- List<string>
 - The tags associated with the registry image
 
- Image
Id string - The image ID.
Only one of 
nameandimage_idshould be specified. - Name string
 - The image name.
Only one of 
nameandimage_idshould be specified. - Namespace
Id string - The namespace ID in which the image is.
 - Project
Id string project_id) The ID of the project the image is associated with.- Region string
 region) The region in which the image exists.- []string
 - The tags associated with the registry image
 
- image
Id String - The image ID.
Only one of 
nameandimage_idshould be specified. - name String
 - The image name.
Only one of 
nameandimage_idshould be specified. - namespace
Id String - The namespace ID in which the image is.
 - project
Id String project_id) The ID of the project the image is associated with.- region String
 region) The region in which the image exists.- List<String>
 - The tags associated with the registry image
 
- image
Id string - The image ID.
Only one of 
nameandimage_idshould be specified. - name string
 - The image name.
Only one of 
nameandimage_idshould be specified. - namespace
Id string - The namespace ID in which the image is.
 - project
Id string project_id) The ID of the project the image is associated with.- region string
 region) The region in which the image exists.- string[]
 - The tags associated with the registry image
 
- image_
id str - The image ID.
Only one of 
nameandimage_idshould be specified. - name str
 - The image name.
Only one of 
nameandimage_idshould 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.- Sequence[str]
 - The tags associated with the registry image
 
- image
Id String - The image ID.
Only one of 
nameandimage_idshould be specified. - name String
 - The image name.
Only one of 
nameandimage_idshould be specified. - namespace
Id String - The namespace ID in which the image is.
 - project
Id String project_id) The ID of the project the image is associated with.- region String
 region) The region in which the image exists.- 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.
 - Namespace
Id string - Organization
Id string - The organization ID the image is associated with.
 - Project
Id string - Region string
 - Size int
 - The size of the registry image.
 - List<string>
 - The tags associated with the registry image
 - Updated
At string - The date the image of the last update
 - Visibility string
 - The privacy policy of the registry image.
 - Image
Id string - Name string
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Namespace
Id string - Organization
Id string - The organization ID the image is associated with.
 - Project
Id string - Region string
 - Size int
 - The size of the registry image.
 - []string
 - The tags associated with the registry image
 - Updated
At string - The date the image of the last update
 - Visibility string
 - The privacy policy of the registry image.
 - Image
Id string - Name string
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - namespace
Id String - organization
Id String - The organization ID the image is associated with.
 - project
Id String - region String
 - size Integer
 - The size of the registry image.
 - List<String>
 - The tags associated with the registry image
 - updated
At String - The date the image of the last update
 - visibility String
 - The privacy policy of the registry image.
 - image
Id String - name String
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - namespace
Id string - organization
Id string - The organization ID the image is associated with.
 - project
Id string - region string
 - size number
 - The size of the registry image.
 - string[]
 - The tags associated with the registry image
 - updated
At string - The date the image of the last update
 - visibility string
 - The privacy policy of the registry image.
 - image
Id 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.
 - 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.
 - namespace
Id String - organization
Id String - The organization ID the image is associated with.
 - project
Id String - region String
 - size Number
 - The size of the registry image.
 - List<String>
 - The tags associated with the registry image
 - updated
At String - The date the image of the last update
 - visibility String
 - The privacy policy of the registry image.
 - image
Id String - name String
 
Package Details
- Repository
 - scaleway pulumiverse/pulumi-scaleway
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
scalewayTerraform Provider.