avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getCluster
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-datasource-cluster” description: |- Get information of Avi Cluster.
avi.Cluster
This data source is used to to get avi.Cluster objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooCluster = avi.getCluster({
name: "foo",
uuid: "cluster-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_cluster = avi.get_cluster(name="foo",
uuid="cluster-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
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.LookupCluster(ctx, &avi.LookupClusterArgs{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("cluster-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
}, nil)
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 fooCluster = Avi.GetCluster.Invoke(new()
{
Name = "foo",
Uuid = "cluster-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.AviFunctions;
import com.pulumi.avi.inputs.GetClusterArgs;
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 fooCluster = AviFunctions.getCluster(GetClusterArgs.builder()
.name("foo")
.uuid("cluster-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooCluster:
fn::invoke:
function: avi:getCluster
arguments:
name: foo
uuid: cluster-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Using getCluster
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 getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>
def get_cluster(cluster_states: Optional[Sequence[GetClusterClusterState]] = None,
id: Optional[str] = None,
name: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(cluster_states: Optional[pulumi.Input[Sequence[pulumi.Input[GetClusterClusterStateArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tenant_ref: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]
func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput
> Note: This function is named LookupCluster
in the Go SDK.
public static class GetCluster
{
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
public static Output<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getCluster:getCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
States List<GetCluster Cluster State> - Id string
- Name string
- Search Cluster by name.
- 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
- Search Cluster by uuid.
- Cluster
States []GetCluster Cluster State - Id string
- Name string
- Search Cluster by name.
- 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
- Search Cluster by uuid.
- cluster
States List<GetCluster Cluster State> - id String
- name String
- Search Cluster by name.
- 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
- Search Cluster by uuid.
- cluster
States GetCluster Cluster State[] - id string
- name string
- Search Cluster by name.
- 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
- Search Cluster by uuid.
- cluster_
states Sequence[GetCluster Cluster State] - id str
- name str
- Search Cluster by name.
- 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
- Search Cluster by uuid.
- cluster
States List<Property Map> - id String
- name String
- Search Cluster by name.
- 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
- Search Cluster by uuid.
getCluster Result
The following output properties are available:
- Id string
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Nodes
List<Get
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<GetCluster Virtual 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<GetCluster Virtual 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
States List<GetCluster Cluster State>
- Id string
- Name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Nodes
[]Get
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 []GetCluster Virtual 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 []GetCluster Virtual 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
States []GetCluster Cluster State
- id String
- name String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
List<Get
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<GetCluster Virtual 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<GetCluster Virtual 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
States List<GetCluster Cluster State>
- id string
- name string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
Get
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 GetCluster Virtual 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 GetCluster Virtual 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
States GetCluster Cluster State[]
- id str
- name str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- nodes
Sequence[Get
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_ 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[GetCluster Virtual 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 Sequence[GetCluster Virtual 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_
states Sequence[GetCluster Cluster State]
- id String
- 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.
- cluster
States List<Property Map>
Supporting Types
GetClusterClusterState
GetClusterNode
- Categories List<string>
- Interfaces
List<Get
Cluster Node Interface> - Ip6s
List<Get
Cluster Node Ip6> - Ips
List<Get
Cluster Node Ip> - Name string
- Search Cluster by name.
- Password string
- Public
Ip List<GetOr Names Cluster Node Public Ip Or Name> - Static
Routes List<GetCluster Node Static Route> - Vm
Hostname string - Vm
Mor string - Vm
Name string - Vm
Uuid string
- Categories []string
- Interfaces
[]Get
Cluster Node Interface - Ip6s
[]Get
Cluster Node Ip6 - Ips
[]Get
Cluster Node Ip - Name string
- Search Cluster by name.
- Password string
- Public
Ip []GetOr Names Cluster Node Public Ip Or Name - Static
Routes []GetCluster Node Static Route - Vm
Hostname string - Vm
Mor string - Vm
Name string - Vm
Uuid string
- categories List<String>
- interfaces
List<Get
Cluster Node Interface> - ip6s
List<Get
Cluster Node Ip6> - ips
List<Get
Cluster Node Ip> - name String
- Search Cluster by name.
- password String
- public
Ip List<GetOr Names Cluster Node Public Ip Or Name> - static
Routes List<GetCluster Node Static Route> - vm
Hostname String - vm
Mor String - vm
Name String - vm
Uuid String
- categories string[]
- interfaces
Get
Cluster Node Interface[] - ip6s
Get
Cluster Node Ip6[] - ips
Get
Cluster Node Ip[] - name string
- Search Cluster by name.
- password string
- public
Ip GetOr Names Cluster Node Public Ip Or Name[] - static
Routes GetCluster Node Static Route[] - vm
Hostname string - vm
Mor string - vm
Name string - vm
Uuid string
- categories Sequence[str]
- interfaces
Sequence[Get
Cluster Node Interface] - ip6s
Sequence[Get
Cluster Node Ip6] - ips
Sequence[Get
Cluster Node Ip] - name str
- Search Cluster by name.
- password str
- public_
ip_ Sequence[Getor_ names Cluster Node Public Ip Or Name] - static_
routes Sequence[GetCluster Node 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
- Search Cluster by name.
- 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
GetClusterNodeInterface
- Gateway6s
List<Get
Cluster Node Interface Gateway6> - Gateways
List<Get
Cluster Node Interface Gateway> - If
Name string - Ip6s
List<Get
Cluster Node Interface Ip6> - Ips
List<Get
Cluster Node Interface Ip> - Labels List<string>
- Mac
Address string - Mode string
- Mode6 string
- Public
Ip List<GetOr Names Cluster Node Interface Public Ip Or Name> - V4Enabled string
- V6Enabled string
- Gateway6s
[]Get
Cluster Node Interface Gateway6 - Gateways
[]Get
Cluster Node Interface Gateway - If
Name string - Ip6s
[]Get
Cluster Node Interface Ip6 - Ips
[]Get
Cluster Node Interface Ip - Labels []string
- Mac
Address string - Mode string
- Mode6 string
- Public
Ip []GetOr Names Cluster Node Interface Public Ip Or Name - V4Enabled string
- V6Enabled string
- gateway6s
List<Get
Cluster Node Interface Gateway6> - gateways
List<Get
Cluster Node Interface Gateway> - if
Name String - ip6s
List<Get
Cluster Node Interface Ip6> - ips
List<Get
Cluster Node Interface Ip> - labels List<String>
- mac
Address String - mode String
- mode6 String
- public
Ip List<GetOr Names Cluster Node Interface Public Ip Or Name> - v4Enabled String
- v6Enabled String
- gateway6s
Get
Cluster Node Interface Gateway6[] - gateways
Get
Cluster Node Interface Gateway[] - if
Name string - ip6s
Get
Cluster Node Interface Ip6[] - ips
Get
Cluster Node Interface Ip[] - labels string[]
- mac
Address string - mode string
- mode6 string
- public
Ip GetOr Names Cluster Node Interface Public Ip Or Name[] - v4Enabled string
- v6Enabled string
- gateway6s
Sequence[Get
Cluster Node Interface Gateway6] - gateways
Sequence[Get
Cluster Node Interface Gateway] - if_
name str - ip6s
Sequence[Get
Cluster Node Interface Ip6] - ips
Sequence[Get
Cluster Node Interface Ip] - labels Sequence[str]
- mac_
address str - mode str
- mode6 str
- public_
ip_ Sequence[Getor_ names Cluster 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
GetClusterNodeInterfaceGateway
GetClusterNodeInterfaceGateway6
GetClusterNodeInterfaceIp
- ip
Addrs List<Property Map> - mask String
GetClusterNodeInterfaceIp6
- ip
Addrs List<Property Map> - mask String
GetClusterNodeInterfaceIp6IpAddr
GetClusterNodeInterfaceIpIpAddr
GetClusterNodeInterfacePublicIpOrName
GetClusterNodeIp
GetClusterNodeIp6
GetClusterNodePublicIpOrName
GetClusterNodeStaticRoute
GetClusterNodeStaticRouteLabel
GetClusterNodeStaticRouteNextHop
GetClusterNodeStaticRoutePrefix
- ip
Addrs List<Property Map> - mask String
GetClusterNodeStaticRoutePrefixIpAddr
GetClusterVirtualIp
GetClusterVirtualIp6
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.