Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getInstanceImage
Explore with Pulumi AI
Gets information about an instance image.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myImage = scaleway.getInstanceImage({
imageId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
my_image = scaleway.get_instance_image(image_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.LookupInstanceImage(ctx, &scaleway.LookupInstanceImageArgs{
ImageId: 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.GetInstanceImage.Invoke(new()
{
ImageId = "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.GetInstanceImageArgs;
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.getInstanceImage(GetInstanceImageArgs.builder()
.imageId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
myImage:
fn::invoke:
Function: scaleway:getInstanceImage
Arguments:
imageId: 11111111-1111-1111-1111-111111111111
Using getInstanceImage
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 getInstanceImage(args: GetInstanceImageArgs, opts?: InvokeOptions): Promise<GetInstanceImageResult>
function getInstanceImageOutput(args: GetInstanceImageOutputArgs, opts?: InvokeOptions): Output<GetInstanceImageResult>
def get_instance_image(architecture: Optional[str] = None,
image_id: Optional[str] = None,
latest: Optional[bool] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceImageResult
def get_instance_image_output(architecture: Optional[pulumi.Input[str]] = None,
image_id: Optional[pulumi.Input[str]] = None,
latest: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceImageResult]
func LookupInstanceImage(ctx *Context, args *LookupInstanceImageArgs, opts ...InvokeOption) (*LookupInstanceImageResult, error)
func LookupInstanceImageOutput(ctx *Context, args *LookupInstanceImageOutputArgs, opts ...InvokeOption) LookupInstanceImageResultOutput
> Note: This function is named LookupInstanceImage
in the Go SDK.
public static class GetInstanceImage
{
public static Task<GetInstanceImageResult> InvokeAsync(GetInstanceImageArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceImageResult> Invoke(GetInstanceImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceImageResult> getInstanceImage(GetInstanceImageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getInstanceImage:getInstanceImage
arguments:
# arguments dictionary
The following arguments are supported:
- Architecture string
- The architecture the image is compatible with. Possible values are:
x86_64
orarm
. - Image
Id string - The image id. Only one of
name
andimage_id
should be specified. - Latest bool
- Use the latest image ID.
- Name string
- The image name. Only one of
name
andimage_id
should be specified. - Project
Id string - The ID of the project the image is associated with.
- Zone string
zone
) The zone in which the image exists.
- Architecture string
- The architecture the image is compatible with. Possible values are:
x86_64
orarm
. - Image
Id string - The image id. Only one of
name
andimage_id
should be specified. - Latest bool
- Use the latest image ID.
- Name string
- The image name. Only one of
name
andimage_id
should be specified. - Project
Id string - The ID of the project the image is associated with.
- Zone string
zone
) The zone in which the image exists.
- architecture String
- The architecture the image is compatible with. Possible values are:
x86_64
orarm
. - image
Id String - The image id. Only one of
name
andimage_id
should be specified. - latest Boolean
- Use the latest image ID.
- name String
- The image name. Only one of
name
andimage_id
should be specified. - project
Id String - The ID of the project the image is associated with.
- zone String
zone
) The zone in which the image exists.
- architecture string
- The architecture the image is compatible with. Possible values are:
x86_64
orarm
. - image
Id string - The image id. Only one of
name
andimage_id
should be specified. - latest boolean
- Use the latest image ID.
- name string
- The image name. Only one of
name
andimage_id
should be specified. - project
Id string - The ID of the project the image is associated with.
- zone string
zone
) The zone in which the image exists.
- architecture str
- The architecture the image is compatible with. Possible values are:
x86_64
orarm
. - image_
id str - The image id. Only one of
name
andimage_id
should be specified. - latest bool
- Use the latest image ID.
- name str
- The image name. Only one of
name
andimage_id
should be specified. - project_
id str - The ID of the project the image is associated with.
- zone str
zone
) The zone in which the image exists.
- architecture String
- The architecture the image is compatible with. Possible values are:
x86_64
orarm
. - image
Id String - The image id. Only one of
name
andimage_id
should be specified. - latest Boolean
- Use the latest image ID.
- name String
- The image name. Only one of
name
andimage_id
should be specified. - project
Id String - The ID of the project the image is associated with.
- zone String
zone
) The zone in which the image exists.
getInstanceImage Result
The following output properties are available:
- Additional
Volume List<string>Ids - IDs of the additional volumes in this image.
- Creation
Date string - Date of the image creation.
- Default
Bootscript stringId - ID of the default bootscript for this image.
- From
Server stringId - ID of the server the image if based from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modification
Date string - Date of image latest update.
- Organization
Id string - The ID of the organization the image is associated with.
- Project
Id string - The ID of the project the image is associated with.
- Public bool
- Set to
true
if the image is public. - Root
Volume stringId - ID of the root volume in this image.
- State string
- State of the image. Possible values are:
available
,creating
orerror
. - Zone string
- Architecture string
- Image
Id string - Latest bool
- Name string
- Additional
Volume []stringIds - IDs of the additional volumes in this image.
- Creation
Date string - Date of the image creation.
- Default
Bootscript stringId - ID of the default bootscript for this image.
- From
Server stringId - ID of the server the image if based from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modification
Date string - Date of image latest update.
- Organization
Id string - The ID of the organization the image is associated with.
- Project
Id string - The ID of the project the image is associated with.
- Public bool
- Set to
true
if the image is public. - Root
Volume stringId - ID of the root volume in this image.
- State string
- State of the image. Possible values are:
available
,creating
orerror
. - Zone string
- Architecture string
- Image
Id string - Latest bool
- Name string
- additional
Volume List<String>Ids - IDs of the additional volumes in this image.
- creation
Date String - Date of the image creation.
- default
Bootscript StringId - ID of the default bootscript for this image.
- from
Server StringId - ID of the server the image if based from.
- id String
- The provider-assigned unique ID for this managed resource.
- modification
Date String - Date of image latest update.
- organization
Id String - The ID of the organization the image is associated with.
- project
Id String - The ID of the project the image is associated with.
- public_ Boolean
- Set to
true
if the image is public. - root
Volume StringId - ID of the root volume in this image.
- state String
- State of the image. Possible values are:
available
,creating
orerror
. - zone String
- architecture String
- image
Id String - latest Boolean
- name String
- additional
Volume string[]Ids - IDs of the additional volumes in this image.
- creation
Date string - Date of the image creation.
- default
Bootscript stringId - ID of the default bootscript for this image.
- from
Server stringId - ID of the server the image if based from.
- id string
- The provider-assigned unique ID for this managed resource.
- modification
Date string - Date of image latest update.
- organization
Id string - The ID of the organization the image is associated with.
- project
Id string - The ID of the project the image is associated with.
- public boolean
- Set to
true
if the image is public. - root
Volume stringId - ID of the root volume in this image.
- state string
- State of the image. Possible values are:
available
,creating
orerror
. - zone string
- architecture string
- image
Id string - latest boolean
- name string
- additional_
volume_ Sequence[str]ids - IDs of the additional volumes in this image.
- creation_
date str - Date of the image creation.
- default_
bootscript_ strid - ID of the default bootscript for this image.
- from_
server_ strid - ID of the server the image if based from.
- id str
- The provider-assigned unique ID for this managed resource.
- modification_
date str - Date of image latest update.
- organization_
id str - The ID of the organization the image is associated with.
- project_
id str - The ID of the project the image is associated with.
- public bool
- Set to
true
if the image is public. - root_
volume_ strid - ID of the root volume in this image.
- state str
- State of the image. Possible values are:
available
,creating
orerror
. - zone str
- architecture str
- image_
id str - latest bool
- name str
- additional
Volume List<String>Ids - IDs of the additional volumes in this image.
- creation
Date String - Date of the image creation.
- default
Bootscript StringId - ID of the default bootscript for this image.
- from
Server StringId - ID of the server the image if based from.
- id String
- The provider-assigned unique ID for this managed resource.
- modification
Date String - Date of image latest update.
- organization
Id String - The ID of the organization the image is associated with.
- project
Id String - The ID of the project the image is associated with.
- public Boolean
- Set to
true
if the image is public. - root
Volume StringId - ID of the root volume in this image.
- state String
- State of the image. Possible values are:
available
,creating
orerror
. - zone String
- architecture String
- image
Id String - latest Boolean
- name String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.