1. Packages
  2. Avi Provider
  3. API Docs
  4. getVsgs
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

avi.getVsgs

Explore with Pulumi AI

<!–

Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0

–>

layout: “avi”

page_title: “AVI: avi.Vsgs” sidebar_current: “docs-avi-datasource-vsgs” description: |- Get information of Avi VsGs.

avi.Vsgs

This data source is used to to get avi.Vsgs objects.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";

const fooVsgs = avi.getVsgs({
    name: "foo",
    uuid: "vsgs-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
Copy
import pulumi
import pulumi_avi as avi

foo_vsgs = avi.get_vsgs(name="foo",
    uuid="vsgs-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
Copy
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.LookupVsgs(ctx, &avi.LookupVsgsArgs{
			Name: pulumi.StringRef("foo"),
			Uuid: pulumi.StringRef("vsgs-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;

return await Deployment.RunAsync(() => 
{
    var fooVsgs = Avi.GetVsgs.Invoke(new()
    {
        Name = "foo",
        Uuid = "vsgs-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
    });

});
Copy
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.GetVsgsArgs;
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 fooVsgs = AviFunctions.getVsgs(GetVsgsArgs.builder()
            .name("foo")
            .uuid("vsgs-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
            .build());

    }
}
Copy
variables:
  fooVsgs:
    fn::invoke:
      function: avi:getVsgs
      arguments:
        name: foo
        uuid: vsgs-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Copy

Using getVsgs

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 getVsgs(args: GetVsgsArgs, opts?: InvokeOptions): Promise<GetVsgsResult>
function getVsgsOutput(args: GetVsgsOutputArgs, opts?: InvokeOptions): Output<GetVsgsResult>
Copy
def get_vsgs(id: Optional[str] = None,
             name: Optional[str] = None,
             tenant_ref: Optional[str] = None,
             uuid: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetVsgsResult
def get_vsgs_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[GetVsgsResult]
Copy
func LookupVsgs(ctx *Context, args *LookupVsgsArgs, opts ...InvokeOption) (*LookupVsgsResult, error)
func LookupVsgsOutput(ctx *Context, args *LookupVsgsOutputArgs, opts ...InvokeOption) LookupVsgsResultOutput
Copy

> Note: This function is named LookupVsgs in the Go SDK.

public static class GetVsgs 
{
    public static Task<GetVsgsResult> InvokeAsync(GetVsgsArgs args, InvokeOptions? opts = null)
    public static Output<GetVsgsResult> Invoke(GetVsgsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVsgsResult> getVsgs(GetVsgsArgs args, InvokeOptions options)
public static Output<GetVsgsResult> getVsgs(GetVsgsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: avi:index/getVsgs:getVsgs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
Name string
Search VsGs by name.
TenantRef string
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Uuid string
Search VsGs by uuid.
Id string
Name string
Search VsGs by name.
TenantRef string
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Uuid string
Search VsGs by uuid.
id String
name String
Search VsGs by name.
tenantRef String
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid String
Search VsGs by uuid.
id string
name string
Search VsGs by name.
tenantRef string
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid string
Search VsGs by uuid.
id str
name str
Search VsGs by name.
tenant_ref str
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid str
Search VsGs by uuid.
id String
name String
Search VsGs by name.
tenantRef String
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid String
Search VsGs by uuid.

getVsgs Result

The following output properties are available:

ConfigpbAttributes List<GetVsgsConfigpbAttribute>
Protobuf versioning for config pbs. Field introduced in 21.1.3. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
GeodbUuid string
Gslb geodb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
GsUuid string
Gslb service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
GslbUuid string
Gslb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Id string
Name string
Name of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
TenantRef string
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Type string
Type of the vs-gs association object. Enum options - VSGS_TYPE_GSLB, VSGS_TYPE_GS, VSGS_TYPE_GEO_DB. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Uuid string
Uuid of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
VsUuid string
Virtual service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
ConfigpbAttributes []GetVsgsConfigpbAttribute
Protobuf versioning for config pbs. Field introduced in 21.1.3. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
GeodbUuid string
Gslb geodb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
GsUuid string
Gslb service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
GslbUuid string
Gslb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Id string
Name string
Name of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
TenantRef string
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Type string
Type of the vs-gs association object. Enum options - VSGS_TYPE_GSLB, VSGS_TYPE_GS, VSGS_TYPE_GEO_DB. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
Uuid string
Uuid of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
VsUuid string
Virtual service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
configpbAttributes List<GetVsgsConfigpbAttribute>
Protobuf versioning for config pbs. Field introduced in 21.1.3. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
geodbUuid String
Gslb geodb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gsUuid String
Gslb service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gslbUuid String
Gslb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
id String
name String
Name of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
tenantRef String
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
type String
Type of the vs-gs association object. Enum options - VSGS_TYPE_GSLB, VSGS_TYPE_GS, VSGS_TYPE_GEO_DB. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid String
Uuid of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
vsUuid String
Virtual service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
configpbAttributes GetVsgsConfigpbAttribute[]
Protobuf versioning for config pbs. Field introduced in 21.1.3. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
geodbUuid string
Gslb geodb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gsUuid string
Gslb service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gslbUuid string
Gslb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
id string
name string
Name of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
tenantRef string
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
type string
Type of the vs-gs association object. Enum options - VSGS_TYPE_GSLB, VSGS_TYPE_GS, VSGS_TYPE_GEO_DB. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid string
Uuid of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
vsUuid string
Virtual service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
configpb_attributes Sequence[GetVsgsConfigpbAttribute]
Protobuf versioning for config pbs. Field introduced in 21.1.3. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
geodb_uuid str
Gslb geodb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gs_uuid str
Gslb service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gslb_uuid str
Gslb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
id str
name str
Name of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
tenant_ref str
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
type str
Type of the vs-gs association object. Enum options - VSGS_TYPE_GSLB, VSGS_TYPE_GS, VSGS_TYPE_GEO_DB. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid str
Uuid of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
vs_uuid str
Virtual service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
configpbAttributes List<Property Map>
Protobuf versioning for config pbs. Field introduced in 21.1.3. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
geodbUuid String
Gslb geodb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gsUuid String
Gslb service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
gslbUuid String
Gslb being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
id String
name String
Name of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
tenantRef String
Tenant. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
type String
Type of the vs-gs association object. Enum options - VSGS_TYPE_GSLB, VSGS_TYPE_GS, VSGS_TYPE_GEO_DB. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
uuid String
Uuid of the vs-gs association object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
vsUuid String
Virtual service being associated using this object. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.

Supporting Types

GetVsgsConfigpbAttribute

Version This property is required. string
Version This property is required. string
version This property is required. String
version This property is required. string
version This property is required. str
version This property is required. String

Package Details

Repository
avi vmware/terraform-provider-avi
License
Notes
This Pulumi package is based on the avi Terraform Provider.