1. Packages
  2. Nutanix
  3. API Docs
  4. ImagesV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.ImagesV2

Explore with Pulumi AI

Create ImagesV2 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ImagesV2(name: string, args: ImagesV2Args, opts?: CustomResourceOptions);
@overload
def ImagesV2(resource_name: str,
             args: ImagesV2Args,
             opts: Optional[ResourceOptions] = None)

@overload
def ImagesV2(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             type: Optional[str] = None,
             category_ext_ids: Optional[Sequence[str]] = None,
             checksums: Optional[Sequence[ImagesV2ChecksumArgs]] = None,
             cluster_location_ext_ids: Optional[Sequence[str]] = None,
             description: Optional[str] = None,
             name: Optional[str] = None,
             sources: Optional[Sequence[ImagesV2SourceArgs]] = None)
func NewImagesV2(ctx *Context, name string, args ImagesV2Args, opts ...ResourceOption) (*ImagesV2, error)
public ImagesV2(string name, ImagesV2Args args, CustomResourceOptions? opts = null)
public ImagesV2(String name, ImagesV2Args args)
public ImagesV2(String name, ImagesV2Args args, CustomResourceOptions options)
type: nutanix:ImagesV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ImagesV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ImagesV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ImagesV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ImagesV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ImagesV2Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var imagesV2Resource = new Nutanix.ImagesV2("imagesV2Resource", new()
{
    Type = "string",
    CategoryExtIds = new[]
    {
        "string",
    },
    Checksums = new[]
    {
        new Nutanix.Inputs.ImagesV2ChecksumArgs
        {
            HexDigest = "string",
            ObjectType = "string",
        },
    },
    ClusterLocationExtIds = new[]
    {
        "string",
    },
    Description = "string",
    Name = "string",
    Sources = new[]
    {
        new Nutanix.Inputs.ImagesV2SourceArgs
        {
            ObjectLiteSources = new[]
            {
                new Nutanix.Inputs.ImagesV2SourceObjectLiteSourceArgs
                {
                    Key = "string",
                },
            },
            UrlSources = new[]
            {
                new Nutanix.Inputs.ImagesV2SourceUrlSourceArgs
                {
                    Url = "string",
                    BasicAuths = new[]
                    {
                        new Nutanix.Inputs.ImagesV2SourceUrlSourceBasicAuthArgs
                        {
                            Password = "string",
                            Username = "string",
                        },
                    },
                    ShouldAllowInsecureUrl = false,
                },
            },
            VmDiskSources = new[]
            {
                new Nutanix.Inputs.ImagesV2SourceVmDiskSourceArgs
                {
                    ExtId = "string",
                },
            },
        },
    },
});
Copy
example, err := nutanix.NewImagesV2(ctx, "imagesV2Resource", &nutanix.ImagesV2Args{
	Type: pulumi.String("string"),
	CategoryExtIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	Checksums: nutanix.ImagesV2ChecksumArray{
		&nutanix.ImagesV2ChecksumArgs{
			HexDigest:  pulumi.String("string"),
			ObjectType: pulumi.String("string"),
		},
	},
	ClusterLocationExtIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	Sources: nutanix.ImagesV2SourceArray{
		&nutanix.ImagesV2SourceArgs{
			ObjectLiteSources: nutanix.ImagesV2SourceObjectLiteSourceArray{
				&nutanix.ImagesV2SourceObjectLiteSourceArgs{
					Key: pulumi.String("string"),
				},
			},
			UrlSources: nutanix.ImagesV2SourceUrlSourceArray{
				&nutanix.ImagesV2SourceUrlSourceArgs{
					Url: pulumi.String("string"),
					BasicAuths: nutanix.ImagesV2SourceUrlSourceBasicAuthArray{
						&nutanix.ImagesV2SourceUrlSourceBasicAuthArgs{
							Password: pulumi.String("string"),
							Username: pulumi.String("string"),
						},
					},
					ShouldAllowInsecureUrl: pulumi.Bool(false),
				},
			},
			VmDiskSources: nutanix.ImagesV2SourceVmDiskSourceArray{
				&nutanix.ImagesV2SourceVmDiskSourceArgs{
					ExtId: pulumi.String("string"),
				},
			},
		},
	},
})
Copy
var imagesV2Resource = new ImagesV2("imagesV2Resource", ImagesV2Args.builder()
    .type("string")
    .categoryExtIds("string")
    .checksums(ImagesV2ChecksumArgs.builder()
        .hexDigest("string")
        .objectType("string")
        .build())
    .clusterLocationExtIds("string")
    .description("string")
    .name("string")
    .sources(ImagesV2SourceArgs.builder()
        .objectLiteSources(ImagesV2SourceObjectLiteSourceArgs.builder()
            .key("string")
            .build())
        .urlSources(ImagesV2SourceUrlSourceArgs.builder()
            .url("string")
            .basicAuths(ImagesV2SourceUrlSourceBasicAuthArgs.builder()
                .password("string")
                .username("string")
                .build())
            .shouldAllowInsecureUrl(false)
            .build())
        .vmDiskSources(ImagesV2SourceVmDiskSourceArgs.builder()
            .extId("string")
            .build())
        .build())
    .build());
Copy
images_v2_resource = nutanix.ImagesV2("imagesV2Resource",
    type="string",
    category_ext_ids=["string"],
    checksums=[{
        "hex_digest": "string",
        "object_type": "string",
    }],
    cluster_location_ext_ids=["string"],
    description="string",
    name="string",
    sources=[{
        "object_lite_sources": [{
            "key": "string",
        }],
        "url_sources": [{
            "url": "string",
            "basic_auths": [{
                "password": "string",
                "username": "string",
            }],
            "should_allow_insecure_url": False,
        }],
        "vm_disk_sources": [{
            "ext_id": "string",
        }],
    }])
Copy
const imagesV2Resource = new nutanix.ImagesV2("imagesV2Resource", {
    type: "string",
    categoryExtIds: ["string"],
    checksums: [{
        hexDigest: "string",
        objectType: "string",
    }],
    clusterLocationExtIds: ["string"],
    description: "string",
    name: "string",
    sources: [{
        objectLiteSources: [{
            key: "string",
        }],
        urlSources: [{
            url: "string",
            basicAuths: [{
                password: "string",
                username: "string",
            }],
            shouldAllowInsecureUrl: false,
        }],
        vmDiskSources: [{
            extId: "string",
        }],
    }],
});
Copy
type: nutanix:ImagesV2
properties:
    categoryExtIds:
        - string
    checksums:
        - hexDigest: string
          objectType: string
    clusterLocationExtIds:
        - string
    description: string
    name: string
    sources:
        - objectLiteSources:
            - key: string
          urlSources:
            - basicAuths:
                - password: string
                  username: string
              shouldAllowInsecureUrl: false
              url: string
          vmDiskSources:
            - extId: string
    type: string
Copy

ImagesV2 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ImagesV2 resource accepts the following input properties:

type This property is required. String
categoryExtIds List<String>
checksums List<ImagesV2Checksum>
clusterLocationExtIds List<String>
description String
name String
sources List<ImagesV2Source>
type This property is required. String
categoryExtIds List<String>
checksums List<Property Map>
clusterLocationExtIds List<String>
description String
name String
sources List<Property Map>

Outputs

All input properties are implicitly available as output properties. Additionally, the ImagesV2 resource produces the following output properties:

CreateTime string
Id string
The provider-assigned unique ID for this managed resource.
LastUpdateTime string
OwnerExtId string
PlacementPolicyStatuses List<PiersKarsenbarg.Nutanix.Outputs.ImagesV2PlacementPolicyStatus>
SizeBytes int
CreateTime string
Id string
The provider-assigned unique ID for this managed resource.
LastUpdateTime string
OwnerExtId string
PlacementPolicyStatuses []ImagesV2PlacementPolicyStatus
SizeBytes int
createTime String
id String
The provider-assigned unique ID for this managed resource.
lastUpdateTime String
ownerExtId String
placementPolicyStatuses List<ImagesV2PlacementPolicyStatus>
sizeBytes Integer
createTime string
id string
The provider-assigned unique ID for this managed resource.
lastUpdateTime string
ownerExtId string
placementPolicyStatuses ImagesV2PlacementPolicyStatus[]
sizeBytes number
create_time str
id str
The provider-assigned unique ID for this managed resource.
last_update_time str
owner_ext_id str
placement_policy_statuses Sequence[ImagesV2PlacementPolicyStatus]
size_bytes int
createTime String
id String
The provider-assigned unique ID for this managed resource.
lastUpdateTime String
ownerExtId String
placementPolicyStatuses List<Property Map>
sizeBytes Number

Look up Existing ImagesV2 Resource

Get an existing ImagesV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ImagesV2State, opts?: CustomResourceOptions): ImagesV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        category_ext_ids: Optional[Sequence[str]] = None,
        checksums: Optional[Sequence[ImagesV2ChecksumArgs]] = None,
        cluster_location_ext_ids: Optional[Sequence[str]] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        last_update_time: Optional[str] = None,
        name: Optional[str] = None,
        owner_ext_id: Optional[str] = None,
        placement_policy_statuses: Optional[Sequence[ImagesV2PlacementPolicyStatusArgs]] = None,
        size_bytes: Optional[int] = None,
        sources: Optional[Sequence[ImagesV2SourceArgs]] = None,
        type: Optional[str] = None) -> ImagesV2
func GetImagesV2(ctx *Context, name string, id IDInput, state *ImagesV2State, opts ...ResourceOption) (*ImagesV2, error)
public static ImagesV2 Get(string name, Input<string> id, ImagesV2State? state, CustomResourceOptions? opts = null)
public static ImagesV2 get(String name, Output<String> id, ImagesV2State state, CustomResourceOptions options)
resources:  _:    type: nutanix:ImagesV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:

Supporting Types

ImagesV2Checksum
, ImagesV2ChecksumArgs

HexDigest This property is required. string
ObjectType This property is required. string
HexDigest This property is required. string
ObjectType This property is required. string
hexDigest This property is required. String
objectType This property is required. String
hexDigest This property is required. string
objectType This property is required. string
hex_digest This property is required. str
object_type This property is required. str
hexDigest This property is required. String
objectType This property is required. String

ImagesV2PlacementPolicyStatus
, ImagesV2PlacementPolicyStatusArgs

ImagesV2Source
, ImagesV2SourceArgs

ImagesV2SourceObjectLiteSource
, ImagesV2SourceObjectLiteSourceArgs

Key This property is required. string
Key This property is required. string
key This property is required. String
key This property is required. string
key This property is required. str
key This property is required. String

ImagesV2SourceUrlSource
, ImagesV2SourceUrlSourceArgs

url This property is required. String
basicAuths List<Property Map>
shouldAllowInsecureUrl Boolean

ImagesV2SourceUrlSourceBasicAuth
, ImagesV2SourceUrlSourceBasicAuthArgs

Password This property is required. string
Username This property is required. string
Password This property is required. string
Username This property is required. string
password This property is required. String
username This property is required. String
password This property is required. string
username This property is required. string
password This property is required. str
username This property is required. str
password This property is required. String
username This property is required. String

ImagesV2SourceVmDiskSource
, ImagesV2SourceVmDiskSourceArgs

ExtId This property is required. string
ExtId This property is required. string
extId This property is required. String
extId This property is required. string
ext_id This property is required. str
extId This property is required. String

Package Details

Repository
nutanix pierskarsenbarg/pulumi-nutanix
License
Apache-2.0
Notes
This Pulumi package is based on the nutanix Terraform Provider.