avi.Cluster
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “Avi: avi.Cluster” sidebar_current: “docs-avi-resource-cluster” description: |- Creates and manages Avi Cluster.
avi.Cluster
The Cluster resource allows the creation and management of Avi Cluster
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const foo = new avi.Cluster("foo", {tenantRef: "/api/tenant/?name=admin"});
import pulumi
import pulumi_avi as avi
foo = avi.Cluster("foo", tenant_ref="/api/tenant/?name=admin")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avi.NewCluster(ctx, "foo", &avi.ClusterArgs{
TenantRef: pulumi.String("/api/tenant/?name=admin"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;
return await Deployment.RunAsync(() =>
{
var foo = new Avi.Cluster("foo", new()
{
TenantRef = "/api/tenant/?name=admin",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.Cluster;
import com.pulumi.avi.ClusterArgs;
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) {
var foo = new Cluster("foo", ClusterArgs.builder()
.tenantRef("/api/tenant/?name=admin")
.build());
}
}
resources:
foo:
type: avi:Cluster
properties:
tenantRef: /api/tenant/?name=admin
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
nodes: Optional[Sequence[ClusterNodeArgs]] = None,
cluster_id: Optional[str] = None,
cluster_states: Optional[Sequence[ClusterClusterStateArgs]] = None,
name: Optional[str] = None,
rejoin_nodes_automatically: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
virtual_ip6s: Optional[Sequence[ClusterVirtualIp6Args]] = None,
virtual_ips: Optional[Sequence[ClusterVirtualIpArgs]] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: avi:Cluster
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 ClusterArgs
- 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 ClusterArgs
- 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 ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- 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 clusterResource = new Avi.Cluster("clusterResource", new()
{
Nodes = new[]
{
new Avi.Inputs.ClusterNodeArgs
{
Categories = new[]
{
"string",
},
Interfaces = new[]
{
new Avi.Inputs.ClusterNodeInterfaceArgs
{
Gateway6s = new[]
{
new Avi.Inputs.ClusterNodeInterfaceGateway6Args
{
Addr = "string",
Type = "string",
},
},
Gateways = new[]
{
new Avi.Inputs.ClusterNodeInterfaceGatewayArgs
{
Addr = "string",
Type = "string",
},
},
IfName = "string",
Ip6s = new[]
{
new Avi.Inputs.ClusterNodeInterfaceIp6Args
{
IpAddrs = new[]
{
new Avi.Inputs.ClusterNodeInterfaceIp6IpAddrArgs
{
Addr = "string",
Type = "string",
},
},
Mask = "string",
},
},
Ips = new[]
{
new Avi.Inputs.ClusterNodeInterfaceIpArgs
{
IpAddrs = new[]
{
new Avi.Inputs.ClusterNodeInterfaceIpIpAddrArgs
{
Addr = "string",
Type = "string",
},
},
Mask = "string",
},
},
Labels = new[]
{
"string",
},
MacAddress = "string",
Mode = "string",
Mode6 = "string",
PublicIpOrNames = new[]
{
new Avi.Inputs.ClusterNodeInterfacePublicIpOrNameArgs
{
Addr = "string",
Type = "string",
},
},
V4Enabled = "string",
V6Enabled = "string",
},
},
Ip6s = new[]
{
new Avi.Inputs.ClusterNodeIp6Args
{
Addr = "string",
Type = "string",
},
},
Ips = new[]
{
new Avi.Inputs.ClusterNodeIpArgs
{
Addr = "string",
Type = "string",
},
},
Name = "string",
Password = "string",
PublicIpOrNames = new[]
{
new Avi.Inputs.ClusterNodePublicIpOrNameArgs
{
Addr = "string",
Type = "string",
},
},
StaticRoutes = new[]
{
new Avi.Inputs.ClusterNodeStaticRouteArgs
{
NextHops = new[]
{
new Avi.Inputs.ClusterNodeStaticRouteNextHopArgs
{
Addr = "string",
Type = "string",
},
},
Prefixes = new[]
{
new Avi.Inputs.ClusterNodeStaticRoutePrefixArgs
{
IpAddrs = new[]
{
new Avi.Inputs.ClusterNodeStaticRoutePrefixIpAddrArgs
{
Addr = "string",
Type = "string",
},
},
Mask = "string",
},
},
RouteId = "string",
DisableGatewayMonitor = "string",
IfName = "string",
Labels = new[]
{
new Avi.Inputs.ClusterNodeStaticRouteLabelArgs
{
Key = "string",
Value = "string",
},
},
},
},
VmHostname = "string",
VmMor = "string",
VmName = "string",
VmUuid = "string",
},
},
ClusterId = "string",
ClusterStates = new[]
{
new Avi.Inputs.ClusterClusterStateArgs
{
Progress = "string",
State = "string",
UpSince = "string",
},
},
Name = "string",
RejoinNodesAutomatically = "string",
TenantRef = "string",
Uuid = "string",
VirtualIp6s = new[]
{
new Avi.Inputs.ClusterVirtualIp6Args
{
Addr = "string",
Type = "string",
},
},
VirtualIps = new[]
{
new Avi.Inputs.ClusterVirtualIpArgs
{
Addr = "string",
Type = "string",
},
},
});
example, err := avi.NewCluster(ctx, "clusterResource", &avi.ClusterArgs{
Nodes: avi.ClusterNodeArray{
&avi.ClusterNodeArgs{
Categories: pulumi.StringArray{
pulumi.String("string"),
},
Interfaces: avi.ClusterNodeInterfaceArray{
&avi.ClusterNodeInterfaceArgs{
Gateway6s: avi.ClusterNodeInterfaceGateway6Array{
&avi.ClusterNodeInterfaceGateway6Args{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Gateways: avi.ClusterNodeInterfaceGatewayArray{
&avi.ClusterNodeInterfaceGatewayArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
IfName: pulumi.String("string"),
Ip6s: avi.ClusterNodeInterfaceIp6Array{
&avi.ClusterNodeInterfaceIp6Args{
IpAddrs: avi.ClusterNodeInterfaceIp6IpAddrArray{
&avi.ClusterNodeInterfaceIp6IpAddrArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Mask: pulumi.String("string"),
},
},
Ips: avi.ClusterNodeInterfaceIpArray{
&avi.ClusterNodeInterfaceIpArgs{
IpAddrs: avi.ClusterNodeInterfaceIpIpAddrArray{
&avi.ClusterNodeInterfaceIpIpAddrArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Mask: pulumi.String("string"),
},
},
Labels: pulumi.StringArray{
pulumi.String("string"),
},
MacAddress: pulumi.String("string"),
Mode: pulumi.String("string"),
Mode6: pulumi.String("string"),
PublicIpOrNames: avi.ClusterNodeInterfacePublicIpOrNameArray{
&avi.ClusterNodeInterfacePublicIpOrNameArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
V4Enabled: pulumi.String("string"),
V6Enabled: pulumi.String("string"),
},
},
Ip6s: avi.ClusterNodeIp6Array{
&avi.ClusterNodeIp6Args{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Ips: avi.ClusterNodeIpArray{
&avi.ClusterNodeIpArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Password: pulumi.String("string"),
PublicIpOrNames: avi.ClusterNodePublicIpOrNameArray{
&avi.ClusterNodePublicIpOrNameArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
StaticRoutes: avi.ClusterNodeStaticRouteArray{
&avi.ClusterNodeStaticRouteArgs{
NextHops: avi.ClusterNodeStaticRouteNextHopArray{
&avi.ClusterNodeStaticRouteNextHopArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Prefixes: avi.ClusterNodeStaticRoutePrefixArray{
&avi.ClusterNodeStaticRoutePrefixArgs{
IpAddrs: avi.ClusterNodeStaticRoutePrefixIpAddrArray{
&avi.ClusterNodeStaticRoutePrefixIpAddrArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Mask: pulumi.String("string"),
},
},
RouteId: pulumi.String("string"),
DisableGatewayMonitor: pulumi.String("string"),
IfName: pulumi.String("string"),
Labels: avi.ClusterNodeStaticRouteLabelArray{
&avi.ClusterNodeStaticRouteLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
VmHostname: pulumi.String("string"),
VmMor: pulumi.String("string"),
VmName: pulumi.String("string"),
VmUuid: pulumi.String("string"),
},
},
ClusterId: pulumi.String("string"),
ClusterStates: avi.ClusterClusterStateArray{
&avi.ClusterClusterStateArgs{
Progress: pulumi.String("string"),
State: pulumi.String("string"),
UpSince: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
RejoinNodesAutomatically: pulumi.String("string"),
TenantRef: pulumi.String("string"),
Uuid: pulumi.String("string"),
VirtualIp6s: avi.ClusterVirtualIp6Array{
&avi.ClusterVirtualIp6Args{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
VirtualIps: avi.ClusterVirtualIpArray{
&avi.ClusterVirtualIpArgs{
Addr: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
})
var clusterResource = new Cluster("clusterResource", ClusterArgs.builder()
.nodes(ClusterNodeArgs.builder()
.categories("string")
.interfaces(ClusterNodeInterfaceArgs.builder()
.gateway6s(ClusterNodeInterfaceGateway6Args.builder()
.addr("string")
.type("string")
.build())
.gateways(ClusterNodeInterfaceGatewayArgs.builder()
.addr("string")
.type("string")
.build())
.ifName("string")
.ip6s(ClusterNodeInterfaceIp6Args.builder()
.ipAddrs(ClusterNodeInterfaceIp6IpAddrArgs.builder()
.addr("string")
.type("string")
.build())
.mask("string")
.build())
.ips(ClusterNodeInterfaceIpArgs.builder()
.ipAddrs(ClusterNodeInterfaceIpIpAddrArgs.builder()
.addr("string")
.type("string")
.build())
.mask("string")
.build())
.labels("string")
.macAddress("string")
.mode("string")
.mode6("string")
.publicIpOrNames(ClusterNodeInterfacePublicIpOrNameArgs.builder()
.addr("string")
.type("string")
.build())
.v4Enabled("string")
.v6Enabled("string")
.build())
.ip6s(ClusterNodeIp6Args.builder()
.addr("string")
.type("string")
.build())
.ips(ClusterNodeIpArgs.builder()
.addr("string")
.type("string")
.build())
.name("string")
.password("string")
.publicIpOrNames(ClusterNodePublicIpOrNameArgs.builder()
.addr("string")
.type("string")
.build())
.staticRoutes(ClusterNodeStaticRouteArgs.builder()
.nextHops(ClusterNodeStaticRouteNextHopArgs.builder()
.addr("string")
.type("string")
.build())
.prefixes(ClusterNodeStaticRoutePrefixArgs.builder()
.ipAddrs(ClusterNodeStaticRoutePrefixIpAddrArgs.builder()
.addr("string")
.type("string")
.build())
.mask("string")
.build())
.routeId("string")
.disableGatewayMonitor("string")
.ifName("string")
.labels(ClusterNodeStaticRouteLabelArgs.builder()
.key("string")
.value("string")
.build())
.build())
.vmHostname("string")
.vmMor("string")
.vmName("string")
.vmUuid("string")
.build())
.clusterId("string")
.clusterStates(ClusterClusterStateArgs.builder()
.progress("string")
.state("string")
.upSince("string")
.build())
.name("string")
.rejoinNodesAutomatically("string")
.tenantRef("string")
.uuid("string")
.virtualIp6s(ClusterVirtualIp6Args.builder()
.addr("string")
.type("string")
.build())
.virtualIps(ClusterVirtualIpArgs.builder()
.addr("string")
.type("string")
.build())
.build());
cluster_resource = avi.Cluster("clusterResource",
nodes=[{
"categories": ["string"],
"interfaces": [{
"gateway6s": [{
"addr": "string",
"type": "string",
}],
"gateways": [{
"addr": "string",
"type": "string",
}],
"if_name": "string",
"ip6s": [{
"ip_addrs": [{
"addr": "string",
"type": "string",
}],
"mask": "string",
}],
"ips": [{
"ip_addrs": [{
"addr": "string",
"type": "string",
}],
"mask": "string",
}],
"labels": ["string"],
"mac_address": "string",
"mode": "string",
"mode6": "string",
"public_ip_or_names": [{
"addr": "string",
"type": "string",
}],
"v4_enabled": "string",
"v6_enabled": "string",
}],
"ip6s": [{
"addr": "string",
"type": "string",
}],
"ips": [{
"addr": "string",
"type": "string",
}],
"name": "string",
"password": "string",
"public_ip_or_names": [{
"addr": "string",
"type": "string",
}],
"static_routes": [{
"next_hops": [{
"addr": "string",
"type": "string",
}],
"prefixes": [{
"ip_addrs": [{
"addr": "string",
"type": "string",
}],
"mask": "string",
}],
"route_id": "string",
"disable_gateway_monitor": "string",
"if_name": "string",
"labels": [{
"key": "string",
"value": "string",
}],
}],
"vm_hostname": "string",
"vm_mor": "string",
"vm_name": "string",
"vm_uuid": "string",
}],
cluster_id="string",
cluster_states=[{
"progress": "string",
"state": "string",
"up_since": "string",
}],
name="string",
rejoin_nodes_automatically="string",
tenant_ref="string",
uuid="string",
virtual_ip6s=[{
"addr": "string",
"type": "string",
}],
virtual_ips=[{
"addr": "string",
"type": "string",
}])
const clusterResource = new avi.Cluster("clusterResource", {
nodes: [{
categories: ["string"],
interfaces: [{
gateway6s: [{
addr: "string",
type: "string",
}],
gateways: [{
addr: "string",
type: "string",
}],
ifName: "string",
ip6s: [{
ipAddrs: [{
addr: "string",
type: "string",
}],
mask: "string",
}],
ips: [{
ipAddrs: [{
addr: "string",
type: "string",
}],
mask: "string",
}],
labels: ["string"],
macAddress: "string",
mode: "string",
mode6: "string",
publicIpOrNames: [{
addr: "string",
type: "string",
}],
v4Enabled: "string",
v6Enabled: "string",
}],
ip6s: [{
addr: "string",
type: "string",
}],
ips: [{
addr: "string",
type: "string",
}],
name: "string",
password: "string",
publicIpOrNames: [{
addr: "string",
type: "string",
}],
staticRoutes: [{
nextHops: [{
addr: "string",
type: "string",
}],
prefixes: [{
ipAddrs: [{
addr: "string",
type: "string",
}],
mask: "string",
}],
routeId: "string",
disableGatewayMonitor: "string",
ifName: "string",
labels: [{
key: "string",
value: "string",
}],
}],
vmHostname: "string",
vmMor: "string",
vmName: "string",
vmUuid: "string",
}],
clusterId: "string",
clusterStates: [{
progress: "string",
state: "string",
upSince: "string",
}],
name: "string",
rejoinNodesAutomatically: "string",
tenantRef: "string",
uuid: "string",
virtualIp6s: [{
addr: "string",
type: "string",
}],
virtualIps: [{
addr: "string",
type: "string",
}],
});
type: avi:Cluster
properties:
clusterId: string
clusterStates:
- progress: string
state: string
upSince: string
name: string
nodes:
- categories:
- string
interfaces:
- gateway6s:
- addr: string
type: string
gateways:
- addr: string
type: string
ifName: string
ip6s:
- ipAddrs:
- addr: string
type: string
mask: string
ips:
- ipAddrs:
- addr: string
type: string
mask: string
labels:
- string
macAddress: string
mode: string
mode6: string
publicIpOrNames:
- addr: string
type: string
v4Enabled: string
v6Enabled: string
ip6s:
- addr: string
type: string
ips:
- addr: string
type: string
name: string
password: string
publicIpOrNames:
- addr: string
type: string
staticRoutes:
- disableGatewayMonitor: string
ifName: string
labels:
- key: string
value: string
nextHops:
- addr: string
type: string
prefixes:
- ipAddrs:
- addr: string
type: string
mask: string
routeId: string
vmHostname: string
vmMor: string
vmName: string
vmUuid: string
rejoinNodesAutomatically: string
tenantRef: string
uuid: string
virtualIp6s:
- addr: string
type: string
virtualIps:
- addr: string
type: string
Cluster 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 Cluster resource accepts the following input properties:
- Nodes
List<Cluster
Node> - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Cluster
Id string - Cluster
States List<ClusterCluster State> - Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Rejoin
Nodes stringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Virtual
Ip6s List<ClusterVirtual Ip6> - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Virtual
Ips List<ClusterVirtual Ip> - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Nodes
[]Cluster
Node Args - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Cluster
Id string - Cluster
States []ClusterCluster State Args - Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Rejoin
Nodes stringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Virtual
Ip6s []ClusterVirtual Ip6Args - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Virtual
Ips []ClusterVirtual Ip Args - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
List<Cluster
Node> - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster
Id String - cluster
States List<ClusterCluster State> - name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin
Nodes StringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual
Ip6s List<ClusterVirtual Ip6> - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual
Ips List<ClusterVirtual Ip> - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
Cluster
Node[] - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster
Id string - cluster
States ClusterCluster State[] - name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin
Nodes stringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual
Ip6s ClusterVirtual Ip6[] - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual
Ips ClusterVirtual Ip[] - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
Sequence[Cluster
Node Args] - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster_
id str - cluster_
states Sequence[ClusterCluster State Args] - name str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin_
nodes_ strautomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual_
ip6s Sequence[ClusterVirtual Ip6Args] - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual_
ips Sequence[ClusterVirtual Ip Args] - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes List<Property Map>
- Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster
Id String - cluster
States List<Property Map> - name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin
Nodes StringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual
Ip6s List<Property Map> - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual
Ips List<Property Map> - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Cluster Resource
Get an existing Cluster 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?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cluster_states: Optional[Sequence[ClusterClusterStateArgs]] = None,
name: Optional[str] = None,
nodes: Optional[Sequence[ClusterNodeArgs]] = None,
rejoin_nodes_automatically: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
virtual_ip6s: Optional[Sequence[ClusterVirtualIp6Args]] = None,
virtual_ips: Optional[Sequence[ClusterVirtualIpArgs]] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
resources: _: type: avi:Cluster 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.
- Cluster
Id string - Cluster
States List<ClusterCluster State> - Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Nodes
List<Cluster
Node> - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Rejoin
Nodes stringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Virtual
Ip6s List<ClusterVirtual Ip6> - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Virtual
Ips List<ClusterVirtual Ip> - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Cluster
Id string - Cluster
States []ClusterCluster State Args - Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Nodes
[]Cluster
Node Args - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Rejoin
Nodes stringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Virtual
Ip6s []ClusterVirtual Ip6Args - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Virtual
Ips []ClusterVirtual Ip Args - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster
Id String - cluster
States List<ClusterCluster State> - name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
List<Cluster
Node> - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin
Nodes StringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual
Ip6s List<ClusterVirtual Ip6> - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual
Ips List<ClusterVirtual Ip> - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster
Id string - cluster
States ClusterCluster State[] - name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
Cluster
Node[] - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin
Nodes stringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual
Ip6s ClusterVirtual Ip6[] - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual
Ips ClusterVirtual Ip[] - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster_
id str - cluster_
states Sequence[ClusterCluster State Args] - name str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
Sequence[Cluster
Node Args] - Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin_
nodes_ strautomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual_
ip6s Sequence[ClusterVirtual Ip6Args] - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual_
ips Sequence[ClusterVirtual Ip Args] - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- cluster
Id String - cluster
States List<Property Map> - name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes List<Property Map>
- Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- rejoin
Nodes StringAutomatically - Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- virtual
Ip6s List<Property Map> - A v6 virtual ip address for the cluster that always points to the v6 ip of the leader node in cluster. Field introduced in 30.2.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- virtual
Ips List<Property Map> - A v4 virtual ip address for the cluster that always points to the v4 ip of the leader node in cluster. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Supporting Types
ClusterClusterState, ClusterClusterStateArgs
ClusterNode, ClusterNodeArgs
- Categories List<string>
- Interfaces
List<Cluster
Node Interface> - Ip6s
List<Cluster
Node Ip6> - Ips
List<Cluster
Node Ip> - Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Password string
- Public
Ip List<ClusterOr Names Node Public Ip Or Name> - Static
Routes List<ClusterNode Static Route> - Vm
Hostname string - Vm
Mor string - Vm
Name string - Vm
Uuid string
- Categories []string
- Interfaces
[]Cluster
Node Interface - Ip6s
[]Cluster
Node Ip6 - Ips
[]Cluster
Node Ip - Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Password string
- Public
Ip []ClusterOr Names Node Public Ip Or Name - Static
Routes []ClusterNode Static Route - Vm
Hostname string - Vm
Mor string - Vm
Name string - Vm
Uuid string
- categories List<String>
- interfaces
List<Cluster
Node Interface> - ip6s
List<Cluster
Node Ip6> - ips
List<Cluster
Node Ip> - name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password String
- public
Ip List<ClusterOr Names Node Public Ip Or Name> - static
Routes List<ClusterNode Static Route> - vm
Hostname String - vm
Mor String - vm
Name String - vm
Uuid String
- categories string[]
- interfaces
Cluster
Node Interface[] - ip6s
Cluster
Node Ip6[] - ips
Cluster
Node Ip[] - name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password string
- public
Ip ClusterOr Names Node Public Ip Or Name[] - static
Routes ClusterNode Static Route[] - vm
Hostname string - vm
Mor string - vm
Name string - vm
Uuid string
- categories Sequence[str]
- interfaces
Sequence[Cluster
Node Interface] - ip6s
Sequence[Cluster
Node Ip6] - ips
Sequence[Cluster
Node Ip] - name str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password str
- public_
ip_ Sequence[Clusteror_ names Node Public Ip Or Name] - static_
routes Sequence[ClusterNode Static Route] - vm_
hostname str - vm_
mor str - vm_
name str - vm_
uuid str
- categories List<String>
- interfaces List<Property Map>
- ip6s List<Property Map>
- ips List<Property Map>
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- password String
- public
Ip List<Property Map>Or Names - static
Routes List<Property Map> - vm
Hostname String - vm
Mor String - vm
Name String - vm
Uuid String
ClusterNodeInterface, ClusterNodeInterfaceArgs
- Gateway6s
List<Cluster
Node Interface Gateway6> - Gateways
List<Cluster
Node Interface Gateway> - If
Name string - Ip6s
List<Cluster
Node Interface Ip6> - Ips
List<Cluster
Node Interface Ip> - Labels List<string>
- Mac
Address string - Mode string
- Mode6 string
- Public
Ip List<ClusterOr Names Node Interface Public Ip Or Name> - V4Enabled string
- V6Enabled string
- gateway6s
List<Cluster
Node Interface Gateway6> - gateways
List<Cluster
Node Interface Gateway> - if
Name String - ip6s
List<Cluster
Node Interface Ip6> - ips
List<Cluster
Node Interface Ip> - labels List<String>
- mac
Address String - mode String
- mode6 String
- public
Ip List<ClusterOr Names Node Interface Public Ip Or Name> - v4Enabled String
- v6Enabled String
- gateway6s
Sequence[Cluster
Node Interface Gateway6] - gateways
Sequence[Cluster
Node Interface Gateway] - if_
name str - ip6s
Sequence[Cluster
Node Interface Ip6] - ips
Sequence[Cluster
Node Interface Ip] - labels Sequence[str]
- mac_
address str - mode str
- mode6 str
- public_
ip_ Sequence[Clusteror_ names Node Interface Public Ip Or Name] - v4_
enabled str - v6_
enabled str
- gateway6s List<Property Map>
- gateways List<Property Map>
- if
Name String - ip6s List<Property Map>
- ips List<Property Map>
- labels List<String>
- mac
Address String - mode String
- mode6 String
- public
Ip List<Property Map>Or Names - v4Enabled String
- v6Enabled String
ClusterNodeInterfaceGateway, ClusterNodeInterfaceGatewayArgs
ClusterNodeInterfaceGateway6, ClusterNodeInterfaceGateway6Args
ClusterNodeInterfaceIp, ClusterNodeInterfaceIpArgs
- ip
Addrs List<Property Map> - mask String
ClusterNodeInterfaceIp6, ClusterNodeInterfaceIp6Args
- ip
Addrs List<Property Map> - mask String
ClusterNodeInterfaceIp6IpAddr, ClusterNodeInterfaceIp6IpAddrArgs
ClusterNodeInterfaceIpIpAddr, ClusterNodeInterfaceIpIpAddrArgs
ClusterNodeInterfacePublicIpOrName, ClusterNodeInterfacePublicIpOrNameArgs
ClusterNodeIp, ClusterNodeIpArgs
ClusterNodeIp6, ClusterNodeIp6Args
ClusterNodePublicIpOrName, ClusterNodePublicIpOrNameArgs
ClusterNodeStaticRoute, ClusterNodeStaticRouteArgs
ClusterNodeStaticRouteLabel, ClusterNodeStaticRouteLabelArgs
ClusterNodeStaticRouteNextHop, ClusterNodeStaticRouteNextHopArgs
ClusterNodeStaticRoutePrefix, ClusterNodeStaticRoutePrefixArgs
- ip
Addrs List<Property Map> - mask String
ClusterNodeStaticRoutePrefixIpAddr, ClusterNodeStaticRoutePrefixIpAddrArgs
ClusterVirtualIp, ClusterVirtualIpArgs
ClusterVirtualIp6, ClusterVirtualIp6Args
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.