Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg
nutanix.getImagePlacementPolicyV2
Explore with Pulumi AI
Retrieve the image placement policy details for the provided external identifier.
Example
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const ipp = nutanix.getImagePlacementPolicyV2({
extId: "cf96e27a-4e52-4cec-b563-d0b25413cc4a",
});
import pulumi
import pulumi_nutanix as nutanix
ipp = nutanix.get_image_placement_policy_v2(ext_id="cf96e27a-4e52-4cec-b563-d0b25413cc4a")
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 {
_, err := nutanix.LookupImagePlacementPolicyV2(ctx, &nutanix.LookupImagePlacementPolicyV2Args{
ExtId: "cf96e27a-4e52-4cec-b563-d0b25413cc4a",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var ipp = Nutanix.GetImagePlacementPolicyV2.Invoke(new()
{
ExtId = "cf96e27a-4e52-4cec-b563-d0b25413cc4a",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetImagePlacementPolicyV2Args;
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 ipp = NutanixFunctions.getImagePlacementPolicyV2(GetImagePlacementPolicyV2Args.builder()
.extId("cf96e27a-4e52-4cec-b563-d0b25413cc4a")
.build());
}
}
variables:
ipp:
fn::invoke:
function: nutanix:getImagePlacementPolicyV2
arguments:
extId: cf96e27a-4e52-4cec-b563-d0b25413cc4a
Using getImagePlacementPolicyV2
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 getImagePlacementPolicyV2(args: GetImagePlacementPolicyV2Args, opts?: InvokeOptions): Promise<GetImagePlacementPolicyV2Result>
function getImagePlacementPolicyV2Output(args: GetImagePlacementPolicyV2OutputArgs, opts?: InvokeOptions): Output<GetImagePlacementPolicyV2Result>
def get_image_placement_policy_v2(ext_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetImagePlacementPolicyV2Result
def get_image_placement_policy_v2_output(ext_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImagePlacementPolicyV2Result]
func LookupImagePlacementPolicyV2(ctx *Context, args *LookupImagePlacementPolicyV2Args, opts ...InvokeOption) (*LookupImagePlacementPolicyV2Result, error)
func LookupImagePlacementPolicyV2Output(ctx *Context, args *LookupImagePlacementPolicyV2OutputArgs, opts ...InvokeOption) LookupImagePlacementPolicyV2ResultOutput
> Note: This function is named LookupImagePlacementPolicyV2
in the Go SDK.
public static class GetImagePlacementPolicyV2
{
public static Task<GetImagePlacementPolicyV2Result> InvokeAsync(GetImagePlacementPolicyV2Args args, InvokeOptions? opts = null)
public static Output<GetImagePlacementPolicyV2Result> Invoke(GetImagePlacementPolicyV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetImagePlacementPolicyV2Result> getImagePlacementPolicyV2(GetImagePlacementPolicyV2Args args, InvokeOptions options)
public static Output<GetImagePlacementPolicyV2Result> getImagePlacementPolicyV2(GetImagePlacementPolicyV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getImagePlacementPolicyV2:getImagePlacementPolicyV2
arguments:
# arguments dictionary
The following arguments are supported:
- Ext
Id string - The external identifier of an image placement policy.
- Ext
Id string - The external identifier of an image placement policy.
- ext
Id String - The external identifier of an image placement policy.
- ext
Id string - The external identifier of an image placement policy.
- ext_
id str - The external identifier of an image placement policy.
- ext
Id String - The external identifier of an image placement policy.
getImagePlacementPolicyV2 Result
The following output properties are available:
- Cluster
Entity List<PiersFilters Karsenbarg. Nutanix. Outputs. Get Image Placement Policy V2Cluster Entity Filter> - (Required) Category-based entity filter.
- Create
Time string - Description string
- (Optional) Description of the image placement policy.
- Enforcement
State string - (Optional) Enforcement status of the image placement policy. Valid values:
- ACTIVE: The image placement policy is being actively enforced.
- SUSPENDED: The policy enforcement for image placement is suspended.
- Ext
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Image
Entity List<PiersFilters Karsenbarg. Nutanix. Outputs. Get Image Placement Policy V2Image Entity Filter> - (Required) Category-based entity filter.
- Last
Update stringTime - Name string
- (Required) Name of the image placement policy.
- Owner
Ext stringId - Placement
Type string - (Required) Type of the image placement policy. Valid values:
- HARD: Hard placement policy. Images can only be placed on clusters enforced by the image placement policy.
- SOFT: Soft placement policy. Images can be placed on clusters apart from those enforced by the image placement policy.
- Cluster
Entity []GetFilters Image Placement Policy V2Cluster Entity Filter - (Required) Category-based entity filter.
- Create
Time string - Description string
- (Optional) Description of the image placement policy.
- Enforcement
State string - (Optional) Enforcement status of the image placement policy. Valid values:
- ACTIVE: The image placement policy is being actively enforced.
- SUSPENDED: The policy enforcement for image placement is suspended.
- Ext
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Image
Entity []GetFilters Image Placement Policy V2Image Entity Filter - (Required) Category-based entity filter.
- Last
Update stringTime - Name string
- (Required) Name of the image placement policy.
- Owner
Ext stringId - Placement
Type string - (Required) Type of the image placement policy. Valid values:
- HARD: Hard placement policy. Images can only be placed on clusters enforced by the image placement policy.
- SOFT: Soft placement policy. Images can be placed on clusters apart from those enforced by the image placement policy.
- cluster
Entity List<GetFilters Image Placement Policy V2Cluster Entity Filter> - (Required) Category-based entity filter.
- create
Time String - description String
- (Optional) Description of the image placement policy.
- enforcement
State String - (Optional) Enforcement status of the image placement policy. Valid values:
- ACTIVE: The image placement policy is being actively enforced.
- SUSPENDED: The policy enforcement for image placement is suspended.
- ext
Id String - id String
- The provider-assigned unique ID for this managed resource.
- image
Entity List<GetFilters Image Placement Policy V2Image Entity Filter> - (Required) Category-based entity filter.
- last
Update StringTime - name String
- (Required) Name of the image placement policy.
- owner
Ext StringId - placement
Type String - (Required) Type of the image placement policy. Valid values:
- HARD: Hard placement policy. Images can only be placed on clusters enforced by the image placement policy.
- SOFT: Soft placement policy. Images can be placed on clusters apart from those enforced by the image placement policy.
- cluster
Entity GetFilters Image Placement Policy V2Cluster Entity Filter[] - (Required) Category-based entity filter.
- create
Time string - description string
- (Optional) Description of the image placement policy.
- enforcement
State string - (Optional) Enforcement status of the image placement policy. Valid values:
- ACTIVE: The image placement policy is being actively enforced.
- SUSPENDED: The policy enforcement for image placement is suspended.
- ext
Id string - id string
- The provider-assigned unique ID for this managed resource.
- image
Entity GetFilters Image Placement Policy V2Image Entity Filter[] - (Required) Category-based entity filter.
- last
Update stringTime - name string
- (Required) Name of the image placement policy.
- owner
Ext stringId - placement
Type string - (Required) Type of the image placement policy. Valid values:
- HARD: Hard placement policy. Images can only be placed on clusters enforced by the image placement policy.
- SOFT: Soft placement policy. Images can be placed on clusters apart from those enforced by the image placement policy.
- cluster_
entity_ Sequence[Getfilters Image Placement Policy V2Cluster Entity Filter] - (Required) Category-based entity filter.
- create_
time str - description str
- (Optional) Description of the image placement policy.
- enforcement_
state str - (Optional) Enforcement status of the image placement policy. Valid values:
- ACTIVE: The image placement policy is being actively enforced.
- SUSPENDED: The policy enforcement for image placement is suspended.
- ext_
id str - id str
- The provider-assigned unique ID for this managed resource.
- image_
entity_ Sequence[Getfilters Image Placement Policy V2Image Entity Filter] - (Required) Category-based entity filter.
- last_
update_ strtime - name str
- (Required) Name of the image placement policy.
- owner_
ext_ strid - placement_
type str - (Required) Type of the image placement policy. Valid values:
- HARD: Hard placement policy. Images can only be placed on clusters enforced by the image placement policy.
- SOFT: Soft placement policy. Images can be placed on clusters apart from those enforced by the image placement policy.
- cluster
Entity List<Property Map>Filters - (Required) Category-based entity filter.
- create
Time String - description String
- (Optional) Description of the image placement policy.
- enforcement
State String - (Optional) Enforcement status of the image placement policy. Valid values:
- ACTIVE: The image placement policy is being actively enforced.
- SUSPENDED: The policy enforcement for image placement is suspended.
- ext
Id String - id String
- The provider-assigned unique ID for this managed resource.
- image
Entity List<Property Map>Filters - (Required) Category-based entity filter.
- last
Update StringTime - name String
- (Required) Name of the image placement policy.
- owner
Ext StringId - placement
Type String - (Required) Type of the image placement policy. Valid values:
- HARD: Hard placement policy. Images can only be placed on clusters enforced by the image placement policy.
- SOFT: Soft placement policy. Images can be placed on clusters apart from those enforced by the image placement policy.
Supporting Types
GetImagePlacementPolicyV2ClusterEntityFilter
- Category
Ext List<string>Ids - Array of strings
- Type string
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- Category
Ext []stringIds - Array of strings
- Type string
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category
Ext List<String>Ids - Array of strings
- type String
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category
Ext string[]Ids - Array of strings
- type string
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category_
ext_ Sequence[str]ids - Array of strings
- type str
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category
Ext List<String>Ids - Array of strings
- type String
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
GetImagePlacementPolicyV2ImageEntityFilter
- Category
Ext List<string>Ids - Array of strings
- Type string
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- Category
Ext []stringIds - Array of strings
- Type string
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category
Ext List<String>Ids - Array of strings
- type String
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category
Ext string[]Ids - Array of strings
- type string
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category_
ext_ Sequence[str]ids - Array of strings
- type str
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
- category
Ext List<String>Ids - Array of strings
- type String
- (Required) Filter matching type. Valid values:
- CATEGORIES_MATCH_ALL: Image policy only applies to the entities that are matched to all the corresponding entity categories attached to the image policy.
- CATEGORIES_MATCH_ANY: Image policy applies to the entities that match any subset of the entity categories attached to the image policy.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.