Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
published on Tuesday, May 26, 2026 by Piers Karsenbarg
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
published on Tuesday, May 26, 2026 by Piers Karsenbarg
Fetches a single entity group by its external identifier (ext_id). Use this data source when you know the entity group UUID and need its attributes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
// Fetch by known ext_id
const example = nutanix.getEntityGroupV2({
extId: "00000000-0000-0000-0000-000000000000",
});
// Fetch entity group created by a resource
const byId = nutanix.getEntityGroupV2({
extId: myGroup.id,
});
import pulumi
import pulumi_nutanix as nutanix
# Fetch by known ext_id
example = nutanix.get_entity_group_v2(ext_id="00000000-0000-0000-0000-000000000000")
# Fetch entity group created by a resource
by_id = nutanix.get_entity_group_v2(ext_id=my_group["id"])
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 {
// Fetch by known ext_id
_, err := nutanix.GetEntityGroupV2(ctx, &nutanix.LookupEntityGroupV2Args{
ExtId: "00000000-0000-0000-0000-000000000000",
}, nil)
if err != nil {
return err
}
// Fetch entity group created by a resource
_, err = nutanix.GetEntityGroupV2(ctx, &nutanix.LookupEntityGroupV2Args{
ExtId: myGroup.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
// Fetch by known ext_id
var example = Nutanix.GetEntityGroupV2.Invoke(new()
{
ExtId = "00000000-0000-0000-0000-000000000000",
});
// Fetch entity group created by a resource
var byId = Nutanix.GetEntityGroupV2.Invoke(new()
{
ExtId = myGroup.Id,
});
});
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.GetEntityGroupV2Args;
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) {
// Fetch by known ext_id
final var example = NutanixFunctions.getEntityGroupV2(GetEntityGroupV2Args.builder()
.extId("00000000-0000-0000-0000-000000000000")
.build());
// Fetch entity group created by a resource
final var byId = NutanixFunctions.getEntityGroupV2(GetEntityGroupV2Args.builder()
.extId(myGroup.id())
.build());
}
}
variables:
# Fetch by known ext_id
example:
fn::invoke:
function: nutanix:getEntityGroupV2
arguments:
extId: 00000000-0000-0000-0000-000000000000
# Fetch entity group created by a resource
byId:
fn::invoke:
function: nutanix:getEntityGroupV2
arguments:
extId: ${myGroup.id}
pulumi {
required_providers {
nutanix = {
source = "pulumi/nutanix"
}
}
}
data "nutanix_getentitygroupv2" "example" {
ext_id = "00000000-0000-0000-0000-000000000000"
}
data "nutanix_getentitygroupv2" "byId" {
ext_id = myGroup.id
}
# Fetch by known ext_id
# Fetch entity group created by a resource
Using getEntityGroupV2
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 getEntityGroupV2(args: GetEntityGroupV2Args, opts?: InvokeOptions): Promise<GetEntityGroupV2Result>
function getEntityGroupV2Output(args: GetEntityGroupV2OutputArgs, opts?: InvokeOptions): Output<GetEntityGroupV2Result>def get_entity_group_v2(ext_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEntityGroupV2Result
def get_entity_group_v2_output(ext_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEntityGroupV2Result]func LookupEntityGroupV2(ctx *Context, args *LookupEntityGroupV2Args, opts ...InvokeOption) (*LookupEntityGroupV2Result, error)
func LookupEntityGroupV2Output(ctx *Context, args *LookupEntityGroupV2OutputArgs, opts ...InvokeOption) LookupEntityGroupV2ResultOutput> Note: This function is named LookupEntityGroupV2 in the Go SDK.
public static class GetEntityGroupV2
{
public static Task<GetEntityGroupV2Result> InvokeAsync(GetEntityGroupV2Args args, InvokeOptions? opts = null)
public static Output<GetEntityGroupV2Result> Invoke(GetEntityGroupV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEntityGroupV2Result> getEntityGroupV2(GetEntityGroupV2Args args, InvokeOptions options)
public static Output<GetEntityGroupV2Result> getEntityGroupV2(GetEntityGroupV2Args args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getEntityGroupV2:getEntityGroupV2
arguments:
# arguments dictionarydata "nutanix_getentitygroupv2" "name" {
# arguments
}The following arguments are supported:
- Ext
Id string - The external identifier (UUID) of the entity group.
- Ext
Id string - The external identifier (UUID) of the entity group.
- ext_
id string - The external identifier (UUID) of the entity group.
- ext
Id String - The external identifier (UUID) of the entity group.
- ext
Id string - The external identifier (UUID) of the entity group.
- ext_
id str - The external identifier (UUID) of the entity group.
- ext
Id String - The external identifier (UUID) of the entity group.
getEntityGroupV2 Result
The following output properties are available:
- Allowed
Configs List<PiersKarsenbarg. Nutanix. Outputs. Get Entity Group V2Allowed Config> - 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
Configs List<PiersKarsenbarg. Nutanix. Outputs. Get Entity Group V2Except Config> - Configuration of except entities in the Entity Group.
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The timestamp when the Entity Group was last updated.
- Links
List<Piers
Karsenbarg. Nutanix. Outputs. Get Entity Group V2Link> - A HATEOAS style link for the response.
- Name string
- A short identifier of an Entity Group.
- Owner
Ext stringId - The external identifier of the user who created the Entity Group.
- Policy
Ext List<string>Ids - Mapping of entity group to the list of policy external identifiers.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- Allowed
Configs []GetEntity Group V2Allowed Config - 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
Configs []GetEntity Group V2Except Config - Configuration of except entities in the Entity Group.
- Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Update stringTime - The timestamp when the Entity Group was last updated.
- Links
[]Get
Entity Group V2Link - A HATEOAS style link for the response.
- Name string
- A short identifier of an Entity Group.
- Owner
Ext stringId - The external identifier of the user who created the Entity Group.
- Policy
Ext []stringIds - Mapping of entity group to the list of policy external identifiers.
- Tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- allowed_
configs list(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_
configs list(object) - Configuration of except entities in the Entity Group.
- ext_
id string - A globally unique identifier of an instance that is suitable for external consumption.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
update_ stringtime - 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_ stringid - The external identifier of the user who created the Entity Group.
- policy_
ext_ list(string)ids - Mapping of entity group to the list of policy external identifiers.
- tenant_
id string - A globally unique identifier that represents the tenant that owns this entity.
- allowed
Configs List<GetEntity Group V2Allowed Config> - 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
Configs List<GetEntity Group V2Except Config> - Configuration of except entities in the Entity Group.
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - The timestamp when the Entity Group was last updated.
- links
List<Get
Entity Group V2Link> - A HATEOAS style link for the response.
- name String
- A short identifier of an Entity Group.
- owner
Ext StringId - The external identifier of the user who created the Entity Group.
- policy
Ext List<String>Ids - Mapping of entity group to the list of policy external identifiers.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
- allowed
Configs GetEntity Group V2Allowed Config[] - 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
Configs GetEntity Group V2Except Config[] - Configuration of except entities in the Entity Group.
- ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Update stringTime - The timestamp when the Entity Group was last updated.
- links
Get
Entity Group V2Link[] - A HATEOAS style link for the response.
- name string
- A short identifier of an Entity Group.
- owner
Ext stringId - The external identifier of the user who created the Entity Group.
- policy
Ext string[]Ids - Mapping of entity group to the list of policy external identifiers.
- tenant
Id string - A globally unique identifier that represents the tenant that owns this entity.
- allowed_
configs Sequence[GetEntity Group V2Allowed Config] - 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_
configs Sequence[GetEntity Group V2Except Config] - Configuration of except entities in the Entity Group.
- ext_
id str - A globally unique identifier of an instance that is suitable for external consumption.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
update_ strtime - The timestamp when the Entity Group was last updated.
- links
Sequence[Get
Entity Group V2Link] - A HATEOAS style link for the response.
- name str
- A short identifier of an Entity Group.
- owner_
ext_ strid - The external identifier of the user who created the Entity Group.
- policy_
ext_ Sequence[str]ids - Mapping of entity group to the list of policy external identifiers.
- tenant_
id str - A globally unique identifier that represents the tenant that owns this entity.
- allowed
Configs List<Property Map> - 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
Configs List<Property Map> - Configuration of except entities in the Entity Group.
- ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Update StringTime - 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.
- owner
Ext StringId - The external identifier of the user who created the Entity Group.
- policy
Ext List<String>Ids - Mapping of entity group to the list of policy external identifiers.
- tenant
Id String - A globally unique identifier that represents the tenant that owns this entity.
Supporting Types
GetEntityGroupV2AllowedConfig
- Entities
List<Piers
Karsenbarg. Nutanix. Inputs. Get Entity Group V2Allowed Config Entity> - List of except entities. Each entity may contain:
- Entities
[]Get
Entity Group V2Allowed Config Entity - List of except entities. Each entity may contain:
- entities list(object)
- List of except entities. Each entity may contain:
- entities
List<Get
Entity Group V2Allowed Config Entity> - List of except entities. Each entity may contain:
- entities
Get
Entity Group V2Allowed Config Entity[] - List of except entities. Each entity may contain:
- entities
Sequence[Get
Entity Group V2Allowed Config Entity] - List of except entities. Each entity may contain:
- entities List<Property Map>
- List of except entities. Each entity may contain:
GetEntityGroupV2AllowedConfigEntity
- Addresses
List<Piers
Karsenbarg. Nutanix. Inputs. Get Entity Group V2Allowed Config Entity Address> - With
ipv4Addresses(value, prefix_length). - Ip
Ranges List<PiersKarsenbarg. Nutanix. Inputs. Get Entity Group V2Allowed Config Entity Ip Range> - With
ipv4Ranges(start_ip, end_ip). - Kube
Entities List<string> - List of kube entities.
- Reference
Ext List<string>Ids - List of reference external identifiers.
- Selected
By string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- Type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- Addresses
[]Get
Entity Group V2Allowed Config Entity Address - With
ipv4Addresses(value, prefix_length). - Ip
Ranges []GetEntity Group V2Allowed Config Entity Ip Range - With
ipv4Ranges(start_ip, end_ip). - Kube
Entities []string - List of kube entities.
- Reference
Ext []stringIds - List of reference external identifiers.
- Selected
By string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- Type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses list(object)
- With
ipv4Addresses(value, prefix_length). - ip_
ranges list(object) - With
ipv4Ranges(start_ip, end_ip). - kube_
entities list(string) - List of kube entities.
- reference_
ext_ list(string)ids - List of reference external identifiers.
- selected_
by string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses
List<Get
Entity Group V2Allowed Config Entity Address> - With
ipv4Addresses(value, prefix_length). - ip
Ranges List<GetEntity Group V2Allowed Config Entity Ip Range> - With
ipv4Ranges(start_ip, end_ip). - kube
Entities List<String> - List of kube entities.
- reference
Ext List<String>Ids - List of reference external identifiers.
- selected
By String - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type String
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses
Get
Entity Group V2Allowed Config Entity Address[] - With
ipv4Addresses(value, prefix_length). - ip
Ranges GetEntity Group V2Allowed Config Entity Ip Range[] - With
ipv4Ranges(start_ip, end_ip). - kube
Entities string[] - List of kube entities.
- reference
Ext string[]Ids - List of reference external identifiers.
- selected
By string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses
Sequence[Get
Entity Group V2Allowed Config Entity Address] - With
ipv4Addresses(value, prefix_length). - ip_
ranges Sequence[GetEntity Group V2Allowed Config Entity Ip Range] - With
ipv4Ranges(start_ip, end_ip). - kube_
entities Sequence[str] - List of kube entities.
- reference_
ext_ Sequence[str]ids - List of reference external identifiers.
- selected_
by str - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type str
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses List<Property Map>
- With
ipv4Addresses(value, prefix_length). - ip
Ranges List<Property Map> - With
ipv4Ranges(start_ip, end_ip). - kube
Entities List<String> - List of kube entities.
- reference
Ext List<String>Ids - List of reference external identifiers.
- selected
By String - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type String
- The type of entity (e.g. VM, ADDRESS_GROUP).
GetEntityGroupV2AllowedConfigEntityAddress
GetEntityGroupV2AllowedConfigEntityAddressIpv4Address
- Prefix
Length int - Value string
- Prefix
Length int - Value string
- prefix_
length number - value string
- prefix
Length Integer - value String
- prefix
Length number - value string
- prefix_
length int - value str
- prefix
Length Number - value String
GetEntityGroupV2AllowedConfigEntityIpRange
GetEntityGroupV2AllowedConfigEntityIpRangeIpv4Range
GetEntityGroupV2ExceptConfig
- Entities
List<Piers
Karsenbarg. Nutanix. Inputs. Get Entity Group V2Except Config Entity> - List of except entities. Each entity may contain:
- Entities
[]Get
Entity Group V2Except Config Entity - List of except entities. Each entity may contain:
- entities list(object)
- List of except entities. Each entity may contain:
- entities
List<Get
Entity Group V2Except Config Entity> - List of except entities. Each entity may contain:
- entities
Get
Entity Group V2Except Config Entity[] - List of except entities. Each entity may contain:
- entities
Sequence[Get
Entity Group V2Except Config Entity] - List of except entities. Each entity may contain:
- entities List<Property Map>
- List of except entities. Each entity may contain:
GetEntityGroupV2ExceptConfigEntity
- Addresses
List<Piers
Karsenbarg. Nutanix. Inputs. Get Entity Group V2Except Config Entity Address> - With
ipv4Addresses(value, prefix_length). - Ip
Ranges List<PiersKarsenbarg. Nutanix. Inputs. Get Entity Group V2Except Config Entity Ip Range> - With
ipv4Ranges(start_ip, end_ip). - Reference
Ext List<string>Ids - List of reference external identifiers.
- Selected
By string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- Type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- Addresses
[]Get
Entity Group V2Except Config Entity Address - With
ipv4Addresses(value, prefix_length). - Ip
Ranges []GetEntity Group V2Except Config Entity Ip Range - With
ipv4Ranges(start_ip, end_ip). - Reference
Ext []stringIds - List of reference external identifiers.
- Selected
By string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- Type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses list(object)
- With
ipv4Addresses(value, prefix_length). - ip_
ranges list(object) - With
ipv4Ranges(start_ip, end_ip). - reference_
ext_ list(string)ids - List of reference external identifiers.
- selected_
by string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses
List<Get
Entity Group V2Except Config Entity Address> - With
ipv4Addresses(value, prefix_length). - ip
Ranges List<GetEntity Group V2Except Config Entity Ip Range> - With
ipv4Ranges(start_ip, end_ip). - reference
Ext List<String>Ids - List of reference external identifiers.
- selected
By String - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type String
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses
Get
Entity Group V2Except Config Entity Address[] - With
ipv4Addresses(value, prefix_length). - ip
Ranges GetEntity Group V2Except Config Entity Ip Range[] - With
ipv4Ranges(start_ip, end_ip). - reference
Ext string[]Ids - List of reference external identifiers.
- selected
By string - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type string
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses
Sequence[Get
Entity Group V2Except Config Entity Address] - With
ipv4Addresses(value, prefix_length). - ip_
ranges Sequence[GetEntity Group V2Except Config Entity Ip Range] - With
ipv4Ranges(start_ip, end_ip). - reference_
ext_ Sequence[str]ids - List of reference external identifiers.
- selected_
by str - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type str
- The type of entity (e.g. VM, ADDRESS_GROUP).
- addresses List<Property Map>
- With
ipv4Addresses(value, prefix_length). - ip
Ranges List<Property Map> - With
ipv4Ranges(start_ip, end_ip). - reference
Ext List<String>Ids - List of reference external identifiers.
- selected
By String - The selection method (e.g. CATEGORY_EXT_ID, IP_VALUES).
- type String
- The type of entity (e.g. VM, ADDRESS_GROUP).
GetEntityGroupV2ExceptConfigEntityAddress
GetEntityGroupV2ExceptConfigEntityAddressIpv4Address
- Prefix
Length int - Value string
- Prefix
Length int - Value string
- prefix_
length number - value string
- prefix
Length Integer - value String
- prefix
Length number - value string
- prefix_
length int - value str
- prefix
Length Number - value String
GetEntityGroupV2ExceptConfigEntityIpRange
GetEntityGroupV2ExceptConfigEntityIpRangeIpv4Range
GetEntityGroupV2Link
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
published on Tuesday, May 26, 2026 by Piers Karsenbarg