1. Packages
  2. Packages
  3. Nutanix
  4. API Docs
  5. EntityGroupV2
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
nutanix logo
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg

    Create and manage an Entity Group for microsegmentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Simple entity group with name and description
    const simple = new nutanix.EntityGroupV2("simple", {
        name: "my-entity-group",
        description: "Entity group for microsegmentation",
    });
    // Entity group with allowed_config (VM by category + address group by IP)
    const withAllowed = new nutanix.EntityGroupV2("with_allowed", {
        name: "entity_group_with_allowed",
        description: "Entity group with allowed entities",
        allowedConfig: {
            entities: [
                {
                    type: "VM",
                    selectedBy: "CATEGORY_EXT_ID",
                    referenceExtIds: [
                        "category-uuid-1",
                        "category-uuid-2",
                    ],
                },
                {
                    type: "ADDRESS_GROUP",
                    selectedBy: "IP_VALUES",
                    addresses: {
                        ipv4Addresses: [{
                            value: "10.0.0.0",
                            prefixLength: 24,
                        }],
                    },
                    ipRanges: {
                        ipv4Ranges: [{
                            startIp: "192.168.1.1",
                            endIp: "192.168.1.10",
                        }],
                    },
                },
            ],
        },
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Simple entity group with name and description
    simple = nutanix.EntityGroupV2("simple",
        name="my-entity-group",
        description="Entity group for microsegmentation")
    # Entity group with allowed_config (VM by category + address group by IP)
    with_allowed = nutanix.EntityGroupV2("with_allowed",
        name="entity_group_with_allowed",
        description="Entity group with allowed entities",
        allowed_config={
            "entities": [
                {
                    "type": "VM",
                    "selected_by": "CATEGORY_EXT_ID",
                    "reference_ext_ids": [
                        "category-uuid-1",
                        "category-uuid-2",
                    ],
                },
                {
                    "type": "ADDRESS_GROUP",
                    "selected_by": "IP_VALUES",
                    "addresses": {
                        "ipv4_addresses": [{
                            "value": "10.0.0.0",
                            "prefix_length": 24,
                        }],
                    },
                    "ip_ranges": {
                        "ipv4_ranges": [{
                            "start_ip": "192.168.1.1",
                            "end_ip": "192.168.1.10",
                        }],
                    },
                },
            ],
        })
    
    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 {
    		// Simple entity group with name and description
    		_, err := nutanix.NewEntityGroupV2(ctx, "simple", &nutanix.EntityGroupV2Args{
    			Name:        pulumi.String("my-entity-group"),
    			Description: pulumi.String("Entity group for microsegmentation"),
    		})
    		if err != nil {
    			return err
    		}
    		// Entity group with allowed_config (VM by category + address group by IP)
    		_, err = nutanix.NewEntityGroupV2(ctx, "with_allowed", &nutanix.EntityGroupV2Args{
    			Name:        pulumi.String("entity_group_with_allowed"),
    			Description: pulumi.String("Entity group with allowed entities"),
    			AllowedConfig: &nutanix.EntityGroupV2AllowedConfigArgs{
    				Entities: nutanix.EntityGroupV2AllowedConfigEntityArray{
    					&nutanix.EntityGroupV2AllowedConfigEntityArgs{
    						Type:       pulumi.String("VM"),
    						SelectedBy: pulumi.String("CATEGORY_EXT_ID"),
    						ReferenceExtIds: pulumi.StringArray{
    							pulumi.String("category-uuid-1"),
    							pulumi.String("category-uuid-2"),
    						},
    					},
    					&nutanix.EntityGroupV2AllowedConfigEntityArgs{
    						Type:       pulumi.String("ADDRESS_GROUP"),
    						SelectedBy: pulumi.String("IP_VALUES"),
    						Addresses: &nutanix.EntityGroupV2AllowedConfigEntityAddressesArgs{
    							Ipv4Addresses: nutanix.EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArray{
    								&nutanix.EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArgs{
    									Value:        pulumi.String("10.0.0.0"),
    									PrefixLength: pulumi.Int(24),
    								},
    							},
    						},
    						IpRanges: &nutanix.EntityGroupV2AllowedConfigEntityIpRangesArgs{
    							Ipv4Ranges: nutanix.EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArray{
    								&nutanix.EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArgs{
    									StartIp: pulumi.String("192.168.1.1"),
    									EndIp:   pulumi.String("192.168.1.10"),
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // Simple entity group with name and description
        var simple = new Nutanix.EntityGroupV2("simple", new()
        {
            Name = "my-entity-group",
            Description = "Entity group for microsegmentation",
        });
    
        // Entity group with allowed_config (VM by category + address group by IP)
        var withAllowed = new Nutanix.EntityGroupV2("with_allowed", new()
        {
            Name = "entity_group_with_allowed",
            Description = "Entity group with allowed entities",
            AllowedConfig = new Nutanix.Inputs.EntityGroupV2AllowedConfigArgs
            {
                Entities = new[]
                {
                    new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityArgs
                    {
                        Type = "VM",
                        SelectedBy = "CATEGORY_EXT_ID",
                        ReferenceExtIds = new[]
                        {
                            "category-uuid-1",
                            "category-uuid-2",
                        },
                    },
                    new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityArgs
                    {
                        Type = "ADDRESS_GROUP",
                        SelectedBy = "IP_VALUES",
                        Addresses = new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityAddressesArgs
                        {
                            Ipv4Addresses = new[]
                            {
                                new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArgs
                                {
                                    Value = "10.0.0.0",
                                    PrefixLength = 24,
                                },
                            },
                        },
                        IpRanges = new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityIpRangesArgs
                        {
                            Ipv4Ranges = new[]
                            {
                                new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArgs
                                {
                                    StartIp = "192.168.1.1",
                                    EndIp = "192.168.1.10",
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.EntityGroupV2;
    import com.pulumi.nutanix.EntityGroupV2Args;
    import com.pulumi.nutanix.inputs.EntityGroupV2AllowedConfigArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            // Simple entity group with name and description
            var simple = new EntityGroupV2("simple", EntityGroupV2Args.builder()
                .name("my-entity-group")
                .description("Entity group for microsegmentation")
                .build());
    
            // Entity group with allowed_config (VM by category + address group by IP)
            var withAllowed = new EntityGroupV2("withAllowed", EntityGroupV2Args.builder()
                .name("entity_group_with_allowed")
                .description("Entity group with allowed entities")
                .allowedConfig(EntityGroupV2AllowedConfigArgs.builder()
                    .entities(                
                        EntityGroupV2AllowedConfigEntityArgs.builder()
                            .type("VM")
                            .selectedBy("CATEGORY_EXT_ID")
                            .referenceExtIds(                        
                                "category-uuid-1",
                                "category-uuid-2")
                            .build(),
                        EntityGroupV2AllowedConfigEntityArgs.builder()
                            .type("ADDRESS_GROUP")
                            .selectedBy("IP_VALUES")
                            .addresses(EntityGroupV2AllowedConfigEntityAddressesArgs.builder()
                                .ipv4Addresses(EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArgs.builder()
                                    .value("10.0.0.0")
                                    .prefixLength(24)
                                    .build())
                                .build())
                            .ipRanges(EntityGroupV2AllowedConfigEntityIpRangesArgs.builder()
                                .ipv4Ranges(EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArgs.builder()
                                    .startIp("192.168.1.1")
                                    .endIp("192.168.1.10")
                                    .build())
                                .build())
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Simple entity group with name and description
      simple:
        type: nutanix:EntityGroupV2
        properties:
          name: my-entity-group
          description: Entity group for microsegmentation
      # Entity group with allowed_config (VM by category + address group by IP)
      withAllowed:
        type: nutanix:EntityGroupV2
        name: with_allowed
        properties:
          name: entity_group_with_allowed
          description: Entity group with allowed entities
          allowedConfig:
            entities:
              - type: VM
                selectedBy: CATEGORY_EXT_ID
                referenceExtIds:
                  - category-uuid-1
                  - category-uuid-2
              - type: ADDRESS_GROUP
                selectedBy: IP_VALUES
                addresses:
                  ipv4Addresses:
                    - value: 10.0.0.0
                      prefixLength: 24
                ipRanges:
                  ipv4Ranges:
                    - startIp: 192.168.1.1
                      endIp: 192.168.1.10
    
    pulumi {
      required_providers {
        nutanix = {
          source = "pulumi/nutanix"
        }
      }
    }
    
    # Simple entity group with name and description
    resource "nutanix_entitygroupv2" "simple" {
      name        = "my-entity-group"
      description = "Entity group for microsegmentation"
    }
    # Entity group with allowed_config (VM by category + address group by IP)
    resource "nutanix_entitygroupv2" "with_allowed" {
      name        = "entity_group_with_allowed"
      description = "Entity group with allowed entities"
      allowed_config = {
        entities = [{
          "type"            = "VM"
          "selectedBy"      = "CATEGORY_EXT_ID"
          "referenceExtIds" = ["category-uuid-1", "category-uuid-2"]
          }, {
          "type"       = "ADDRESS_GROUP"
          "selectedBy" = "IP_VALUES"
          "addresses" = {
            "ipv4Addresses" = [{
              "value"        = "10.0.0.0"
              "prefixLength" = 24
            }]
          }
          "ipRanges" = {
            "ipv4Ranges" = [{
              "startIp" = "192.168.1.1"
              "endIp"   = "192.168.1.10"
            }]
          }
        }]
      }
    }
    

    Validation Requirements

    The following validation rules apply to allowedConfig entities:

    Required Fields

    • type - (Required) Must be specified for all entities in allowedConfig.

    Conditional Requirements

    • kubeEntities - Required when type is one of: KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS. Must not be empty.
    • referenceExtIds - Required when selectedBy is EXT_ID. Must not be empty.

    Valid Combinations

    The combination of selectedBy and type must be one of the following valid pairs:

    • (CATEGORY_EXT_ID, VM)
    • (CATEGORY_EXT_ID, SUBNET)
    • (CATEGORY_EXT_ID, VPC)
    • (EXT_ID, KUBE_CLUSTER)
    • (EXT_ID, ADDRESS_GROUP)
    • (LABELS, KUBE_PODS)
    • (NAME, KUBE_NAMESPACE)
    • (NAME, KUBE_SERVICE)
    • (IP_VALUES, ADDRESS_GROUP)

    Any other combination will result in a validation error.

    Duplicate (selected_by, type) Not Allowed

    Within one entity group, you cannot have two entities with the same (selected_by, type) pair. For example, two entities both using IP_VALUES and ADDRESS_GROUP are invalid. Combine all addresses and ipRanges into a single entity block when using (IP_VALUES, ADDRESS_GROUP).

    Create EntityGroupV2 Resource

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

    Constructor syntax

    new EntityGroupV2(name: string, args?: EntityGroupV2Args, opts?: CustomResourceOptions);
    @overload
    def EntityGroupV2(resource_name: str,
                      args: Optional[EntityGroupV2Args] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def EntityGroupV2(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      allowed_config: Optional[EntityGroupV2AllowedConfigArgs] = None,
                      description: Optional[str] = None,
                      except_config: Optional[EntityGroupV2ExceptConfigArgs] = None,
                      name: Optional[str] = None,
                      policy_ext_ids: Optional[Sequence[str]] = None)
    func NewEntityGroupV2(ctx *Context, name string, args *EntityGroupV2Args, opts ...ResourceOption) (*EntityGroupV2, error)
    public EntityGroupV2(string name, EntityGroupV2Args? args = null, CustomResourceOptions? opts = null)
    public EntityGroupV2(String name, EntityGroupV2Args args)
    public EntityGroupV2(String name, EntityGroupV2Args args, CustomResourceOptions options)
    
    type: nutanix:EntityGroupV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "nutanix_entitygroupv2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EntityGroupV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EntityGroupV2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EntityGroupV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EntityGroupV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EntityGroupV2Args
    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 entityGroupV2Resource = new Nutanix.EntityGroupV2("entityGroupV2Resource", new()
    {
        AllowedConfig = new Nutanix.Inputs.EntityGroupV2AllowedConfigArgs
        {
            Entities = new[]
            {
                new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityArgs
                {
                    Addresses = new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityAddressesArgs
                    {
                        Ipv4Addresses = new[]
                        {
                            new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArgs
                            {
                                Value = "string",
                                PrefixLength = 0,
                            },
                        },
                    },
                    IpRanges = new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityIpRangesArgs
                    {
                        Ipv4Ranges = new[]
                        {
                            new Nutanix.Inputs.EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArgs
                            {
                                EndIp = "string",
                                StartIp = "string",
                            },
                        },
                    },
                    KubeEntities = new[]
                    {
                        "string",
                    },
                    ReferenceExtIds = new[]
                    {
                        "string",
                    },
                    SelectedBy = "string",
                    Type = "string",
                },
            },
        },
        Description = "string",
        ExceptConfig = new Nutanix.Inputs.EntityGroupV2ExceptConfigArgs
        {
            Entities = new[]
            {
                new Nutanix.Inputs.EntityGroupV2ExceptConfigEntityArgs
                {
                    Addresses = new Nutanix.Inputs.EntityGroupV2ExceptConfigEntityAddressesArgs
                    {
                        Ipv4Addresses = new[]
                        {
                            new Nutanix.Inputs.EntityGroupV2ExceptConfigEntityAddressesIpv4AddressArgs
                            {
                                Value = "string",
                                PrefixLength = 0,
                            },
                        },
                    },
                    IpRanges = new Nutanix.Inputs.EntityGroupV2ExceptConfigEntityIpRangesArgs
                    {
                        Ipv4Ranges = new[]
                        {
                            new Nutanix.Inputs.EntityGroupV2ExceptConfigEntityIpRangesIpv4RangeArgs
                            {
                                EndIp = "string",
                                StartIp = "string",
                            },
                        },
                    },
                    ReferenceExtIds = new[]
                    {
                        "string",
                    },
                    SelectedBy = "string",
                    Type = "string",
                },
            },
        },
        Name = "string",
        PolicyExtIds = new[]
        {
            "string",
        },
    });
    
    example, err := nutanix.NewEntityGroupV2(ctx, "entityGroupV2Resource", &nutanix.EntityGroupV2Args{
    	AllowedConfig: &nutanix.EntityGroupV2AllowedConfigArgs{
    		Entities: nutanix.EntityGroupV2AllowedConfigEntityArray{
    			&nutanix.EntityGroupV2AllowedConfigEntityArgs{
    				Addresses: &nutanix.EntityGroupV2AllowedConfigEntityAddressesArgs{
    					Ipv4Addresses: nutanix.EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArray{
    						&nutanix.EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArgs{
    							Value:        pulumi.String("string"),
    							PrefixLength: pulumi.Int(0),
    						},
    					},
    				},
    				IpRanges: &nutanix.EntityGroupV2AllowedConfigEntityIpRangesArgs{
    					Ipv4Ranges: nutanix.EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArray{
    						&nutanix.EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArgs{
    							EndIp:   pulumi.String("string"),
    							StartIp: pulumi.String("string"),
    						},
    					},
    				},
    				KubeEntities: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				ReferenceExtIds: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				SelectedBy: pulumi.String("string"),
    				Type:       pulumi.String("string"),
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	ExceptConfig: &nutanix.EntityGroupV2ExceptConfigArgs{
    		Entities: nutanix.EntityGroupV2ExceptConfigEntityArray{
    			&nutanix.EntityGroupV2ExceptConfigEntityArgs{
    				Addresses: &nutanix.EntityGroupV2ExceptConfigEntityAddressesArgs{
    					Ipv4Addresses: nutanix.EntityGroupV2ExceptConfigEntityAddressesIpv4AddressArray{
    						&nutanix.EntityGroupV2ExceptConfigEntityAddressesIpv4AddressArgs{
    							Value:        pulumi.String("string"),
    							PrefixLength: pulumi.Int(0),
    						},
    					},
    				},
    				IpRanges: &nutanix.EntityGroupV2ExceptConfigEntityIpRangesArgs{
    					Ipv4Ranges: nutanix.EntityGroupV2ExceptConfigEntityIpRangesIpv4RangeArray{
    						&nutanix.EntityGroupV2ExceptConfigEntityIpRangesIpv4RangeArgs{
    							EndIp:   pulumi.String("string"),
    							StartIp: pulumi.String("string"),
    						},
    					},
    				},
    				ReferenceExtIds: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				SelectedBy: pulumi.String("string"),
    				Type:       pulumi.String("string"),
    			},
    		},
    	},
    	Name: pulumi.String("string"),
    	PolicyExtIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "nutanix_entitygroupv2" "entityGroupV2Resource" {
      allowed_config = {
        entities = [{
          "addresses" = {
            "ipv4Addresses" = [{
              "value"        = "string"
              "prefixLength" = 0
            }]
          }
          "ipRanges" = {
            "ipv4Ranges" = [{
              "endIp"   = "string"
              "startIp" = "string"
            }]
          }
          "kubeEntities"    = ["string"]
          "referenceExtIds" = ["string"]
          "selectedBy"      = "string"
          "type"            = "string"
        }]
      }
      description = "string"
      except_config = {
        entities = [{
          "addresses" = {
            "ipv4Addresses" = [{
              "value"        = "string"
              "prefixLength" = 0
            }]
          }
          "ipRanges" = {
            "ipv4Ranges" = [{
              "endIp"   = "string"
              "startIp" = "string"
            }]
          }
          "referenceExtIds" = ["string"]
          "selectedBy"      = "string"
          "type"            = "string"
        }]
      }
      name           = "string"
      policy_ext_ids = ["string"]
    }
    
    var entityGroupV2Resource = new EntityGroupV2("entityGroupV2Resource", EntityGroupV2Args.builder()
        .allowedConfig(EntityGroupV2AllowedConfigArgs.builder()
            .entities(EntityGroupV2AllowedConfigEntityArgs.builder()
                .addresses(EntityGroupV2AllowedConfigEntityAddressesArgs.builder()
                    .ipv4Addresses(EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArgs.builder()
                        .value("string")
                        .prefixLength(0)
                        .build())
                    .build())
                .ipRanges(EntityGroupV2AllowedConfigEntityIpRangesArgs.builder()
                    .ipv4Ranges(EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArgs.builder()
                        .endIp("string")
                        .startIp("string")
                        .build())
                    .build())
                .kubeEntities("string")
                .referenceExtIds("string")
                .selectedBy("string")
                .type("string")
                .build())
            .build())
        .description("string")
        .exceptConfig(EntityGroupV2ExceptConfigArgs.builder()
            .entities(EntityGroupV2ExceptConfigEntityArgs.builder()
                .addresses(EntityGroupV2ExceptConfigEntityAddressesArgs.builder()
                    .ipv4Addresses(EntityGroupV2ExceptConfigEntityAddressesIpv4AddressArgs.builder()
                        .value("string")
                        .prefixLength(0)
                        .build())
                    .build())
                .ipRanges(EntityGroupV2ExceptConfigEntityIpRangesArgs.builder()
                    .ipv4Ranges(EntityGroupV2ExceptConfigEntityIpRangesIpv4RangeArgs.builder()
                        .endIp("string")
                        .startIp("string")
                        .build())
                    .build())
                .referenceExtIds("string")
                .selectedBy("string")
                .type("string")
                .build())
            .build())
        .name("string")
        .policyExtIds("string")
        .build());
    
    entity_group_v2_resource = nutanix.EntityGroupV2("entityGroupV2Resource",
        allowed_config={
            "entities": [{
                "addresses": {
                    "ipv4_addresses": [{
                        "value": "string",
                        "prefix_length": 0,
                    }],
                },
                "ip_ranges": {
                    "ipv4_ranges": [{
                        "end_ip": "string",
                        "start_ip": "string",
                    }],
                },
                "kube_entities": ["string"],
                "reference_ext_ids": ["string"],
                "selected_by": "string",
                "type": "string",
            }],
        },
        description="string",
        except_config={
            "entities": [{
                "addresses": {
                    "ipv4_addresses": [{
                        "value": "string",
                        "prefix_length": 0,
                    }],
                },
                "ip_ranges": {
                    "ipv4_ranges": [{
                        "end_ip": "string",
                        "start_ip": "string",
                    }],
                },
                "reference_ext_ids": ["string"],
                "selected_by": "string",
                "type": "string",
            }],
        },
        name="string",
        policy_ext_ids=["string"])
    
    const entityGroupV2Resource = new nutanix.EntityGroupV2("entityGroupV2Resource", {
        allowedConfig: {
            entities: [{
                addresses: {
                    ipv4Addresses: [{
                        value: "string",
                        prefixLength: 0,
                    }],
                },
                ipRanges: {
                    ipv4Ranges: [{
                        endIp: "string",
                        startIp: "string",
                    }],
                },
                kubeEntities: ["string"],
                referenceExtIds: ["string"],
                selectedBy: "string",
                type: "string",
            }],
        },
        description: "string",
        exceptConfig: {
            entities: [{
                addresses: {
                    ipv4Addresses: [{
                        value: "string",
                        prefixLength: 0,
                    }],
                },
                ipRanges: {
                    ipv4Ranges: [{
                        endIp: "string",
                        startIp: "string",
                    }],
                },
                referenceExtIds: ["string"],
                selectedBy: "string",
                type: "string",
            }],
        },
        name: "string",
        policyExtIds: ["string"],
    });
    
    type: nutanix:EntityGroupV2
    properties:
        allowedConfig:
            entities:
                - addresses:
                    ipv4Addresses:
                        - prefixLength: 0
                          value: string
                  ipRanges:
                    ipv4Ranges:
                        - endIp: string
                          startIp: string
                  kubeEntities:
                    - string
                  referenceExtIds:
                    - string
                  selectedBy: string
                  type: string
        description: string
        exceptConfig:
            entities:
                - addresses:
                    ipv4Addresses:
                        - prefixLength: 0
                          value: string
                  ipRanges:
                    ipv4Ranges:
                        - endIp: string
                          startIp: string
                  referenceExtIds:
                    - string
                  selectedBy: string
                  type: string
        name: string
        policyExtIds:
            - string
    

    EntityGroupV2 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 EntityGroupV2 resource accepts the following input properties:

    AllowedConfig PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2AllowedConfig
    Configuration of the allowed entities in the Entity Group.
    Description string
    A user defined annotation for an Entity Group.
    ExceptConfig PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2ExceptConfig
    Configuration of except entities in the Entity Group.
    Name string
    A short identifier of an Entity Group.
    PolicyExtIds List<string>
    List of policy external identifiers.
    AllowedConfig EntityGroupV2AllowedConfigArgs
    Configuration of the allowed entities in the Entity Group.
    Description string
    A user defined annotation for an Entity Group.
    ExceptConfig EntityGroupV2ExceptConfigArgs
    Configuration of except entities in the Entity Group.
    Name string
    A short identifier of an Entity Group.
    PolicyExtIds []string
    List of policy external identifiers.
    allowed_config object
    Configuration of the allowed entities in the Entity Group.
    description string
    A user defined annotation for an Entity Group.
    except_config object
    Configuration of except entities in the Entity Group.
    name string
    A short identifier of an Entity Group.
    policy_ext_ids list(string)
    List of policy external identifiers.
    allowedConfig EntityGroupV2AllowedConfig
    Configuration of the allowed entities in the Entity Group.
    description String
    A user defined annotation for an Entity Group.
    exceptConfig EntityGroupV2ExceptConfig
    Configuration of except entities in the Entity Group.
    name String
    A short identifier of an Entity Group.
    policyExtIds List<String>
    List of policy external identifiers.
    allowedConfig EntityGroupV2AllowedConfig
    Configuration of the allowed entities in the Entity Group.
    description string
    A user defined annotation for an Entity Group.
    exceptConfig EntityGroupV2ExceptConfig
    Configuration of except entities in the Entity Group.
    name string
    A short identifier of an Entity Group.
    policyExtIds string[]
    List of policy external identifiers.
    allowed_config EntityGroupV2AllowedConfigArgs
    Configuration of the allowed entities in the Entity Group.
    description str
    A user defined annotation for an Entity Group.
    except_config EntityGroupV2ExceptConfigArgs
    Configuration of except entities in the Entity Group.
    name str
    A short identifier of an Entity Group.
    policy_ext_ids Sequence[str]
    List of policy external identifiers.
    allowedConfig Property Map
    Configuration of the allowed entities in the Entity Group.
    description String
    A user defined annotation for an Entity Group.
    exceptConfig Property Map
    Configuration of except entities in the Entity Group.
    name String
    A short identifier of an Entity Group.
    policyExtIds List<String>
    List of policy external identifiers.

    Outputs

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

    CreationTime string
    The timestamp when the Entity Group was created.
    ExtId string
    Entity group UUID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdateTime string
    The timestamp when the Entity Group was last updated.
    Links List<PiersKarsenbarg.Nutanix.Outputs.EntityGroupV2Link>
    A HATEOAS style link for the response.
    OwnerExtId string
    The external identifier of the user who created the Entity Group.
    TenantId string
    A globally unique identifier that represents the tenant that owns this entity.
    CreationTime string
    The timestamp when the Entity Group was created.
    ExtId string
    Entity group UUID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdateTime string
    The timestamp when the Entity Group was last updated.
    Links []EntityGroupV2Link
    A HATEOAS style link for the response.
    OwnerExtId string
    The external identifier of the user who created the Entity Group.
    TenantId string
    A globally unique identifier that represents the tenant that owns this entity.
    creation_time string
    The timestamp when the Entity Group was created.
    ext_id string
    Entity group UUID.
    id string
    The provider-assigned unique ID for this managed resource.
    last_update_time string
    The timestamp when the Entity Group was last updated.
    links list(object)
    A HATEOAS style link for the response.
    owner_ext_id string
    The external identifier of the user who created the Entity Group.
    tenant_id string
    A globally unique identifier that represents the tenant that owns this entity.
    creationTime String
    The timestamp when the Entity Group was created.
    extId String
    Entity group UUID.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdateTime String
    The timestamp when the Entity Group was last updated.
    links List<EntityGroupV2Link>
    A HATEOAS style link for the response.
    ownerExtId String
    The external identifier of the user who created the Entity Group.
    tenantId String
    A globally unique identifier that represents the tenant that owns this entity.
    creationTime string
    The timestamp when the Entity Group was created.
    extId string
    Entity group UUID.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdateTime string
    The timestamp when the Entity Group was last updated.
    links EntityGroupV2Link[]
    A HATEOAS style link for the response.
    ownerExtId string
    The external identifier of the user who created the Entity Group.
    tenantId string
    A globally unique identifier that represents the tenant that owns this entity.
    creation_time str
    The timestamp when the Entity Group was created.
    ext_id str
    Entity group UUID.
    id str
    The provider-assigned unique ID for this managed resource.
    last_update_time str
    The timestamp when the Entity Group was last updated.
    links Sequence[EntityGroupV2Link]
    A HATEOAS style link for the response.
    owner_ext_id str
    The external identifier of the user who created the Entity Group.
    tenant_id str
    A globally unique identifier that represents the tenant that owns this entity.
    creationTime String
    The timestamp when the Entity Group was created.
    extId String
    Entity group UUID.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdateTime String
    The timestamp when the Entity Group was last updated.
    links List<Property Map>
    A HATEOAS style link for the response.
    ownerExtId String
    The external identifier of the user who created the Entity Group.
    tenantId String
    A globally unique identifier that represents the tenant that owns this entity.

    Look up Existing EntityGroupV2 Resource

    Get an existing EntityGroupV2 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?: EntityGroupV2State, opts?: CustomResourceOptions): EntityGroupV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allowed_config: Optional[EntityGroupV2AllowedConfigArgs] = None,
            creation_time: Optional[str] = None,
            description: Optional[str] = None,
            except_config: Optional[EntityGroupV2ExceptConfigArgs] = None,
            ext_id: Optional[str] = None,
            last_update_time: Optional[str] = None,
            links: Optional[Sequence[EntityGroupV2LinkArgs]] = None,
            name: Optional[str] = None,
            owner_ext_id: Optional[str] = None,
            policy_ext_ids: Optional[Sequence[str]] = None,
            tenant_id: Optional[str] = None) -> EntityGroupV2
    func GetEntityGroupV2(ctx *Context, name string, id IDInput, state *EntityGroupV2State, opts ...ResourceOption) (*EntityGroupV2, error)
    public static EntityGroupV2 Get(string name, Input<string> id, EntityGroupV2State? state, CustomResourceOptions? opts = null)
    public static EntityGroupV2 get(String name, Output<String> id, EntityGroupV2State state, CustomResourceOptions options)
    resources:  _:    type: nutanix:EntityGroupV2    get:      id: ${id}
    import {
      to = nutanix_entitygroupv2.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    AllowedConfig PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2AllowedConfig
    Configuration of the allowed entities in the Entity Group.
    CreationTime string
    The timestamp when the Entity Group was created.
    Description string
    A user defined annotation for an Entity Group.
    ExceptConfig PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2ExceptConfig
    Configuration of except entities in the Entity Group.
    ExtId string
    Entity group UUID.
    LastUpdateTime string
    The timestamp when the Entity Group was last updated.
    Links List<PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2Link>
    A HATEOAS style link for the response.
    Name string
    A short identifier of an Entity Group.
    OwnerExtId string
    The external identifier of the user who created the Entity Group.
    PolicyExtIds List<string>
    List of policy external identifiers.
    TenantId string
    A globally unique identifier that represents the tenant that owns this entity.
    AllowedConfig EntityGroupV2AllowedConfigArgs
    Configuration of the allowed entities in the Entity Group.
    CreationTime string
    The timestamp when the Entity Group was created.
    Description string
    A user defined annotation for an Entity Group.
    ExceptConfig EntityGroupV2ExceptConfigArgs
    Configuration of except entities in the Entity Group.
    ExtId string
    Entity group UUID.
    LastUpdateTime string
    The timestamp when the Entity Group was last updated.
    Links []EntityGroupV2LinkArgs
    A HATEOAS style link for the response.
    Name string
    A short identifier of an Entity Group.
    OwnerExtId string
    The external identifier of the user who created the Entity Group.
    PolicyExtIds []string
    List of policy external identifiers.
    TenantId string
    A globally unique identifier that represents the tenant that owns this entity.
    allowed_config object
    Configuration of the allowed entities in the Entity Group.
    creation_time string
    The timestamp when the Entity Group was created.
    description string
    A user defined annotation for an Entity Group.
    except_config object
    Configuration of except entities in the Entity Group.
    ext_id string
    Entity group UUID.
    last_update_time string
    The timestamp when the Entity Group was last updated.
    links list(object)
    A HATEOAS style link for the response.
    name string
    A short identifier of an Entity Group.
    owner_ext_id string
    The external identifier of the user who created the Entity Group.
    policy_ext_ids list(string)
    List of policy external identifiers.
    tenant_id string
    A globally unique identifier that represents the tenant that owns this entity.
    allowedConfig EntityGroupV2AllowedConfig
    Configuration of the allowed entities in the Entity Group.
    creationTime String
    The timestamp when the Entity Group was created.
    description String
    A user defined annotation for an Entity Group.
    exceptConfig EntityGroupV2ExceptConfig
    Configuration of except entities in the Entity Group.
    extId String
    Entity group UUID.
    lastUpdateTime String
    The timestamp when the Entity Group was last updated.
    links List<EntityGroupV2Link>
    A HATEOAS style link for the response.
    name String
    A short identifier of an Entity Group.
    ownerExtId String
    The external identifier of the user who created the Entity Group.
    policyExtIds List<String>
    List of policy external identifiers.
    tenantId String
    A globally unique identifier that represents the tenant that owns this entity.
    allowedConfig EntityGroupV2AllowedConfig
    Configuration of the allowed entities in the Entity Group.
    creationTime string
    The timestamp when the Entity Group was created.
    description string
    A user defined annotation for an Entity Group.
    exceptConfig EntityGroupV2ExceptConfig
    Configuration of except entities in the Entity Group.
    extId string
    Entity group UUID.
    lastUpdateTime string
    The timestamp when the Entity Group was last updated.
    links EntityGroupV2Link[]
    A HATEOAS style link for the response.
    name string
    A short identifier of an Entity Group.
    ownerExtId string
    The external identifier of the user who created the Entity Group.
    policyExtIds string[]
    List of policy external identifiers.
    tenantId string
    A globally unique identifier that represents the tenant that owns this entity.
    allowed_config EntityGroupV2AllowedConfigArgs
    Configuration of the allowed entities in the Entity Group.
    creation_time str
    The timestamp when the Entity Group was created.
    description str
    A user defined annotation for an Entity Group.
    except_config EntityGroupV2ExceptConfigArgs
    Configuration of except entities in the Entity Group.
    ext_id str
    Entity group UUID.
    last_update_time str
    The timestamp when the Entity Group was last updated.
    links Sequence[EntityGroupV2LinkArgs]
    A HATEOAS style link for the response.
    name str
    A short identifier of an Entity Group.
    owner_ext_id str
    The external identifier of the user who created the Entity Group.
    policy_ext_ids Sequence[str]
    List of policy external identifiers.
    tenant_id str
    A globally unique identifier that represents the tenant that owns this entity.
    allowedConfig Property Map
    Configuration of the allowed entities in the Entity Group.
    creationTime String
    The timestamp when the Entity Group was created.
    description String
    A user defined annotation for an Entity Group.
    exceptConfig Property Map
    Configuration of except entities in the Entity Group.
    extId String
    Entity group UUID.
    lastUpdateTime String
    The timestamp when the Entity Group was last updated.
    links List<Property Map>
    A HATEOAS style link for the response.
    name String
    A short identifier of an Entity Group.
    ownerExtId String
    The external identifier of the user who created the Entity Group.
    policyExtIds List<String>
    List of policy external identifiers.
    tenantId String
    A globally unique identifier that represents the tenant that owns this entity.

    Supporting Types

    EntityGroupV2AllowedConfig, EntityGroupV2AllowedConfigArgs

    Entities []EntityGroupV2AllowedConfigEntity
    List of allowed entities. Each entity may contain:
    entities list(object)
    List of allowed entities. Each entity may contain:
    entities List<EntityGroupV2AllowedConfigEntity>
    List of allowed entities. Each entity may contain:
    entities EntityGroupV2AllowedConfigEntity[]
    List of allowed entities. Each entity may contain:
    entities Sequence[EntityGroupV2AllowedConfigEntity]
    List of allowed entities. Each entity may contain:
    entities List<Property Map>
    List of allowed entities. Each entity may contain:

    EntityGroupV2AllowedConfigEntity, EntityGroupV2AllowedConfigEntityArgs

    Addresses PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2AllowedConfigEntityAddresses
    With ipv4Addresses block(s):
    IpRanges PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2AllowedConfigEntityIpRanges
    With ipv4Ranges block(s):
    KubeEntities List<string>
    List of kube entity identifiers. Required when type is a kube type (KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS).
    ReferenceExtIds List<string>
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    SelectedBy string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    Type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    Addresses EntityGroupV2AllowedConfigEntityAddresses
    With ipv4Addresses block(s):
    IpRanges EntityGroupV2AllowedConfigEntityIpRanges
    With ipv4Ranges block(s):
    KubeEntities []string
    List of kube entity identifiers. Required when type is a kube type (KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS).
    ReferenceExtIds []string
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    SelectedBy string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    Type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses object
    With ipv4Addresses block(s):
    ip_ranges object
    With ipv4Ranges block(s):
    kube_entities list(string)
    List of kube entity identifiers. Required when type is a kube type (KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS).
    reference_ext_ids list(string)
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selected_by string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses EntityGroupV2AllowedConfigEntityAddresses
    With ipv4Addresses block(s):
    ipRanges EntityGroupV2AllowedConfigEntityIpRanges
    With ipv4Ranges block(s):
    kubeEntities List<String>
    List of kube entity identifiers. Required when type is a kube type (KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS).
    referenceExtIds List<String>
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selectedBy String
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type String
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses EntityGroupV2AllowedConfigEntityAddresses
    With ipv4Addresses block(s):
    ipRanges EntityGroupV2AllowedConfigEntityIpRanges
    With ipv4Ranges block(s):
    kubeEntities string[]
    List of kube entity identifiers. Required when type is a kube type (KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS).
    referenceExtIds string[]
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selectedBy string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses EntityGroupV2AllowedConfigEntityAddresses
    With ipv4Addresses block(s):
    ip_ranges EntityGroupV2AllowedConfigEntityIpRanges
    With ipv4Ranges block(s):
    kube_entities Sequence[str]
    List of kube entity identifiers. Required when type is a kube type (KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS).
    reference_ext_ids Sequence[str]
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selected_by str
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type str
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses Property Map
    With ipv4Addresses block(s):
    ipRanges Property Map
    With ipv4Ranges block(s):
    kubeEntities List<String>
    List of kube entity identifiers. Required when type is a kube type (KUBE_NAMESPACE, KUBE_SERVICE, KUBE_CLUSTER, or KUBE_PODS).
    referenceExtIds List<String>
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selectedBy String
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type String
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.

    EntityGroupV2AllowedConfigEntityAddresses, EntityGroupV2AllowedConfigEntityAddressesArgs

    EntityGroupV2AllowedConfigEntityAddressesIpv4Address, EntityGroupV2AllowedConfigEntityAddressesIpv4AddressArgs

    Value string
    IPv4 address value.
    PrefixLength int
    Prefix length.
    Value string
    IPv4 address value.
    PrefixLength int
    Prefix length.
    value string
    IPv4 address value.
    prefix_length number
    Prefix length.
    value String
    IPv4 address value.
    prefixLength Integer
    Prefix length.
    value string
    IPv4 address value.
    prefixLength number
    Prefix length.
    value str
    IPv4 address value.
    prefix_length int
    Prefix length.
    value String
    IPv4 address value.
    prefixLength Number
    Prefix length.

    EntityGroupV2AllowedConfigEntityIpRanges, EntityGroupV2AllowedConfigEntityIpRangesArgs

    EntityGroupV2AllowedConfigEntityIpRangesIpv4Range, EntityGroupV2AllowedConfigEntityIpRangesIpv4RangeArgs

    EndIp string
    End IP of the range.
    StartIp string
    Start IP of the range.
    EndIp string
    End IP of the range.
    StartIp string
    Start IP of the range.
    end_ip string
    End IP of the range.
    start_ip string
    Start IP of the range.
    endIp String
    End IP of the range.
    startIp String
    Start IP of the range.
    endIp string
    End IP of the range.
    startIp string
    Start IP of the range.
    end_ip str
    End IP of the range.
    start_ip str
    Start IP of the range.
    endIp String
    End IP of the range.
    startIp String
    Start IP of the range.

    EntityGroupV2ExceptConfig, EntityGroupV2ExceptConfigArgs

    Entities []EntityGroupV2ExceptConfigEntity
    List of except entities. Each entity may contain:
    entities list(object)
    List of except entities. Each entity may contain:
    entities List<EntityGroupV2ExceptConfigEntity>
    List of except entities. Each entity may contain:
    entities EntityGroupV2ExceptConfigEntity[]
    List of except entities. Each entity may contain:
    entities Sequence[EntityGroupV2ExceptConfigEntity]
    List of except entities. Each entity may contain:
    entities List<Property Map>
    List of except entities. Each entity may contain:

    EntityGroupV2ExceptConfigEntity, EntityGroupV2ExceptConfigEntityArgs

    Addresses PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2ExceptConfigEntityAddresses
    With ipv4Addresses block(s).
    IpRanges PiersKarsenbarg.Nutanix.Inputs.EntityGroupV2ExceptConfigEntityIpRanges
    With ipv4Ranges block(s).
    ReferenceExtIds List<string>
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    SelectedBy string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    Type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    Addresses EntityGroupV2ExceptConfigEntityAddresses
    With ipv4Addresses block(s).
    IpRanges EntityGroupV2ExceptConfigEntityIpRanges
    With ipv4Ranges block(s).
    ReferenceExtIds []string
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    SelectedBy string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    Type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses object
    With ipv4Addresses block(s).
    ip_ranges object
    With ipv4Ranges block(s).
    reference_ext_ids list(string)
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selected_by string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses EntityGroupV2ExceptConfigEntityAddresses
    With ipv4Addresses block(s).
    ipRanges EntityGroupV2ExceptConfigEntityIpRanges
    With ipv4Ranges block(s).
    referenceExtIds List<String>
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selectedBy String
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type String
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses EntityGroupV2ExceptConfigEntityAddresses
    With ipv4Addresses block(s).
    ipRanges EntityGroupV2ExceptConfigEntityIpRanges
    With ipv4Ranges block(s).
    referenceExtIds string[]
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selectedBy string
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type string
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses EntityGroupV2ExceptConfigEntityAddresses
    With ipv4Addresses block(s).
    ip_ranges EntityGroupV2ExceptConfigEntityIpRanges
    With ipv4Ranges block(s).
    reference_ext_ids Sequence[str]
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selected_by str
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type str
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.
    addresses Property Map
    With ipv4Addresses block(s).
    ipRanges Property Map
    With ipv4Ranges block(s).
    referenceExtIds List<String>
    List of reference external identifiers. Required when selectedBy is EXT_ID.
    selectedBy String
    The selection method for the entity. Valid values: IP_VALUES, EXT_ID, CATEGORY_EXT_ID, LABELS, NAME.
    type String
    The type of entity. Valid values: KUBE_NAMESPACE, SUBNET, VM, VPC, KUBE_SERVICE, KUBE_CLUSTER, KUBE_PODS, ADDRESS_GROUP.

    EntityGroupV2ExceptConfigEntityAddresses, EntityGroupV2ExceptConfigEntityAddressesArgs

    EntityGroupV2ExceptConfigEntityAddressesIpv4Address, EntityGroupV2ExceptConfigEntityAddressesIpv4AddressArgs

    Value string
    IPv4 address value.
    PrefixLength int
    Prefix length.
    Value string
    IPv4 address value.
    PrefixLength int
    Prefix length.
    value string
    IPv4 address value.
    prefix_length number
    Prefix length.
    value String
    IPv4 address value.
    prefixLength Integer
    Prefix length.
    value string
    IPv4 address value.
    prefixLength number
    Prefix length.
    value str
    IPv4 address value.
    prefix_length int
    Prefix length.
    value String
    IPv4 address value.
    prefixLength Number
    Prefix length.

    EntityGroupV2ExceptConfigEntityIpRanges, EntityGroupV2ExceptConfigEntityIpRangesArgs

    EntityGroupV2ExceptConfigEntityIpRangesIpv4Range, EntityGroupV2ExceptConfigEntityIpRangesIpv4RangeArgs

    EndIp string
    End IP of the range.
    StartIp string
    Start IP of the range.
    EndIp string
    End IP of the range.
    StartIp string
    Start IP of the range.
    end_ip string
    End IP of the range.
    start_ip string
    Start IP of the range.
    endIp String
    End IP of the range.
    startIp String
    Start IP of the range.
    endIp string
    End IP of the range.
    startIp string
    Start IP of the range.
    end_ip str
    End IP of the range.
    start_ip str
    Start IP of the range.
    endIp String
    End IP of the range.
    startIp String
    Start IP of the range.
    Href string
    Rel string
    Href string
    Rel string
    href string
    rel string
    href String
    rel String
    href string
    rel string
    href str
    rel str
    href String
    rel String

    Import

    Entity Group can be imported using the entity group uuid entityGroupUUID (ext_id in v4 terms). eg,

    // create its configuration in the root module. For example: resource “nutanix.EntityGroupV2” “importEntityGroup”{}

    // execute the below command.

    $ pulumi import nutanix:index/entityGroupV2:EntityGroupV2 import_entity_group <entityGroupUUID>
    

    See detailed information in Nutanix Entity Groups V4.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Viewing docs for Nutanix v0.16.0
    published on Tuesday, May 26, 2026 by Piers Karsenbarg

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial