Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getAddressGroups
Explore with Pulumi AI
Provides a datasource to retrieve list of address groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const addrGroups = nutanix.getAddressGroups({});
import pulumi
import pulumi_nutanix as nutanix
addr_groups = nutanix.get_address_groups()
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nutanix.GetAddressGroups(ctx, &nutanix.GetAddressGroupsArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var addrGroups = Nutanix.GetAddressGroups.Invoke();
});
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.GetAddressGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var addrGroups = NutanixFunctions.getAddressGroups();
}
}
variables:
addrGroups:
fn::invoke:
Function: nutanix:getAddressGroups
Arguments: {}
Using getAddressGroups
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 getAddressGroups(args: GetAddressGroupsArgs, opts?: InvokeOptions): Promise<GetAddressGroupsResult>
function getAddressGroupsOutput(args: GetAddressGroupsOutputArgs, opts?: InvokeOptions): Output<GetAddressGroupsResult>
def get_address_groups(metadatas: Optional[Sequence[GetAddressGroupsMetadata]] = None,
opts: Optional[InvokeOptions] = None) -> GetAddressGroupsResult
def get_address_groups_output(metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[GetAddressGroupsMetadataArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAddressGroupsResult]
func GetAddressGroups(ctx *Context, args *GetAddressGroupsArgs, opts ...InvokeOption) (*GetAddressGroupsResult, error)
func GetAddressGroupsOutput(ctx *Context, args *GetAddressGroupsOutputArgs, opts ...InvokeOption) GetAddressGroupsResultOutput
> Note: This function is named GetAddressGroups
in the Go SDK.
public static class GetAddressGroups
{
public static Task<GetAddressGroupsResult> InvokeAsync(GetAddressGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetAddressGroupsResult> Invoke(GetAddressGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAddressGroupsResult> getAddressGroups(GetAddressGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getAddressGroups:getAddressGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Metadatas
List<Piers
Karsenbarg. Nutanix. Inputs. Get Address Groups Metadata> - (Optional) Use metadata to specify filters
- Metadatas
[]Get
Address Groups Metadata - (Optional) Use metadata to specify filters
- metadatas
List<Get
Address Groups Metadata> - (Optional) Use metadata to specify filters
- metadatas
Get
Address Groups Metadata[] - (Optional) Use metadata to specify filters
- metadatas
Sequence[Get
Address Groups Metadata] - (Optional) Use metadata to specify filters
- metadatas List<Property Map>
- (Optional) Use metadata to specify filters
getAddressGroups Result
The following output properties are available:
- Entities
List<Piers
Karsenbarg. Nutanix. Outputs. Get Address Groups Entity> - (ReadOnly) List of address groups
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
List<Piers
Karsenbarg. Nutanix. Outputs. Get Address Groups Metadata> - (Optional) Use metadata to specify filters
- Entities
[]Get
Address Groups Entity - (ReadOnly) List of address groups
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
[]Get
Address Groups Metadata - (Optional) Use metadata to specify filters
- entities
List<Get
Address Groups Entity> - (ReadOnly) List of address groups
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas
List<Get
Address Groups Metadata> - (Optional) Use metadata to specify filters
- entities
Get
Address Groups Entity[] - (ReadOnly) List of address groups
- id string
- The provider-assigned unique ID for this managed resource.
- metadatas
Get
Address Groups Metadata[] - (Optional) Use metadata to specify filters
- entities
Sequence[Get
Address Groups Entity] - (ReadOnly) List of address groups
- id str
- The provider-assigned unique ID for this managed resource.
- metadatas
Sequence[Get
Address Groups Metadata] - (Optional) Use metadata to specify filters
- entities List<Property Map>
- (ReadOnly) List of address groups
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas List<Property Map>
- (Optional) Use metadata to specify filters
Supporting Types
GetAddressGroupsEntity
- Address
Groups List<PiersKarsenbarg. Nutanix. Inputs. Get Address Groups Entity Address Group> - Information about address_group
- Associated
Policies List<PiersLists Karsenbarg. Nutanix. Inputs. Get Address Groups Entity Associated Policies List> - List of associated policies to address group
- Uuid string
- (ReadOnly) UUID of associated policy
- Address
Groups []GetAddress Groups Entity Address Group - Information about address_group
- Associated
Policies []GetLists Address Groups Entity Associated Policies List - List of associated policies to address group
- Uuid string
- (ReadOnly) UUID of associated policy
- address
Groups List<GetAddress Groups Entity Address Group> - Information about address_group
- associated
Policies List<GetLists Address Groups Entity Associated Policies List> - List of associated policies to address group
- uuid String
- (ReadOnly) UUID of associated policy
- address
Groups GetAddress Groups Entity Address Group[] - Information about address_group
- associated
Policies GetLists Address Groups Entity Associated Policies List[] - List of associated policies to address group
- uuid string
- (ReadOnly) UUID of associated policy
- address_
groups Sequence[GetAddress Groups Entity Address Group] - Information about address_group
- associated_
policies_ Sequence[Getlists Address Groups Entity Associated Policies List] - List of associated policies to address group
- uuid str
- (ReadOnly) UUID of associated policy
- address
Groups List<Property Map> - Information about address_group
- associated
Policies List<Property Map>Lists - List of associated policies to address group
- uuid String
- (ReadOnly) UUID of associated policy
GetAddressGroupsEntityAddressGroup
- Address
Group stringString - (ReadOnly) Address Group string
- Description string
- (ReadOnly) Description of the address group
- Ip
Address List<PiersBlock Lists Karsenbarg. Nutanix. Inputs. Get Address Groups Entity Address Group Ip Address Block List> - (ReadOnly) list of IP address blocks with their prefix length
- Name string
- (ReadOnly) Name of associated policy
- Address
Group stringString - (ReadOnly) Address Group string
- Description string
- (ReadOnly) Description of the address group
- Ip
Address []GetBlock Lists Address Groups Entity Address Group Ip Address Block List - (ReadOnly) list of IP address blocks with their prefix length
- Name string
- (ReadOnly) Name of associated policy
- address
Group StringString - (ReadOnly) Address Group string
- description String
- (ReadOnly) Description of the address group
- ip
Address List<GetBlock Lists Address Groups Entity Address Group Ip Address Block List> - (ReadOnly) list of IP address blocks with their prefix length
- name String
- (ReadOnly) Name of associated policy
- address
Group stringString - (ReadOnly) Address Group string
- description string
- (ReadOnly) Description of the address group
- ip
Address GetBlock Lists Address Groups Entity Address Group Ip Address Block List[] - (ReadOnly) list of IP address blocks with their prefix length
- name string
- (ReadOnly) Name of associated policy
- address_
group_ strstring - (ReadOnly) Address Group string
- description str
- (ReadOnly) Description of the address group
- ip_
address_ Sequence[Getblock_ lists Address Groups Entity Address Group Ip Address Block List] - (ReadOnly) list of IP address blocks with their prefix length
- name str
- (ReadOnly) Name of associated policy
- address
Group StringString - (ReadOnly) Address Group string
- description String
- (ReadOnly) Description of the address group
- ip
Address List<Property Map>Block Lists - (ReadOnly) list of IP address blocks with their prefix length
- name String
- (ReadOnly) Name of associated policy
GetAddressGroupsEntityAddressGroupIpAddressBlockList
- Ip string
- (ReadOnly) IP of the address block
- Prefix
Length int - (ReadOnly) Prefix length of address block in int
- Ip string
- (ReadOnly) IP of the address block
- Prefix
Length int - (ReadOnly) Prefix length of address block in int
- ip String
- (ReadOnly) IP of the address block
- prefix
Length Integer - (ReadOnly) Prefix length of address block in int
- ip string
- (ReadOnly) IP of the address block
- prefix
Length number - (ReadOnly) Prefix length of address block in int
- ip str
- (ReadOnly) IP of the address block
- prefix_
length int - (ReadOnly) Prefix length of address block in int
- ip String
- (ReadOnly) IP of the address block
- prefix
Length Number - (ReadOnly) Prefix length of address block in int
GetAddressGroupsEntityAssociatedPoliciesList
GetAddressGroupsMetadata
- filter str
- (Optional) Filter in FIQL Syntax
- kind str
- length int
- (Optional) Integer
- offset int
- (Optional) Integer
- sort_
attribute str - (Optional) attribute to sort
- sort_
order str - (Optional) order of sorting
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.