1. Registry
  2. Packages
  3. Nutanix
  4. API Docs
  5. getNetworkSecurityPolicyV2
Viewing docs for Nutanix v0.19.0
published on Friday, Nov 6, 2026 by Piers Karsenbarg
nutanix logo Nutanix
Viewing docs for Nutanix v0.19.0
published on Friday, Nov 6, 2026 by Piers Karsenbarg

    Get a Network Security Policy by ExtID

    Using getNetworkSecurityPolicyV2

    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 getNetworkSecurityPolicyV2(args: GetNetworkSecurityPolicyV2Args, opts?: InvokeOptions): Promise<GetNetworkSecurityPolicyV2Result>
    function getNetworkSecurityPolicyV2Output(args: GetNetworkSecurityPolicyV2OutputArgs, opts?: InvokeOutputOptions): Output<GetNetworkSecurityPolicyV2Result>
    def get_network_security_policy_v2(ext_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetNetworkSecurityPolicyV2Result
    def get_network_security_policy_v2_output(ext_id: pulumi.Input[Optional[str]] = None,
                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetNetworkSecurityPolicyV2Result]
    func LookupNetworkSecurityPolicyV2(ctx *Context, args *LookupNetworkSecurityPolicyV2Args, opts ...InvokeOption) (*LookupNetworkSecurityPolicyV2Result, error)
    func LookupNetworkSecurityPolicyV2Output(ctx *Context, args *LookupNetworkSecurityPolicyV2OutputArgs, opts ...InvokeOption) LookupNetworkSecurityPolicyV2ResultOutput

    > Note: This function is named LookupNetworkSecurityPolicyV2 in the Go SDK.

    public static class GetNetworkSecurityPolicyV2 
    {
        public static Task<GetNetworkSecurityPolicyV2Result> InvokeAsync(GetNetworkSecurityPolicyV2Args args, InvokeOptions? opts = null)
        public static Output<GetNetworkSecurityPolicyV2Result> Invoke(GetNetworkSecurityPolicyV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkSecurityPolicyV2Result> Invoke(GetNetworkSecurityPolicyV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetNetworkSecurityPolicyV2Result> getNetworkSecurityPolicyV2(GetNetworkSecurityPolicyV2Args args, InvokeOptions options)
    public static Output<GetNetworkSecurityPolicyV2Result> getNetworkSecurityPolicyV2(GetNetworkSecurityPolicyV2Args args, InvokeOptions options)
    public static Output<GetNetworkSecurityPolicyV2Result> getNetworkSecurityPolicyV2(GetNetworkSecurityPolicyV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: nutanix:index/getNetworkSecurityPolicyV2:getNetworkSecurityPolicyV2
      arguments:
        # arguments dictionary
    data "nutanix_get_network_security_policy_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    ExtId string
    Network security policy UUID.
    ExtId string
    Network security policy UUID.
    ext_id string
    Network security policy UUID.
    extId String
    Network security policy UUID.
    extId string
    Network security policy UUID.
    ext_id str
    Network security policy UUID.
    extId String
    Network security policy UUID.

    getNetworkSecurityPolicyV2 Result

    The following output properties are available:

    CreatedBy string
    created by.
    CreationTime string
    creation time of NSP
    Description string
    A user defined annotation for a rule.
    ExtId 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.
    IsHitlogEnabled bool
    If Hitlog is enabled.
    IsIpv6TrafficAllowed bool
    If Ipv6 Traffic is allowed.
    IsSharedWithAllProjects bool
    Whether the network security policy is shared with all projects.
    IsSystemDefined bool
    Is system defined NSP
    LastUpdateTime string
    last updated time
    Links List<PiersKarsenbarg.Nutanix.Outputs.GetNetworkSecurityPolicyV2Link>
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    Name string
    A user-defined name for the rule.
    ProjectExtId string
    Project external ID associated with the network security policy.
    Rules List<PiersKarsenbarg.Nutanix.Outputs.GetNetworkSecurityPolicyV2Rule>
    A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
    Scope string
    Defines the scope of the policy. Values include "ALL_VLAN", "ALL_VPC", "VPC_LIST", and "GLOBAL".
    SecuredGroups List<string>
    Uuids of the secured groups in the NSP.
    State string
    Whether the policy is applied or monitored; can be omitted or set null to save the policy without applying or monitoring it.
    TenantId string
    A globally unique identifier that represents the tenant that owns this entity
    Type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    VpcReferences List<string>
    A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
    CreatedBy string
    created by.
    CreationTime string
    creation time of NSP
    Description string
    A user defined annotation for a rule.
    ExtId 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.
    IsHitlogEnabled bool
    If Hitlog is enabled.
    IsIpv6TrafficAllowed bool
    If Ipv6 Traffic is allowed.
    IsSharedWithAllProjects bool
    Whether the network security policy is shared with all projects.
    IsSystemDefined bool
    Is system defined NSP
    LastUpdateTime string
    last updated time
    Links []GetNetworkSecurityPolicyV2Link
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    Name string
    A user-defined name for the rule.
    ProjectExtId string
    Project external ID associated with the network security policy.
    Rules []GetNetworkSecurityPolicyV2Rule
    A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
    Scope string
    Defines the scope of the policy. Values include "ALL_VLAN", "ALL_VPC", "VPC_LIST", and "GLOBAL".
    SecuredGroups []string
    Uuids of the secured groups in the NSP.
    State string
    Whether the policy is applied or monitored; can be omitted or set null to save the policy without applying or monitoring it.
    TenantId string
    A globally unique identifier that represents the tenant that owns this entity
    Type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    VpcReferences []string
    A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
    created_by string
    created by.
    creation_time string
    creation time of NSP
    description string
    A user defined annotation for a rule.
    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.
    is_hitlog_enabled bool
    If Hitlog is enabled.
    is_ipv6_traffic_allowed bool
    If Ipv6 Traffic is allowed.
    is_shared_with_all_projects bool
    Whether the network security policy is shared with all projects.
    is_system_defined bool
    Is system defined NSP
    last_update_time string
    last updated time
    links list(object)
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name string
    A user-defined name for the rule.
    project_ext_id string
    Project external ID associated with the network security policy.
    rules list(object)
    A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
    scope string
    Defines the scope of the policy. Values include "ALL_VLAN", "ALL_VPC", "VPC_LIST", and "GLOBAL".
    secured_groups list(string)
    Uuids of the secured groups in the NSP.
    state string
    Whether the policy is applied or monitored; can be omitted or set null to save the policy without applying or monitoring it.
    tenant_id string
    A globally unique identifier that represents the tenant that owns this entity
    type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    vpc_references list(string)
    A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
    createdBy String
    created by.
    creationTime String
    creation time of NSP
    description String
    A user defined annotation for a rule.
    extId 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.
    isHitlogEnabled Boolean
    If Hitlog is enabled.
    isIpv6TrafficAllowed Boolean
    If Ipv6 Traffic is allowed.
    isSharedWithAllProjects Boolean
    Whether the network security policy is shared with all projects.
    isSystemDefined Boolean
    Is system defined NSP
    lastUpdateTime String
    last updated time
    links List<GetNetworkSecurityPolicyV2Link>
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name String
    A user-defined name for the rule.
    projectExtId String
    Project external ID associated with the network security policy.
    rules List<GetNetworkSecurityPolicyV2Rule>
    A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
    scope String
    Defines the scope of the policy. Values include "ALL_VLAN", "ALL_VPC", "VPC_LIST", and "GLOBAL".
    securedGroups List<String>
    Uuids of the secured groups in the NSP.
    state String
    Whether the policy is applied or monitored; can be omitted or set null to save the policy without applying or monitoring it.
    tenantId String
    A globally unique identifier that represents the tenant that owns this entity
    type String
    Icmp service Type. Ignore this field if Type has to be ANY.
    vpcReferences List<String>
    A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
    createdBy string
    created by.
    creationTime string
    creation time of NSP
    description string
    A user defined annotation for a rule.
    extId 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.
    isHitlogEnabled boolean
    If Hitlog is enabled.
    isIpv6TrafficAllowed boolean
    If Ipv6 Traffic is allowed.
    isSharedWithAllProjects boolean
    Whether the network security policy is shared with all projects.
    isSystemDefined boolean
    Is system defined NSP
    lastUpdateTime string
    last updated time
    links GetNetworkSecurityPolicyV2Link[]
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name string
    A user-defined name for the rule.
    projectExtId string
    Project external ID associated with the network security policy.
    rules GetNetworkSecurityPolicyV2Rule[]
    A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
    scope string
    Defines the scope of the policy. Values include "ALL_VLAN", "ALL_VPC", "VPC_LIST", and "GLOBAL".
    securedGroups string[]
    Uuids of the secured groups in the NSP.
    state string
    Whether the policy is applied or monitored; can be omitted or set null to save the policy without applying or monitoring it.
    tenantId string
    A globally unique identifier that represents the tenant that owns this entity
    type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    vpcReferences string[]
    A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
    created_by str
    created by.
    creation_time str
    creation time of NSP
    description str
    A user defined annotation for a rule.
    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.
    is_hitlog_enabled bool
    If Hitlog is enabled.
    is_ipv6_traffic_allowed bool
    If Ipv6 Traffic is allowed.
    is_shared_with_all_projects bool
    Whether the network security policy is shared with all projects.
    is_system_defined bool
    Is system defined NSP
    last_update_time str
    last updated time
    links Sequence[GetNetworkSecurityPolicyV2Link]
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name str
    A user-defined name for the rule.
    project_ext_id str
    Project external ID associated with the network security policy.
    rules Sequence[GetNetworkSecurityPolicyV2Rule]
    A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
    scope str
    Defines the scope of the policy. Values include "ALL_VLAN", "ALL_VPC", "VPC_LIST", and "GLOBAL".
    secured_groups Sequence[str]
    Uuids of the secured groups in the NSP.
    state str
    Whether the policy is applied or monitored; can be omitted or set null to save the policy without applying or monitoring it.
    tenant_id str
    A globally unique identifier that represents the tenant that owns this entity
    type str
    Icmp service Type. Ignore this field if Type has to be ANY.
    vpc_references Sequence[str]
    A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
    createdBy String
    created by.
    creationTime String
    creation time of NSP
    description String
    A user defined annotation for a rule.
    extId 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.
    isHitlogEnabled Boolean
    If Hitlog is enabled.
    isIpv6TrafficAllowed Boolean
    If Ipv6 Traffic is allowed.
    isSharedWithAllProjects Boolean
    Whether the network security policy is shared with all projects.
    isSystemDefined Boolean
    Is system defined NSP
    lastUpdateTime String
    last updated time
    links List<Property Map>
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name String
    A user-defined name for the rule.
    projectExtId String
    Project external ID associated with the network security policy.
    rules List<Property Map>
    A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
    scope String
    Defines the scope of the policy. Values include "ALL_VLAN", "ALL_VPC", "VPC_LIST", and "GLOBAL".
    securedGroups List<String>
    Uuids of the secured groups in the NSP.
    state String
    Whether the policy is applied or monitored; can be omitted or set null to save the policy without applying or monitoring it.
    tenantId String
    A globally unique identifier that represents the tenant that owns this entity
    type String
    Icmp service Type. Ignore this field if Type has to be ANY.
    vpcReferences List<String>
    A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.

    Supporting Types

    Href string
    • The URL at which the entity described by the link can be accessed.
    Rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    Href string
    • The URL at which the entity described by the link can be accessed.
    Rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href string
    • The URL at which the entity described by the link can be accessed.
    rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href String
    • The URL at which the entity described by the link can be accessed.
    rel String
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href string
    • The URL at which the entity described by the link can be accessed.
    rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href str
    • The URL at which the entity described by the link can be accessed.
    rel str
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href String
    • The URL at which the entity described by the link can be accessed.
    rel String
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.

    GetNetworkSecurityPolicyV2Rule

    Description string
    A user defined annotation for a rule.
    ExtId string
    Network security policy UUID.
    IsLoggingEnabled bool
    Whether hit log is enabled for the rule.
    Links List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleLink>
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    Name string
    A user-defined name for the rule.
    Specs List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpec>
    Multi Environment Isolation Rule Spec.
    Type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    Description string
    A user defined annotation for a rule.
    ExtId string
    Network security policy UUID.
    IsLoggingEnabled bool
    Whether hit log is enabled for the rule.
    Links []GetNetworkSecurityPolicyV2RuleLink
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    Name string
    A user-defined name for the rule.
    Specs []GetNetworkSecurityPolicyV2RuleSpec
    Multi Environment Isolation Rule Spec.
    Type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    description string
    A user defined annotation for a rule.
    ext_id string
    Network security policy UUID.
    is_logging_enabled bool
    Whether hit log is enabled for the rule.
    links list(object)
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name string
    A user-defined name for the rule.
    specs list(object)
    Multi Environment Isolation Rule Spec.
    type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    description String
    A user defined annotation for a rule.
    extId String
    Network security policy UUID.
    isLoggingEnabled Boolean
    Whether hit log is enabled for the rule.
    links List<GetNetworkSecurityPolicyV2RuleLink>
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name String
    A user-defined name for the rule.
    specs List<GetNetworkSecurityPolicyV2RuleSpec>
    Multi Environment Isolation Rule Spec.
    type String
    Icmp service Type. Ignore this field if Type has to be ANY.
    description string
    A user defined annotation for a rule.
    extId string
    Network security policy UUID.
    isLoggingEnabled boolean
    Whether hit log is enabled for the rule.
    links GetNetworkSecurityPolicyV2RuleLink[]
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name string
    A user-defined name for the rule.
    specs GetNetworkSecurityPolicyV2RuleSpec[]
    Multi Environment Isolation Rule Spec.
    type string
    Icmp service Type. Ignore this field if Type has to be ANY.
    description str
    A user defined annotation for a rule.
    ext_id str
    Network security policy UUID.
    is_logging_enabled bool
    Whether hit log is enabled for the rule.
    links Sequence[GetNetworkSecurityPolicyV2RuleLink]
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name str
    A user-defined name for the rule.
    specs Sequence[GetNetworkSecurityPolicyV2RuleSpec]
    Multi Environment Isolation Rule Spec.
    type str
    Icmp service Type. Ignore this field if Type has to be ANY.
    description String
    A user defined annotation for a rule.
    extId String
    Network security policy UUID.
    isLoggingEnabled Boolean
    Whether hit log is enabled for the rule.
    links List<Property Map>
    A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
    name String
    A user-defined name for the rule.
    specs List<Property Map>
    Multi Environment Isolation Rule Spec.
    type String
    Icmp service Type. Ignore this field if Type has to be ANY.
    Href string
    • The URL at which the entity described by the link can be accessed.
    Rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    Href string
    • The URL at which the entity described by the link can be accessed.
    Rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href string
    • The URL at which the entity described by the link can be accessed.
    rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href String
    • The URL at which the entity described by the link can be accessed.
    rel String
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href string
    • The URL at which the entity described by the link can be accessed.
    rel string
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href str
    • The URL at which the entity described by the link can be accessed.
    rel str
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.
    href String
    • The URL at which the entity described by the link can be accessed.
    rel String
    • A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of "self" identifies the URL for the object.

    GetNetworkSecurityPolicyV2RuleSpec

    application_rule_specs list(object)
    Application Rule Spec.
    flex_rule_specs list(object)
    Flex Rule Spec.
    intra_entity_group_rule_specs list(object)
    Intra entity group Rule Spec
    multi_env_isolation_rule_specs list(object)
    Multi Environment Isolation Rule Spec.
    two_env_isolation_rule_specs list(object)
    Two Environment Isolation Rule Spec.
    applicationRuleSpecs List<Property Map>
    Application Rule Spec.
    flexRuleSpecs List<Property Map>
    Flex Rule Spec.
    intraEntityGroupRuleSpecs List<Property Map>
    Intra entity group Rule Spec
    multiEnvIsolationRuleSpecs List<Property Map>
    Multi Environment Isolation Rule Spec.
    twoEnvIsolationRuleSpecs List<Property Map>
    Two Environment Isolation Rule Spec.

    GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpec

    DestAddressGroupReferences List<string>
    A list of address group references.
    DestAllowSpec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    DestCategoryAssociatedEntityType string
    Entity type for the destination category (SUBNET, VM, VPC).
    DestCategoryReferences List<string>
    List of categories that define a set of network endpoints as outbound.
    DestEntityGroupReference string
    Reference to the destination entity group.
    DestSubnets List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecDestSubnet>
    Destination subnet (value, prefix_length).
    IcmpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecIcmpService>
    ICMP type/code specs.
    IsAllProtocolAllowed bool
    Whether traffic is allowed for all protocols.
    NetworkFunctionChainReference string
    A reference to the network function chain in the rule.
    NetworkFunctionReference string
    A reference to the network function.
    SecuredGroupCategoryAssociatedEntityType string
    Entity type for the secured group category (SUBNET, VM, VPC).
    SecuredGroupCategoryReferences List<string>
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    SecuredGroupEntityGroupReference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    ServiceGroupReferences List<string>
    A list of service group references.
    SrcAddressGroupReferences List<string>
    A list of address group references.
    SrcAllowSpec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    SrcCategoryAssociatedEntityType string
    Entity type for the source category (SUBNET, VM, VPC).
    SrcCategoryReferences List<string>
    List of categories that define a set of network endpoints as inbound.
    SrcEntityGroupReference string
    Reference to the source entity group.
    SrcSubnets List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecSrcSubnet>
    Source subnet (value, prefix_length).
    TcpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecTcpService>
    TCP port ranges (start_port, end_port).
    UdpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecUdpService>
    UDP port ranges (start_port, end_port).
    DestAddressGroupReferences []string
    A list of address group references.
    DestAllowSpec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    DestCategoryAssociatedEntityType string
    Entity type for the destination category (SUBNET, VM, VPC).
    DestCategoryReferences []string
    List of categories that define a set of network endpoints as outbound.
    DestEntityGroupReference string
    Reference to the destination entity group.
    DestSubnets []GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecDestSubnet
    Destination subnet (value, prefix_length).
    IcmpServices []GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecIcmpService
    ICMP type/code specs.
    IsAllProtocolAllowed bool
    Whether traffic is allowed for all protocols.
    NetworkFunctionChainReference string
    A reference to the network function chain in the rule.
    NetworkFunctionReference string
    A reference to the network function.
    SecuredGroupCategoryAssociatedEntityType string
    Entity type for the secured group category (SUBNET, VM, VPC).
    SecuredGroupCategoryReferences []string
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    SecuredGroupEntityGroupReference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    ServiceGroupReferences []string
    A list of service group references.
    SrcAddressGroupReferences []string
    A list of address group references.
    SrcAllowSpec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    SrcCategoryAssociatedEntityType string
    Entity type for the source category (SUBNET, VM, VPC).
    SrcCategoryReferences []string
    List of categories that define a set of network endpoints as inbound.
    SrcEntityGroupReference string
    Reference to the source entity group.
    SrcSubnets []GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecSrcSubnet
    Source subnet (value, prefix_length).
    TcpServices []GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecTcpService
    TCP port ranges (start_port, end_port).
    UdpServices []GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecUdpService
    UDP port ranges (start_port, end_port).
    dest_address_group_references list(string)
    A list of address group references.
    dest_allow_spec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    dest_category_associated_entity_type string
    Entity type for the destination category (SUBNET, VM, VPC).
    dest_category_references list(string)
    List of categories that define a set of network endpoints as outbound.
    dest_entity_group_reference string
    Reference to the destination entity group.
    dest_subnets list(object)
    Destination subnet (value, prefix_length).
    icmp_services list(object)
    ICMP type/code specs.
    is_all_protocol_allowed bool
    Whether traffic is allowed for all protocols.
    network_function_chain_reference string
    A reference to the network function chain in the rule.
    network_function_reference string
    A reference to the network function.
    secured_group_category_associated_entity_type string
    Entity type for the secured group category (SUBNET, VM, VPC).
    secured_group_category_references list(string)
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    secured_group_entity_group_reference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    service_group_references list(string)
    A list of service group references.
    src_address_group_references list(string)
    A list of address group references.
    src_allow_spec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    src_category_associated_entity_type string
    Entity type for the source category (SUBNET, VM, VPC).
    src_category_references list(string)
    List of categories that define a set of network endpoints as inbound.
    src_entity_group_reference string
    Reference to the source entity group.
    src_subnets list(object)
    Source subnet (value, prefix_length).
    tcp_services list(object)
    TCP port ranges (start_port, end_port).
    udp_services list(object)
    UDP port ranges (start_port, end_port).
    destAddressGroupReferences List<String>
    A list of address group references.
    destAllowSpec String
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    destCategoryAssociatedEntityType String
    Entity type for the destination category (SUBNET, VM, VPC).
    destCategoryReferences List<String>
    List of categories that define a set of network endpoints as outbound.
    destEntityGroupReference String
    Reference to the destination entity group.
    destSubnets List<GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecDestSubnet>
    Destination subnet (value, prefix_length).
    icmpServices List<GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecIcmpService>
    ICMP type/code specs.
    isAllProtocolAllowed Boolean
    Whether traffic is allowed for all protocols.
    networkFunctionChainReference String
    A reference to the network function chain in the rule.
    networkFunctionReference String
    A reference to the network function.
    securedGroupCategoryAssociatedEntityType String
    Entity type for the secured group category (SUBNET, VM, VPC).
    securedGroupCategoryReferences List<String>
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    securedGroupEntityGroupReference String
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    serviceGroupReferences List<String>
    A list of service group references.
    srcAddressGroupReferences List<String>
    A list of address group references.
    srcAllowSpec String
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    srcCategoryAssociatedEntityType String
    Entity type for the source category (SUBNET, VM, VPC).
    srcCategoryReferences List<String>
    List of categories that define a set of network endpoints as inbound.
    srcEntityGroupReference String
    Reference to the source entity group.
    srcSubnets List<GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecSrcSubnet>
    Source subnet (value, prefix_length).
    tcpServices List<GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecTcpService>
    TCP port ranges (start_port, end_port).
    udpServices List<GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecUdpService>
    UDP port ranges (start_port, end_port).
    destAddressGroupReferences string[]
    A list of address group references.
    destAllowSpec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    destCategoryAssociatedEntityType string
    Entity type for the destination category (SUBNET, VM, VPC).
    destCategoryReferences string[]
    List of categories that define a set of network endpoints as outbound.
    destEntityGroupReference string
    Reference to the destination entity group.
    destSubnets GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecDestSubnet[]
    Destination subnet (value, prefix_length).
    icmpServices GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecIcmpService[]
    ICMP type/code specs.
    isAllProtocolAllowed boolean
    Whether traffic is allowed for all protocols.
    networkFunctionChainReference string
    A reference to the network function chain in the rule.
    networkFunctionReference string
    A reference to the network function.
    securedGroupCategoryAssociatedEntityType string
    Entity type for the secured group category (SUBNET, VM, VPC).
    securedGroupCategoryReferences string[]
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    securedGroupEntityGroupReference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    serviceGroupReferences string[]
    A list of service group references.
    srcAddressGroupReferences string[]
    A list of address group references.
    srcAllowSpec string
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    srcCategoryAssociatedEntityType string
    Entity type for the source category (SUBNET, VM, VPC).
    srcCategoryReferences string[]
    List of categories that define a set of network endpoints as inbound.
    srcEntityGroupReference string
    Reference to the source entity group.
    srcSubnets GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecSrcSubnet[]
    Source subnet (value, prefix_length).
    tcpServices GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecTcpService[]
    TCP port ranges (start_port, end_port).
    udpServices GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecUdpService[]
    UDP port ranges (start_port, end_port).
    dest_address_group_references Sequence[str]
    A list of address group references.
    dest_allow_spec str
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    dest_category_associated_entity_type str
    Entity type for the destination category (SUBNET, VM, VPC).
    dest_category_references Sequence[str]
    List of categories that define a set of network endpoints as outbound.
    dest_entity_group_reference str
    Reference to the destination entity group.
    dest_subnets Sequence[GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecDestSubnet]
    Destination subnet (value, prefix_length).
    icmp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecIcmpService]
    ICMP type/code specs.
    is_all_protocol_allowed bool
    Whether traffic is allowed for all protocols.
    network_function_chain_reference str
    A reference to the network function chain in the rule.
    network_function_reference str
    A reference to the network function.
    secured_group_category_associated_entity_type str
    Entity type for the secured group category (SUBNET, VM, VPC).
    secured_group_category_references Sequence[str]
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    secured_group_entity_group_reference str
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    service_group_references Sequence[str]
    A list of service group references.
    src_address_group_references Sequence[str]
    A list of address group references.
    src_allow_spec str
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    src_category_associated_entity_type str
    Entity type for the source category (SUBNET, VM, VPC).
    src_category_references Sequence[str]
    List of categories that define a set of network endpoints as inbound.
    src_entity_group_reference str
    Reference to the source entity group.
    src_subnets Sequence[GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecSrcSubnet]
    Source subnet (value, prefix_length).
    tcp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecTcpService]
    TCP port ranges (start_port, end_port).
    udp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecUdpService]
    UDP port ranges (start_port, end_port).
    destAddressGroupReferences List<String>
    A list of address group references.
    destAllowSpec String
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    destCategoryAssociatedEntityType String
    Entity type for the destination category (SUBNET, VM, VPC).
    destCategoryReferences List<String>
    List of categories that define a set of network endpoints as outbound.
    destEntityGroupReference String
    Reference to the destination entity group.
    destSubnets List<Property Map>
    Destination subnet (value, prefix_length).
    icmpServices List<Property Map>
    ICMP type/code specs.
    isAllProtocolAllowed Boolean
    Whether traffic is allowed for all protocols.
    networkFunctionChainReference String
    A reference to the network function chain in the rule.
    networkFunctionReference String
    A reference to the network function.
    securedGroupCategoryAssociatedEntityType String
    Entity type for the secured group category (SUBNET, VM, VPC).
    securedGroupCategoryReferences List<String>
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    securedGroupEntityGroupReference String
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    serviceGroupReferences List<String>
    A list of service group references.
    srcAddressGroupReferences List<String>
    A list of address group references.
    srcAllowSpec String
    A specification to how allow mode traffic should be applied, either ALL or NONE.
    srcCategoryAssociatedEntityType String
    Entity type for the source category (SUBNET, VM, VPC).
    srcCategoryReferences List<String>
    List of categories that define a set of network endpoints as inbound.
    srcEntityGroupReference String
    Reference to the source entity group.
    srcSubnets List<Property Map>
    Source subnet (value, prefix_length).
    tcpServices List<Property Map>
    TCP port ranges (start_port, end_port).
    udpServices List<Property Map>
    UDP port ranges (start_port, end_port).

    GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecDestSubnet

    prefix_length number
    value string
    prefixLength Integer
    value String
    prefixLength number
    value string
    prefixLength Number
    value String

    GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecIcmpService

    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Integer
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Integer
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed boolean
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Number
    Icmp service Type. Ignore this field if Type has to be ANY.

    GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecSrcSubnet

    prefix_length number
    value string
    prefixLength Integer
    value String
    prefixLength number
    value string
    prefixLength Number
    value String

    GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecTcpService

    EndPort int
    end port
    StartPort int
    start port
    EndPort int
    end port
    StartPort int
    start port
    end_port number
    end port
    start_port number
    start port
    endPort Integer
    end port
    startPort Integer
    start port
    endPort number
    end port
    startPort number
    start port
    end_port int
    end port
    start_port int
    start port
    endPort Number
    end port
    startPort Number
    start port

    GetNetworkSecurityPolicyV2RuleSpecApplicationRuleSpecUdpService

    EndPort int
    end port
    StartPort int
    start port
    EndPort int
    end port
    StartPort int
    start port
    end_port number
    end port
    start_port number
    start port
    endPort Integer
    end port
    startPort Integer
    start port
    endPort number
    end port
    startPort number
    start port
    end_port int
    end port
    start_port int
    start port
    endPort Number
    end port
    startPort Number
    start port

    GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpec

    Action string
    Action for the flex rule (ALLOW, DENY, REJECT).
    AppliedToEntityGroupReferences List<string>
    Entity group references to which the flex rule is applied.
    DestEntityGroupReferences List<string>
    Destination entity group references.
    DestSubnets List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecDestSubnet>
    Destination subnet (value, prefix_length).
    Direction string
    Direction of traffic (IN, OUT, IN_OUT).
    IcmpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpService>
    ICMP type/code specs.
    Icmpv6Services List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpv6Service>
    ICMPv6 type/code specs.
    IpVersion string
    IP version scope (IPV4, IPV6, IPV4_IPV6).
    IsAllProtocolAllowed bool
    Whether traffic is allowed for all protocols.
    IsSystemRule bool
    Whether the flex rule is system-defined.
    NetworkFunctionReference string
    A reference to the network function.
    Priority int
    Priority for the flex rule.
    ServiceGroupReferences List<string>
    A list of service group references.
    ShouldAllowAnyDst bool
    Whether the rule allows all destinations.
    ShouldAllowAnySrc bool
    Whether the rule allows all sources.
    SrcEntityGroupReferences List<string>
    Source entity group references.
    SrcSubnets List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecSrcSubnet>
    Source subnet (value, prefix_length).
    TcpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecTcpService>
    TCP port ranges (start_port, end_port).
    UdpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecUdpService>
    UDP port ranges (start_port, end_port).
    Action string
    Action for the flex rule (ALLOW, DENY, REJECT).
    AppliedToEntityGroupReferences []string
    Entity group references to which the flex rule is applied.
    DestEntityGroupReferences []string
    Destination entity group references.
    DestSubnets []GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecDestSubnet
    Destination subnet (value, prefix_length).
    Direction string
    Direction of traffic (IN, OUT, IN_OUT).
    IcmpServices []GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpService
    ICMP type/code specs.
    Icmpv6Services []GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpv6Service
    ICMPv6 type/code specs.
    IpVersion string
    IP version scope (IPV4, IPV6, IPV4_IPV6).
    IsAllProtocolAllowed bool
    Whether traffic is allowed for all protocols.
    IsSystemRule bool
    Whether the flex rule is system-defined.
    NetworkFunctionReference string
    A reference to the network function.
    Priority int
    Priority for the flex rule.
    ServiceGroupReferences []string
    A list of service group references.
    ShouldAllowAnyDst bool
    Whether the rule allows all destinations.
    ShouldAllowAnySrc bool
    Whether the rule allows all sources.
    SrcEntityGroupReferences []string
    Source entity group references.
    SrcSubnets []GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecSrcSubnet
    Source subnet (value, prefix_length).
    TcpServices []GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecTcpService
    TCP port ranges (start_port, end_port).
    UdpServices []GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecUdpService
    UDP port ranges (start_port, end_port).
    action string
    Action for the flex rule (ALLOW, DENY, REJECT).
    applied_to_entity_group_references list(string)
    Entity group references to which the flex rule is applied.
    dest_entity_group_references list(string)
    Destination entity group references.
    dest_subnets list(object)
    Destination subnet (value, prefix_length).
    direction string
    Direction of traffic (IN, OUT, IN_OUT).
    icmp_services list(object)
    ICMP type/code specs.
    icmpv6_services list(object)
    ICMPv6 type/code specs.
    ip_version string
    IP version scope (IPV4, IPV6, IPV4_IPV6).
    is_all_protocol_allowed bool
    Whether traffic is allowed for all protocols.
    is_system_rule bool
    Whether the flex rule is system-defined.
    network_function_reference string
    A reference to the network function.
    priority number
    Priority for the flex rule.
    service_group_references list(string)
    A list of service group references.
    should_allow_any_dst bool
    Whether the rule allows all destinations.
    should_allow_any_src bool
    Whether the rule allows all sources.
    src_entity_group_references list(string)
    Source entity group references.
    src_subnets list(object)
    Source subnet (value, prefix_length).
    tcp_services list(object)
    TCP port ranges (start_port, end_port).
    udp_services list(object)
    UDP port ranges (start_port, end_port).
    action String
    Action for the flex rule (ALLOW, DENY, REJECT).
    appliedToEntityGroupReferences List<String>
    Entity group references to which the flex rule is applied.
    destEntityGroupReferences List<String>
    Destination entity group references.
    destSubnets List<GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecDestSubnet>
    Destination subnet (value, prefix_length).
    direction String
    Direction of traffic (IN, OUT, IN_OUT).
    icmpServices List<GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpService>
    ICMP type/code specs.
    icmpv6Services List<GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpv6Service>
    ICMPv6 type/code specs.
    ipVersion String
    IP version scope (IPV4, IPV6, IPV4_IPV6).
    isAllProtocolAllowed Boolean
    Whether traffic is allowed for all protocols.
    isSystemRule Boolean
    Whether the flex rule is system-defined.
    networkFunctionReference String
    A reference to the network function.
    priority Integer
    Priority for the flex rule.
    serviceGroupReferences List<String>
    A list of service group references.
    shouldAllowAnyDst Boolean
    Whether the rule allows all destinations.
    shouldAllowAnySrc Boolean
    Whether the rule allows all sources.
    srcEntityGroupReferences List<String>
    Source entity group references.
    srcSubnets List<GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecSrcSubnet>
    Source subnet (value, prefix_length).
    tcpServices List<GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecTcpService>
    TCP port ranges (start_port, end_port).
    udpServices List<GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecUdpService>
    UDP port ranges (start_port, end_port).
    action string
    Action for the flex rule (ALLOW, DENY, REJECT).
    appliedToEntityGroupReferences string[]
    Entity group references to which the flex rule is applied.
    destEntityGroupReferences string[]
    Destination entity group references.
    destSubnets GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecDestSubnet[]
    Destination subnet (value, prefix_length).
    direction string
    Direction of traffic (IN, OUT, IN_OUT).
    icmpServices GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpService[]
    ICMP type/code specs.
    icmpv6Services GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpv6Service[]
    ICMPv6 type/code specs.
    ipVersion string
    IP version scope (IPV4, IPV6, IPV4_IPV6).
    isAllProtocolAllowed boolean
    Whether traffic is allowed for all protocols.
    isSystemRule boolean
    Whether the flex rule is system-defined.
    networkFunctionReference string
    A reference to the network function.
    priority number
    Priority for the flex rule.
    serviceGroupReferences string[]
    A list of service group references.
    shouldAllowAnyDst boolean
    Whether the rule allows all destinations.
    shouldAllowAnySrc boolean
    Whether the rule allows all sources.
    srcEntityGroupReferences string[]
    Source entity group references.
    srcSubnets GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecSrcSubnet[]
    Source subnet (value, prefix_length).
    tcpServices GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecTcpService[]
    TCP port ranges (start_port, end_port).
    udpServices GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecUdpService[]
    UDP port ranges (start_port, end_port).
    action str
    Action for the flex rule (ALLOW, DENY, REJECT).
    applied_to_entity_group_references Sequence[str]
    Entity group references to which the flex rule is applied.
    dest_entity_group_references Sequence[str]
    Destination entity group references.
    dest_subnets Sequence[GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecDestSubnet]
    Destination subnet (value, prefix_length).
    direction str
    Direction of traffic (IN, OUT, IN_OUT).
    icmp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpService]
    ICMP type/code specs.
    icmpv6_services Sequence[GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpv6Service]
    ICMPv6 type/code specs.
    ip_version str
    IP version scope (IPV4, IPV6, IPV4_IPV6).
    is_all_protocol_allowed bool
    Whether traffic is allowed for all protocols.
    is_system_rule bool
    Whether the flex rule is system-defined.
    network_function_reference str
    A reference to the network function.
    priority int
    Priority for the flex rule.
    service_group_references Sequence[str]
    A list of service group references.
    should_allow_any_dst bool
    Whether the rule allows all destinations.
    should_allow_any_src bool
    Whether the rule allows all sources.
    src_entity_group_references Sequence[str]
    Source entity group references.
    src_subnets Sequence[GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecSrcSubnet]
    Source subnet (value, prefix_length).
    tcp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecTcpService]
    TCP port ranges (start_port, end_port).
    udp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecUdpService]
    UDP port ranges (start_port, end_port).
    action String
    Action for the flex rule (ALLOW, DENY, REJECT).
    appliedToEntityGroupReferences List<String>
    Entity group references to which the flex rule is applied.
    destEntityGroupReferences List<String>
    Destination entity group references.
    destSubnets List<Property Map>
    Destination subnet (value, prefix_length).
    direction String
    Direction of traffic (IN, OUT, IN_OUT).
    icmpServices List<Property Map>
    ICMP type/code specs.
    icmpv6Services List<Property Map>
    ICMPv6 type/code specs.
    ipVersion String
    IP version scope (IPV4, IPV6, IPV4_IPV6).
    isAllProtocolAllowed Boolean
    Whether traffic is allowed for all protocols.
    isSystemRule Boolean
    Whether the flex rule is system-defined.
    networkFunctionReference String
    A reference to the network function.
    priority Number
    Priority for the flex rule.
    serviceGroupReferences List<String>
    A list of service group references.
    shouldAllowAnyDst Boolean
    Whether the rule allows all destinations.
    shouldAllowAnySrc Boolean
    Whether the rule allows all sources.
    srcEntityGroupReferences List<String>
    Source entity group references.
    srcSubnets List<Property Map>
    Source subnet (value, prefix_length).
    tcpServices List<Property Map>
    TCP port ranges (start_port, end_port).
    udpServices List<Property Map>
    UDP port ranges (start_port, end_port).

    GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecDestSubnet

    prefix_length number
    value string
    prefixLength Integer
    value String
    prefixLength number
    value string
    prefixLength Number
    value String

    GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpService

    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Integer
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Integer
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed boolean
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Number
    Icmp service Type. Ignore this field if Type has to be ANY.

    GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecIcmpv6Service

    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Integer
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Integer
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed boolean
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Number
    Icmp service Type. Ignore this field if Type has to be ANY.

    GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecSrcSubnet

    prefix_length number
    value string
    prefixLength Integer
    value String
    prefixLength number
    value string
    prefixLength Number
    value String

    GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecTcpService

    EndPort int
    end port
    StartPort int
    start port
    EndPort int
    end port
    StartPort int
    start port
    end_port number
    end port
    start_port number
    start port
    endPort Integer
    end port
    startPort Integer
    start port
    endPort number
    end port
    startPort number
    start port
    end_port int
    end port
    start_port int
    start port
    endPort Number
    end port
    startPort Number
    start port

    GetNetworkSecurityPolicyV2RuleSpecFlexRuleSpecUdpService

    EndPort int
    end port
    StartPort int
    start port
    EndPort int
    end port
    StartPort int
    start port
    end_port number
    end port
    start_port number
    start port
    endPort Integer
    end port
    startPort Integer
    start port
    endPort number
    end port
    startPort number
    start port
    end_port int
    end port
    start_port int
    start port
    endPort Number
    end port
    startPort Number
    start port

    GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpec

    IcmpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecIcmpService>
    ICMP type/code specs.
    SecuredGroupAction string
    List of secured group action.
    SecuredGroupCategoryAssociatedEntityType string
    Entity type for the secured group category (SUBNET, VM, VPC).
    SecuredGroupCategoryReferences List<string>
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    SecuredGroupEntityGroupReference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    SecuredGroupServiceReferences List<string>
    List of service group references for the secured group.
    TcpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecTcpService>
    TCP port ranges (start_port, end_port).
    UdpServices List<PiersKarsenbarg.Nutanix.Inputs.GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecUdpService>
    UDP port ranges (start_port, end_port).
    IcmpServices []GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecIcmpService
    ICMP type/code specs.
    SecuredGroupAction string
    List of secured group action.
    SecuredGroupCategoryAssociatedEntityType string
    Entity type for the secured group category (SUBNET, VM, VPC).
    SecuredGroupCategoryReferences []string
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    SecuredGroupEntityGroupReference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    SecuredGroupServiceReferences []string
    List of service group references for the secured group.
    TcpServices []GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecTcpService
    TCP port ranges (start_port, end_port).
    UdpServices []GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecUdpService
    UDP port ranges (start_port, end_port).
    icmp_services list(object)
    ICMP type/code specs.
    secured_group_action string
    List of secured group action.
    secured_group_category_associated_entity_type string
    Entity type for the secured group category (SUBNET, VM, VPC).
    secured_group_category_references list(string)
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    secured_group_entity_group_reference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    secured_group_service_references list(string)
    List of service group references for the secured group.
    tcp_services list(object)
    TCP port ranges (start_port, end_port).
    udp_services list(object)
    UDP port ranges (start_port, end_port).
    icmpServices List<GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecIcmpService>
    ICMP type/code specs.
    securedGroupAction String
    List of secured group action.
    securedGroupCategoryAssociatedEntityType String
    Entity type for the secured group category (SUBNET, VM, VPC).
    securedGroupCategoryReferences List<String>
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    securedGroupEntityGroupReference String
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    securedGroupServiceReferences List<String>
    List of service group references for the secured group.
    tcpServices List<GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecTcpService>
    TCP port ranges (start_port, end_port).
    udpServices List<GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecUdpService>
    UDP port ranges (start_port, end_port).
    icmpServices GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecIcmpService[]
    ICMP type/code specs.
    securedGroupAction string
    List of secured group action.
    securedGroupCategoryAssociatedEntityType string
    Entity type for the secured group category (SUBNET, VM, VPC).
    securedGroupCategoryReferences string[]
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    securedGroupEntityGroupReference string
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    securedGroupServiceReferences string[]
    List of service group references for the secured group.
    tcpServices GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecTcpService[]
    TCP port ranges (start_port, end_port).
    udpServices GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecUdpService[]
    UDP port ranges (start_port, end_port).
    icmp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecIcmpService]
    ICMP type/code specs.
    secured_group_action str
    List of secured group action.
    secured_group_category_associated_entity_type str
    Entity type for the secured group category (SUBNET, VM, VPC).
    secured_group_category_references Sequence[str]
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    secured_group_entity_group_reference str
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    secured_group_service_references Sequence[str]
    List of service group references for the secured group.
    tcp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecTcpService]
    TCP port ranges (start_port, end_port).
    udp_services Sequence[GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecUdpService]
    UDP port ranges (start_port, end_port).
    icmpServices List<Property Map>
    ICMP type/code specs.
    securedGroupAction String
    List of secured group action.
    securedGroupCategoryAssociatedEntityType String
    Entity type for the secured group category (SUBNET, VM, VPC).
    securedGroupCategoryReferences List<String>
    List of category references for the secured group. The rule contains either this field or securedGroupEntityGroupReference, not both.
    securedGroupEntityGroupReference String
    Reference to the secured group entity group. The rule contains either this field or securedGroupCategoryReferences, not both.
    securedGroupServiceReferences List<String>
    List of service group references for the secured group.
    tcpServices List<Property Map>
    TCP port ranges (start_port, end_port).
    udpServices List<Property Map>
    UDP port ranges (start_port, end_port).

    GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecIcmpService

    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    Code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    IsAllAllowed bool
    Set this field to true if both Type and Code is ANY.
    Type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Integer
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Integer
    Icmp service Type. Ignore this field if Type has to be ANY.
    code number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed boolean
    Set this field to true if both Type and Code is ANY.
    type number
    Icmp service Type. Ignore this field if Type has to be ANY.
    code int
    Icmp service Code. Ignore this field if Code has to be ANY.
    is_all_allowed bool
    Set this field to true if both Type and Code is ANY.
    type int
    Icmp service Type. Ignore this field if Type has to be ANY.
    code Number
    Icmp service Code. Ignore this field if Code has to be ANY.
    isAllAllowed Boolean
    Set this field to true if both Type and Code is ANY.
    type Number
    Icmp service Type. Ignore this field if Type has to be ANY.

    GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecTcpService

    EndPort int
    end port
    StartPort int
    start port
    EndPort int
    end port
    StartPort int
    start port
    end_port number
    end port
    start_port number
    start port
    endPort Integer
    end port
    startPort Integer
    start port
    endPort number
    end port
    startPort number
    start port
    end_port int
    end port
    start_port int
    start port
    endPort Number
    end port
    startPort Number
    start port

    GetNetworkSecurityPolicyV2RuleSpecIntraEntityGroupRuleSpecUdpService

    EndPort int
    end port
    StartPort int
    start port
    EndPort int
    end port
    StartPort int
    start port
    end_port number
    end port
    start_port number
    start port
    endPort Integer
    end port
    startPort Integer
    start port
    endPort number
    end port
    startPort number
    start port
    end_port int
    end port
    start_port int
    start port
    endPort Number
    end port
    startPort Number
    start port

    GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpec

    specs list(object)
    Multi Environment Isolation Rule Spec.
    specs List<Property Map>
    Multi Environment Isolation Rule Spec.

    GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpecSpec

    all_to_all_isolation_groups list(object)
    all to all isolation group

    GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpecSpecAllToAllIsolationGroup

    IsolationGroups []GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpecSpecAllToAllIsolationGroupIsolationGroup
    Denotes the list of secured groups that will be used in All to All mutual isolation.
    isolation_groups list(object)
    Denotes the list of secured groups that will be used in All to All mutual isolation.
    isolationGroups List<GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpecSpecAllToAllIsolationGroupIsolationGroup>
    Denotes the list of secured groups that will be used in All to All mutual isolation.
    isolationGroups GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpecSpecAllToAllIsolationGroupIsolationGroup[]
    Denotes the list of secured groups that will be used in All to All mutual isolation.
    isolation_groups Sequence[GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpecSpecAllToAllIsolationGroupIsolationGroup]
    Denotes the list of secured groups that will be used in All to All mutual isolation.
    isolationGroups List<Property Map>
    Denotes the list of secured groups that will be used in All to All mutual isolation.

    GetNetworkSecurityPolicyV2RuleSpecMultiEnvIsolationRuleSpecSpecAllToAllIsolationGroupIsolationGroup

    GroupCategoryAssociatedEntityType string
    Entity type for the group category (SUBNET, VM, VPC).
    GroupCategoryReferences List<string>
    External identifiers of categories belonging to the isolation group.
    GroupEntityGroupReference string
    Reference to the entity group for the isolation group.
    GroupCategoryAssociatedEntityType string
    Entity type for the group category (SUBNET, VM, VPC).
    GroupCategoryReferences []string
    External identifiers of categories belonging to the isolation group.
    GroupEntityGroupReference string
    Reference to the entity group for the isolation group.
    group_category_associated_entity_type string
    Entity type for the group category (SUBNET, VM, VPC).
    group_category_references list(string)
    External identifiers of categories belonging to the isolation group.
    group_entity_group_reference string
    Reference to the entity group for the isolation group.
    groupCategoryAssociatedEntityType String
    Entity type for the group category (SUBNET, VM, VPC).
    groupCategoryReferences List<String>
    External identifiers of categories belonging to the isolation group.
    groupEntityGroupReference String
    Reference to the entity group for the isolation group.
    groupCategoryAssociatedEntityType string
    Entity type for the group category (SUBNET, VM, VPC).
    groupCategoryReferences string[]
    External identifiers of categories belonging to the isolation group.
    groupEntityGroupReference string
    Reference to the entity group for the isolation group.
    group_category_associated_entity_type str
    Entity type for the group category (SUBNET, VM, VPC).
    group_category_references Sequence[str]
    External identifiers of categories belonging to the isolation group.
    group_entity_group_reference str
    Reference to the entity group for the isolation group.
    groupCategoryAssociatedEntityType String
    Entity type for the group category (SUBNET, VM, VPC).
    groupCategoryReferences List<String>
    External identifiers of categories belonging to the isolation group.
    groupEntityGroupReference String
    Reference to the entity group for the isolation group.

    GetNetworkSecurityPolicyV2RuleSpecTwoEnvIsolationRuleSpec

    FirstIsolationGroups List<string>
    Denotes the first group of category uuids that will be used in an isolation policy.
    SecondIsolationGroups List<string>
    Denotes the second group of category uuids that will be used in an isolation policy.
    FirstIsolationGroups []string
    Denotes the first group of category uuids that will be used in an isolation policy.
    SecondIsolationGroups []string
    Denotes the second group of category uuids that will be used in an isolation policy.
    first_isolation_groups list(string)
    Denotes the first group of category uuids that will be used in an isolation policy.
    second_isolation_groups list(string)
    Denotes the second group of category uuids that will be used in an isolation policy.
    firstIsolationGroups List<String>
    Denotes the first group of category uuids that will be used in an isolation policy.
    secondIsolationGroups List<String>
    Denotes the second group of category uuids that will be used in an isolation policy.
    firstIsolationGroups string[]
    Denotes the first group of category uuids that will be used in an isolation policy.
    secondIsolationGroups string[]
    Denotes the second group of category uuids that will be used in an isolation policy.
    first_isolation_groups Sequence[str]
    Denotes the first group of category uuids that will be used in an isolation policy.
    second_isolation_groups Sequence[str]
    Denotes the second group of category uuids that will be used in an isolation policy.
    firstIsolationGroups List<String>
    Denotes the first group of category uuids that will be used in an isolation policy.
    secondIsolationGroups List<String>
    Denotes the second group of category uuids that will be used in an isolation policy.

    Package Details

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial