avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getTenant
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI: avi.Tenant” sidebar_current: “docs-avi-datasource-tenant” description: |- Get information of Avi Tenant.
avi.Tenant
This data source is used to to get avi.Tenant objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooTenant = avi.getTenant({
name: "foo",
uuid: "tenant-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_tenant = avi.get_tenant(name="foo",
uuid="tenant-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.LookupTenant(ctx, &avi.LookupTenantArgs{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("tenant-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 fooTenant = Avi.GetTenant.Invoke(new()
{
Name = "foo",
Uuid = "tenant-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.GetTenantArgs;
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 fooTenant = AviFunctions.getTenant(GetTenantArgs.builder()
.name("foo")
.uuid("tenant-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooTenant:
fn::invoke:
function: avi:getTenant
arguments:
name: foo
uuid: tenant-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Using getTenant
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 getTenant(args: GetTenantArgs, opts?: InvokeOptions): Promise<GetTenantResult>
function getTenantOutput(args: GetTenantOutputArgs, opts?: InvokeOptions): Output<GetTenantResult>
def get_tenant(id: Optional[str] = None,
name: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTenantResult
def get_tenant_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTenantResult]
func LookupTenant(ctx *Context, args *LookupTenantArgs, opts ...InvokeOption) (*LookupTenantResult, error)
func LookupTenantOutput(ctx *Context, args *LookupTenantOutputArgs, opts ...InvokeOption) LookupTenantResultOutput
> Note: This function is named LookupTenant
in the Go SDK.
public static class GetTenant
{
public static Task<GetTenantResult> InvokeAsync(GetTenantArgs args, InvokeOptions? opts = null)
public static Output<GetTenantResult> Invoke(GetTenantInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTenantResult> getTenant(GetTenantArgs args, InvokeOptions options)
public static Output<GetTenantResult> getTenant(GetTenantArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getTenant:getTenant
arguments:
# arguments dictionary
The following arguments are supported:
getTenant Result
The following output properties are available:
- Attrs
List<Get
Tenant Attr> - Key/value tenant attributes. Field introduced in 30.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Config
Settings List<GetTenant Config Setting> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes List<GetTenant 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.
- Created
By string - Creator of this tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Enforce
Label stringGroup - The referred label groups are enforced on the tenant if this is set to true.if this is set to false, the label groups are suggested for the tenant. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- Id string
- Label
Group List<string>Refs - The label_groups to be enforced on the tenant. This is strictly enforced only if enforce_label_group is set to true. It is a reference to an object of type labelgroup. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- Local string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- 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.
- Attrs
[]Get
Tenant Attr - Key/value tenant attributes. Field introduced in 30.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Config
Settings []GetTenant Config Setting - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes []GetTenant 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.
- Created
By string - Creator of this tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Enforce
Label stringGroup - The referred label groups are enforced on the tenant if this is set to true.if this is set to false, the label groups are suggested for the tenant. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- Id string
- Label
Group []stringRefs - The label_groups to be enforced on the tenant. This is strictly enforced only if enforce_label_group is set to true. It is a reference to an object of type labelgroup. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- Local string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Name string
- 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.
- attrs
List<Get
Tenant Attr> - Key/value tenant attributes. Field introduced in 30.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- config
Settings List<GetTenant Config Setting> - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<GetTenant 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.
- created
By String - Creator of this tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enforce
Label StringGroup - The referred label groups are enforced on the tenant if this is set to true.if this is set to false, the label groups are suggested for the tenant. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- id String
- label
Group List<String>Refs - The label_groups to be enforced on the tenant. This is strictly enforced only if enforce_label_group is set to true. It is a reference to an object of type labelgroup. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- local String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- 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.
- attrs
Get
Tenant Attr[] - Key/value tenant attributes. Field introduced in 30.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- config
Settings GetTenant Config Setting[] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes GetTenant 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.
- created
By string - Creator of this tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enforce
Label stringGroup - The referred label groups are enforced on the tenant if this is set to true.if this is set to false, the label groups are suggested for the tenant. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- id string
- label
Group string[]Refs - The label_groups to be enforced on the tenant. This is strictly enforced only if enforce_label_group is set to true. It is a reference to an object of type labelgroup. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- local string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name string
- 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.
- attrs
Sequence[Get
Tenant Attr] - Key/value tenant attributes. Field introduced in 30.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- config_
settings Sequence[GetTenant Config Setting] - Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb_
attributes Sequence[GetTenant 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.
- created_
by str - Creator of this tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enforce_
label_ strgroup - The referred label groups are enforced on the tenant if this is set to true.if this is set to false, the label groups are suggested for the tenant. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- id str
- label_
group_ Sequence[str]refs - The label_groups to be enforced on the tenant. This is strictly enforced only if enforce_label_group is set to true. It is a reference to an object of type labelgroup. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- local str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name str
- 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.
- attrs List<Property Map>
- Key/value tenant attributes. Field introduced in 30.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- config
Settings List<Property Map> - 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.
- created
By String - Creator of this tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enforce
Label StringGroup - The referred label groups are enforced on the tenant if this is set to true.if this is set to false, the label groups are suggested for the tenant. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- id String
- label
Group List<String>Refs - The label_groups to be enforced on the tenant. This is strictly enforced only if enforce_label_group is set to true. It is a reference to an object of type labelgroup. Field introduced in 20.1.5. Allowed with any value in enterprise, enterprise with cloud services edition.
- local String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- name String
- 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.
Supporting Types
GetTenantAttr
GetTenantConfigSetting
- Se
In stringProvider Context - Tenant
Access stringTo Provider Se - Tenant
Vrf string
- Se
In stringProvider Context - Tenant
Access stringTo Provider Se - Tenant
Vrf string
- se
In StringProvider Context - tenant
Access StringTo Provider Se - tenant
Vrf String
- se
In stringProvider Context - tenant
Access stringTo Provider Se - tenant
Vrf string
- se
In StringProvider Context - tenant
Access StringTo Provider Se - tenant
Vrf String
GetTenantConfigpbAttribute
- 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.