avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getControllersite
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI: avi.Controllersite” sidebar_current: “docs-avi-datasource-controllersite” description: |- Get information of Avi ControllerSite.
avi.Controllersite
This data source is used to to get avi.Controllersite objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooControllersite = avi.getControllersite({
name: "foo",
uuid: "controllersite-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_controllersite = avi.get_controllersite(name="foo",
uuid="controllersite-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.LookupControllersite(ctx, &avi.LookupControllersiteArgs{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("controllersite-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 fooControllersite = Avi.GetControllersite.Invoke(new()
{
Name = "foo",
Uuid = "controllersite-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.GetControllersiteArgs;
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 fooControllersite = AviFunctions.getControllersite(GetControllersiteArgs.builder()
.name("foo")
.uuid("controllersite-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooControllersite:
fn::invoke:
function: avi:getControllersite
arguments:
name: foo
uuid: controllersite-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Using getControllersite
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 getControllersite(args: GetControllersiteArgs, opts?: InvokeOptions): Promise<GetControllersiteResult>
function getControllersiteOutput(args: GetControllersiteOutputArgs, opts?: InvokeOptions): Output<GetControllersiteResult>
def get_controllersite(id: Optional[str] = None,
name: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetControllersiteResult
def get_controllersite_output(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[GetControllersiteResult]
func LookupControllersite(ctx *Context, args *LookupControllersiteArgs, opts ...InvokeOption) (*LookupControllersiteResult, error)
func LookupControllersiteOutput(ctx *Context, args *LookupControllersiteOutputArgs, opts ...InvokeOption) LookupControllersiteResultOutput
> Note: This function is named LookupControllersite
in the Go SDK.
public static class GetControllersite
{
public static Task<GetControllersiteResult> InvokeAsync(GetControllersiteArgs args, InvokeOptions? opts = null)
public static Output<GetControllersiteResult> Invoke(GetControllersiteInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetControllersiteResult> getControllersite(GetControllersiteArgs args, InvokeOptions options)
public static Output<GetControllersiteResult> getControllersite(GetControllersiteArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getControllersite:getControllersite
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Name string
- Search ControllerSite by name.
- Tenant
Ref string - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Search ControllerSite by uuid.
- Id string
- Name string
- Search ControllerSite by name.
- Tenant
Ref string - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Search ControllerSite by uuid.
- id String
- name String
- Search ControllerSite by name.
- tenant
Ref String - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Search ControllerSite by uuid.
- id string
- name string
- Search ControllerSite by name.
- tenant
Ref string - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Search ControllerSite by uuid.
- id str
- name str
- Search ControllerSite by name.
- tenant_
ref str - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Search ControllerSite by uuid.
- id String
- name String
- Search ControllerSite by name.
- tenant
Ref String - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Search ControllerSite by uuid.
getControllersite Result
The following output properties are available:
- Address string
- Ip address or a dns resolvable, fully qualified domain name of the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes List<GetControllersite Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Port string
- The controller site cluster's rest api port number. Allowed values are 1-65535. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Reference for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Address string
- Ip address or a dns resolvable, fully qualified domain name of the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes []GetControllersite Configpb Attribute - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Port string
- The controller site cluster's rest api port number. Allowed values are 1-65535. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Reference for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- address String
- Ip address or a dns resolvable, fully qualified domain name of the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<GetControllersite Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- port String
- The controller site cluster's rest api port number. Allowed values are 1-65535. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Reference for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- address string
- Ip address or a dns resolvable, fully qualified domain name of the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes GetControllersite Configpb Attribute[] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id string
- name string
- Name for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- port string
- The controller site cluster's rest api port number. Allowed values are 1-65535. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Reference for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- address str
- Ip address or a dns resolvable, fully qualified domain name of the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb_
attributes Sequence[GetControllersite Configpb Attribute] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id str
- name str
- Name for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- port str
- The controller site cluster's rest api port number. Allowed values are 1-65535. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Reference for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- address String
- Ip address or a dns resolvable, fully qualified domain name of the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<Property Map> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- port String
- The controller site cluster's rest api port number. Allowed values are 1-65535. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - Reference for the tenant. It is a reference to an object of type tenant. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Reference for the site controller cluster. Field introduced in 18.2.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Supporting Types
GetControllersiteConfigpbAttribute
- Version string
- Version string
- version String
- version string
- version str
- version String
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.