nutanix.AddressGroupsV2
Explore with Pulumi AI
 
Create AddressGroupsV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AddressGroupsV2(name: string, args?: AddressGroupsV2Args, opts?: CustomResourceOptions);@overload
def AddressGroupsV2(resource_name: str,
                    args: Optional[AddressGroupsV2Args] = None,
                    opts: Optional[ResourceOptions] = None)
@overload
def AddressGroupsV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    ip_ranges: Optional[Sequence[AddressGroupsV2IpRangeArgs]] = None,
                    ipv4_addresses: Optional[Sequence[AddressGroupsV2Ipv4AddressArgs]] = None,
                    name: Optional[str] = None)func NewAddressGroupsV2(ctx *Context, name string, args *AddressGroupsV2Args, opts ...ResourceOption) (*AddressGroupsV2, error)public AddressGroupsV2(string name, AddressGroupsV2Args? args = null, CustomResourceOptions? opts = null)
public AddressGroupsV2(String name, AddressGroupsV2Args args)
public AddressGroupsV2(String name, AddressGroupsV2Args args, CustomResourceOptions options)
type: nutanix:AddressGroupsV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AddressGroupsV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var addressGroupsV2Resource = new Nutanix.AddressGroupsV2("addressGroupsV2Resource", new()
{
    Description = "string",
    IpRanges = new[]
    {
        new Nutanix.Inputs.AddressGroupsV2IpRangeArgs
        {
            EndIp = "string",
            StartIp = "string",
        },
    },
    Ipv4Addresses = new[]
    {
        new Nutanix.Inputs.AddressGroupsV2Ipv4AddressArgs
        {
            PrefixLength = 0,
            Value = "string",
        },
    },
    Name = "string",
});
example, err := nutanix.NewAddressGroupsV2(ctx, "addressGroupsV2Resource", &nutanix.AddressGroupsV2Args{
	Description: pulumi.String("string"),
	IpRanges: nutanix.AddressGroupsV2IpRangeArray{
		&nutanix.AddressGroupsV2IpRangeArgs{
			EndIp:   pulumi.String("string"),
			StartIp: pulumi.String("string"),
		},
	},
	Ipv4Addresses: nutanix.AddressGroupsV2Ipv4AddressArray{
		&nutanix.AddressGroupsV2Ipv4AddressArgs{
			PrefixLength: pulumi.Int(0),
			Value:        pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
})
var addressGroupsV2Resource = new AddressGroupsV2("addressGroupsV2Resource", AddressGroupsV2Args.builder()
    .description("string")
    .ipRanges(AddressGroupsV2IpRangeArgs.builder()
        .endIp("string")
        .startIp("string")
        .build())
    .ipv4Addresses(AddressGroupsV2Ipv4AddressArgs.builder()
        .prefixLength(0)
        .value("string")
        .build())
    .name("string")
    .build());
address_groups_v2_resource = nutanix.AddressGroupsV2("addressGroupsV2Resource",
    description="string",
    ip_ranges=[{
        "end_ip": "string",
        "start_ip": "string",
    }],
    ipv4_addresses=[{
        "prefix_length": 0,
        "value": "string",
    }],
    name="string")
const addressGroupsV2Resource = new nutanix.AddressGroupsV2("addressGroupsV2Resource", {
    description: "string",
    ipRanges: [{
        endIp: "string",
        startIp: "string",
    }],
    ipv4Addresses: [{
        prefixLength: 0,
        value: "string",
    }],
    name: "string",
});
type: nutanix:AddressGroupsV2
properties:
    description: string
    ipRanges:
        - endIp: string
          startIp: string
    ipv4Addresses:
        - prefixLength: 0
          value: string
    name: string
AddressGroupsV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AddressGroupsV2 resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the AddressGroupsV2 resource produces the following output properties:
- CreatedBy string
- ExtId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<PiersKarsenbarg. Nutanix. Outputs. Address Groups V2Link> 
- PolicyReferences List<string>
- TenantId string
- CreatedBy string
- ExtId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]AddressGroups V2Link 
- PolicyReferences []string
- TenantId string
- createdBy String
- extId String
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<AddressGroups V2Link> 
- policyReferences List<String>
- tenantId String
- createdBy string
- extId string
- id string
- The provider-assigned unique ID for this managed resource.
- links
AddressGroups V2Link[] 
- policyReferences string[]
- tenantId string
- created_by str
- ext_id str
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[AddressGroups V2Link] 
- policy_references Sequence[str]
- tenant_id str
- createdBy String
- extId String
- id String
- The provider-assigned unique ID for this managed resource.
- links List<Property Map>
- policyReferences List<String>
- tenantId String
Look up Existing AddressGroupsV2 Resource
Get an existing AddressGroupsV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AddressGroupsV2State, opts?: CustomResourceOptions): AddressGroupsV2@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_by: Optional[str] = None,
        description: Optional[str] = None,
        ext_id: Optional[str] = None,
        ip_ranges: Optional[Sequence[AddressGroupsV2IpRangeArgs]] = None,
        ipv4_addresses: Optional[Sequence[AddressGroupsV2Ipv4AddressArgs]] = None,
        links: Optional[Sequence[AddressGroupsV2LinkArgs]] = None,
        name: Optional[str] = None,
        policy_references: Optional[Sequence[str]] = None,
        tenant_id: Optional[str] = None) -> AddressGroupsV2func GetAddressGroupsV2(ctx *Context, name string, id IDInput, state *AddressGroupsV2State, opts ...ResourceOption) (*AddressGroupsV2, error)public static AddressGroupsV2 Get(string name, Input<string> id, AddressGroupsV2State? state, CustomResourceOptions? opts = null)public static AddressGroupsV2 get(String name, Output<String> id, AddressGroupsV2State state, CustomResourceOptions options)resources:  _:    type: nutanix:AddressGroupsV2    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CreatedBy string
- Description string
- ExtId string
- IpRanges List<PiersKarsenbarg. Nutanix. Inputs. Address Groups V2Ip Range> 
- Ipv4Addresses
List<PiersKarsenbarg. Nutanix. Inputs. Address Groups V2Ipv4Address> 
- Links
List<PiersKarsenbarg. Nutanix. Inputs. Address Groups V2Link> 
- Name string
- PolicyReferences List<string>
- TenantId string
- CreatedBy string
- Description string
- ExtId string
- IpRanges []AddressGroups V2Ip Range Args 
- Ipv4Addresses
[]AddressGroups V2Ipv4Address Args 
- Links
[]AddressGroups V2Link Args 
- Name string
- PolicyReferences []string
- TenantId string
- createdBy String
- description String
- extId String
- ipRanges List<AddressGroups V2Ip Range> 
- ipv4Addresses
List<AddressGroups V2Ipv4Address> 
- links
List<AddressGroups V2Link> 
- name String
- policyReferences List<String>
- tenantId String
- createdBy string
- description string
- extId string
- ipRanges AddressGroups V2Ip Range[] 
- ipv4Addresses
AddressGroups V2Ipv4Address[] 
- links
AddressGroups V2Link[] 
- name string
- policyReferences string[]
- tenantId string
- createdBy String
- description String
- extId String
- ipRanges List<Property Map>
- ipv4Addresses List<Property Map>
- links List<Property Map>
- name String
- policyReferences List<String>
- tenantId String
Supporting Types
AddressGroupsV2IpRange, AddressGroupsV2IpRangeArgs        
AddressGroupsV2Ipv4Address, AddressGroupsV2Ipv4AddressArgs      
- PrefixLength int
- Value string
- PrefixLength int
- Value string
- prefixLength Integer
- value String
- prefixLength number
- value string
- prefix_length int
- value str
- prefixLength Number
- value String
AddressGroupsV2Link, AddressGroupsV2LinkArgs      
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nutanixTerraform Provider.
