Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
Describes a Image
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const testImage = new nutanix.Image("test", {
name: "Ubuntu",
description: "Ubuntu",
sourceUri: "http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso",
});
const test = nutanix.getImageOutput({
imageId: testImage.id,
});
const testname = nutanix.getImageOutput({
imageName: testImage.name,
});
import pulumi
import pulumi_nutanix as nutanix
test_image = nutanix.Image("test",
name="Ubuntu",
description="Ubuntu",
source_uri="http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso")
test = nutanix.get_image_output(image_id=test_image.id)
testname = nutanix.get_image_output(image_name=test_image.name)
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testImage, err := nutanix.NewImage(ctx, "test", &nutanix.ImageArgs{
Name: pulumi.String("Ubuntu"),
Description: pulumi.String("Ubuntu"),
SourceUri: pulumi.String("http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso"),
})
if err != nil {
return err
}
_ = nutanix.LookupImageOutput(ctx, nutanix.GetImageOutputArgs{
ImageId: testImage.ID(),
}, nil)
_ = nutanix.LookupImageOutput(ctx, nutanix.GetImageOutputArgs{
ImageName: testImage.Name,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var testImage = new Nutanix.Image("test", new()
{
Name = "Ubuntu",
Description = "Ubuntu",
SourceUri = "http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso",
});
var test = Nutanix.GetImage.Invoke(new()
{
ImageId = testImage.Id,
});
var testname = Nutanix.GetImage.Invoke(new()
{
ImageName = testImage.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.Image;
import com.pulumi.nutanix.ImageArgs;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.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) {
var testImage = new Image("testImage", ImageArgs.builder()
.name("Ubuntu")
.description("Ubuntu")
.sourceUri("http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso")
.build());
final var test = NutanixFunctions.getImage(GetImageArgs.builder()
.imageId(testImage.id())
.build());
final var testname = NutanixFunctions.getImage(GetImageArgs.builder()
.imageName(testImage.name())
.build());
}
}
resources:
testImage:
type: nutanix:Image
name: test
properties:
name: Ubuntu
description: Ubuntu
sourceUri: http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso
variables:
test:
fn::invoke:
function: nutanix:getImage
arguments:
imageId: ${testImage.id}
testname:
fn::invoke:
function: nutanix:getImage
arguments:
imageName: ${testImage.name}
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(categories: Optional[Sequence[GetImageCategory]] = None,
image_id: Optional[str] = None,
image_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImageResult
def get_image_output(categories: Optional[pulumi.Input[Sequence[pulumi.Input[GetImageCategoryArgs]]]] = None,
image_id: Optional[pulumi.Input[str]] = None,
image_name: 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: nutanix:index/getImage:getImage
arguments:
# arguments dictionaryThe following arguments are supported:
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Image Category> - Categories for the image.
- Image
Id string - Represents image UUID
- Image
Name string - Represents image name
- Categories
[]Get
Image Category - Categories for the image.
- Image
Id string - Represents image UUID
- Image
Name string - Represents image name
- categories
List<Get
Image Category> - Categories for the image.
- image
Id String - Represents image UUID
- image
Name String - Represents image name
- categories
Get
Image Category[] - Categories for the image.
- image
Id string - Represents image UUID
- image
Name string - Represents image name
- categories
Sequence[Get
Image Category] - Categories for the image.
- image_
id str - Represents image UUID
- image_
name str - Represents image name
- categories List<Property Map>
- Categories for the image.
- image
Id String - Represents image UUID
- image
Name String - Represents image name
getImage Result
The following output properties are available:
- Api
Version string - Architecture string
- The supported CPU architecture for a disk image.
- Availability
Zone Dictionary<string, string>Reference - The reference to a availability_zone.
- Categories
List<Piers
Karsenbarg. Nutanix. Outputs. Get Image Category> - Categories for the image.
- Checksum Dictionary<string, string>
- Checksum of the image. The checksum is used for image validation if the image has a source specified. For images that do not have their source specified the checksum is generated by the image service.
- Cluster
Name string - Cluster
References List<PiersKarsenbarg. Nutanix. Outputs. Get Image Cluster Reference> - Cluster
Uuid string - Current
Cluster List<PiersReference Lists Karsenbarg. Nutanix. Outputs. Get Image Current Cluster Reference List> - Data
Source List<PiersReferences Karsenbarg. Nutanix. Outputs. Get Image Data Source Reference> - Reference to a data source.
- Description string
- A description for image.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Type string - The type of image.
- Metadata Dictionary<string, string>
- The image kind metadata.
- Name string
- the name.
- Owner
Reference Dictionary<string, string> - The reference to a user.
- Project
Reference Dictionary<string, string> - The reference to a project.
- Retrieval
Uri List<string>Lists - List of URIs where the raw image data can be accessed.
- Size
Bytes int - The size of the image in bytes.
- Source
Uri string - The source URI points at the location of the source image which is used to create/update image.
- State string
- The state of the image.
- Version Dictionary<string, string>
- The image version.
- Image
Id string - Image
Name string
- Api
Version string - Architecture string
- The supported CPU architecture for a disk image.
- Availability
Zone map[string]stringReference - The reference to a availability_zone.
- Categories
[]Get
Image Category - Categories for the image.
- Checksum map[string]string
- Checksum of the image. The checksum is used for image validation if the image has a source specified. For images that do not have their source specified the checksum is generated by the image service.
- Cluster
Name string - Cluster
References []GetImage Cluster Reference - Cluster
Uuid string - Current
Cluster []GetReference Lists Image Current Cluster Reference List - Data
Source []GetReferences Image Data Source Reference - Reference to a data source.
- Description string
- A description for image.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Type string - The type of image.
- Metadata map[string]string
- The image kind metadata.
- Name string
- the name.
- Owner
Reference map[string]string - The reference to a user.
- Project
Reference map[string]string - The reference to a project.
- Retrieval
Uri []stringLists - List of URIs where the raw image data can be accessed.
- Size
Bytes int - The size of the image in bytes.
- Source
Uri string - The source URI points at the location of the source image which is used to create/update image.
- State string
- The state of the image.
- Version map[string]string
- The image version.
- Image
Id string - Image
Name string
- api
Version String - architecture String
- The supported CPU architecture for a disk image.
- availability
Zone Map<String,String>Reference - The reference to a availability_zone.
- categories
List<Get
Image Category> - Categories for the image.
- checksum Map<String,String>
- Checksum of the image. The checksum is used for image validation if the image has a source specified. For images that do not have their source specified the checksum is generated by the image service.
- cluster
Name String - cluster
References List<GetImage Cluster Reference> - cluster
Uuid String - current
Cluster List<GetReference Lists Image Current Cluster Reference List> - data
Source List<GetReferences Image Data Source Reference> - Reference to a data source.
- description String
- A description for image.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Type String - The type of image.
- metadata Map<String,String>
- The image kind metadata.
- name String
- the name.
- owner
Reference Map<String,String> - The reference to a user.
- project
Reference Map<String,String> - The reference to a project.
- retrieval
Uri List<String>Lists - List of URIs where the raw image data can be accessed.
- size
Bytes Integer - The size of the image in bytes.
- source
Uri String - The source URI points at the location of the source image which is used to create/update image.
- state String
- The state of the image.
- version Map<String,String>
- The image version.
- image
Id String - image
Name String
- api
Version string - architecture string
- The supported CPU architecture for a disk image.
- availability
Zone {[key: string]: string}Reference - The reference to a availability_zone.
- categories
Get
Image Category[] - Categories for the image.
- checksum {[key: string]: string}
- Checksum of the image. The checksum is used for image validation if the image has a source specified. For images that do not have their source specified the checksum is generated by the image service.
- cluster
Name string - cluster
References GetImage Cluster Reference[] - cluster
Uuid string - current
Cluster GetReference Lists Image Current Cluster Reference List[] - data
Source GetReferences Image Data Source Reference[] - Reference to a data source.
- description string
- A description for image.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Type string - The type of image.
- metadata {[key: string]: string}
- The image kind metadata.
- name string
- the name.
- owner
Reference {[key: string]: string} - The reference to a user.
- project
Reference {[key: string]: string} - The reference to a project.
- retrieval
Uri string[]Lists - List of URIs where the raw image data can be accessed.
- size
Bytes number - The size of the image in bytes.
- source
Uri string - The source URI points at the location of the source image which is used to create/update image.
- state string
- The state of the image.
- version {[key: string]: string}
- The image version.
- image
Id string - image
Name string
- api_
version str - architecture str
- The supported CPU architecture for a disk image.
- availability_
zone_ Mapping[str, str]reference - The reference to a availability_zone.
- categories
Sequence[Get
Image Category] - Categories for the image.
- checksum Mapping[str, str]
- Checksum of the image. The checksum is used for image validation if the image has a source specified. For images that do not have their source specified the checksum is generated by the image service.
- cluster_
name str - cluster_
references Sequence[GetImage Cluster Reference] - cluster_
uuid str - current_
cluster_ Sequence[Getreference_ lists Image Current Cluster Reference List] - data_
source_ Sequence[Getreferences Image Data Source Reference] - Reference to a data source.
- description str
- A description for image.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
type str - The type of image.
- metadata Mapping[str, str]
- The image kind metadata.
- name str
- the name.
- owner_
reference Mapping[str, str] - The reference to a user.
- project_
reference Mapping[str, str] - The reference to a project.
- retrieval_
uri_ Sequence[str]lists - List of URIs where the raw image data can be accessed.
- size_
bytes int - The size of the image in bytes.
- source_
uri str - The source URI points at the location of the source image which is used to create/update image.
- state str
- The state of the image.
- version Mapping[str, str]
- The image version.
- image_
id str - image_
name str
- api
Version String - architecture String
- The supported CPU architecture for a disk image.
- availability
Zone Map<String>Reference - The reference to a availability_zone.
- categories List<Property Map>
- Categories for the image.
- checksum Map<String>
- Checksum of the image. The checksum is used for image validation if the image has a source specified. For images that do not have their source specified the checksum is generated by the image service.
- cluster
Name String - cluster
References List<Property Map> - cluster
Uuid String - current
Cluster List<Property Map>Reference Lists - data
Source List<Property Map>References - Reference to a data source.
- description String
- A description for image.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Type String - The type of image.
- metadata Map<String>
- The image kind metadata.
- name String
- the name.
- owner
Reference Map<String> - The reference to a user.
- project
Reference Map<String> - The reference to a project.
- retrieval
Uri List<String>Lists - List of URIs where the raw image data can be accessed.
- size
Bytes Number - The size of the image in bytes.
- source
Uri String - The source URI points at the location of the source image which is used to create/update image.
- state String
- The state of the image.
- version Map<String>
- The image version.
- image
Id String - image
Name String
Supporting Types
GetImageCategory
GetImageClusterReference
GetImageCurrentClusterReferenceList
GetImageDataSourceReference
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
