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

avi.getGeodb

Explore with Pulumi AI

avi logo
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

    <!–

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

    –>

    layout: “avi”

    page_title: “AVI: avi.Geodb” sidebar_current: “docs-avi-datasource-geodb” description: |- Get information of Avi GeoDB.

    avi.Geodb

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as avi from "@pulumi/avi";
    
    const fooGeodb = avi.getGeodb({
        name: "foo",
        uuid: "geodb-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
    });
    
    import pulumi
    import pulumi_avi as avi
    
    foo_geodb = avi.get_geodb(name="foo",
        uuid="geodb-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.LookupGeodb(ctx, &avi.LookupGeodbArgs{
    			Name: pulumi.StringRef("foo"),
    			Uuid: pulumi.StringRef("geodb-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 fooGeodb = Avi.GetGeodb.Invoke(new()
        {
            Name = "foo",
            Uuid = "geodb-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.GetGeodbArgs;
    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 fooGeodb = AviFunctions.getGeodb(GetGeodbArgs.builder()
                .name("foo")
                .uuid("geodb-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
                .build());
    
        }
    }
    
    variables:
      fooGeodb:
        fn::invoke:
          function: avi:getGeodb
          arguments:
            name: foo
            uuid: geodb-f9cf6b3e-a411-436f-95e2-2982ba2b217b
    

    Using getGeodb

    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 getGeodb(args: GetGeodbArgs, opts?: InvokeOptions): Promise<GetGeodbResult>
    function getGeodbOutput(args: GetGeodbOutputArgs, opts?: InvokeOptions): Output<GetGeodbResult>
    def get_geodb(id: Optional[str] = None,
                  name: Optional[str] = None,
                  tenant_ref: Optional[str] = None,
                  uuid: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetGeodbResult
    def get_geodb_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[GetGeodbResult]
    func LookupGeodb(ctx *Context, args *LookupGeodbArgs, opts ...InvokeOption) (*LookupGeodbResult, error)
    func LookupGeodbOutput(ctx *Context, args *LookupGeodbOutputArgs, opts ...InvokeOption) LookupGeodbResultOutput

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

    public static class GetGeodb 
    {
        public static Task<GetGeodbResult> InvokeAsync(GetGeodbArgs args, InvokeOptions? opts = null)
        public static Output<GetGeodbResult> Invoke(GetGeodbInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGeodbResult> getGeodb(GetGeodbArgs args, InvokeOptions options)
    public static Output<GetGeodbResult> getGeodb(GetGeodbArgs args, InvokeOptions options)
    
    fn::invoke:
      function: avi:index/getGeodb:getGeodb
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getGeodb Result

    The following output properties are available:

    Description string
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Files List<GetGeodbFile>
    Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Id string
    IsFederated string
    This field indicates that this object is replicated across gslb federation. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Mappings List<GetGeodbMapping>
    Custom mappings of geo values. All mappings which start with the prefix 'system-' (any case) are reserved for system default objects and may be overwritten. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    Geo database name. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    Uuid of this object. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Description string
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Files []GetGeodbFile
    Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Id string
    IsFederated string
    This field indicates that this object is replicated across gslb federation. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Mappings []GetGeodbMapping
    Custom mappings of geo values. All mappings which start with the prefix 'system-' (any case) are reserved for system default objects and may be overwritten. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    Geo database name. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    Uuid of this object. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    description String
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    files List<GetGeodbFile>
    Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    id String
    isFederated String
    This field indicates that this object is replicated across gslb federation. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    mappings List<GetGeodbMapping>
    Custom mappings of geo values. All mappings which start with the prefix 'system-' (any case) are reserved for system default objects and may be overwritten. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    Geo database name. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    Uuid of this object. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    description string
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    files GetGeodbFile[]
    Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    id string
    isFederated string
    This field indicates that this object is replicated across gslb federation. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    mappings GetGeodbMapping[]
    Custom mappings of geo values. All mappings which start with the prefix 'system-' (any case) are reserved for system default objects and may be overwritten. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name string
    Geo database name. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid string
    Uuid of this object. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    description str
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    files Sequence[GetGeodbFile]
    Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    id str
    is_federated str
    This field indicates that this object is replicated across gslb federation. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    mappings Sequence[GetGeodbMapping]
    Custom mappings of geo values. All mappings which start with the prefix 'system-' (any case) are reserved for system default objects and may be overwritten. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name str
    Geo database name. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenant_ref str
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid str
    Uuid of this object. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    description String
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    files List<Property Map>
    Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    id String
    isFederated String
    This field indicates that this object is replicated across gslb federation. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    mappings List<Property Map>
    Custom mappings of geo values. All mappings which start with the prefix 'system-' (any case) are reserved for system default objects and may be overwritten. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    Geo database name. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    Uuid of this object. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.

    Supporting Types

    GetGeodbFile

    Enabled string
    FileRef string
    Index string
    Name string
    Search GeoDB by name.
    Vendor string
    Enabled string
    FileRef string
    Index string
    Name string
    Search GeoDB by name.
    Vendor string
    enabled String
    fileRef String
    index String
    name String
    Search GeoDB by name.
    vendor String
    enabled string
    fileRef string
    index string
    name string
    Search GeoDB by name.
    vendor string
    enabled str
    file_ref str
    index str
    name str
    Search GeoDB by name.
    vendor str
    enabled String
    fileRef String
    index String
    name String
    Search GeoDB by name.
    vendor String

    GetGeodbMapping

    Description string
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Elements List<GetGeodbMappingElement>
    Name string
    Search GeoDB by name.
    Description string
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Elements []GetGeodbMappingElement
    Name string
    Search GeoDB by name.
    description String
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    elements List<GetGeodbMappingElement>
    name String
    Search GeoDB by name.
    description string
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    elements GetGeodbMappingElement[]
    name string
    Search GeoDB by name.
    description str
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    elements Sequence[GetGeodbMappingElement]
    name str
    Search GeoDB by name.
    description String
    Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    elements List<Property Map>
    name String
    Search GeoDB by name.

    GetGeodbMappingElement

    Attribute string
    Values List<string>
    Attribute string
    Values []string
    attribute String
    values List<String>
    attribute string
    values string[]
    attribute str
    values Sequence[str]
    attribute String
    values List<String>

    Package Details

    Repository
    avi vmware/terraform-provider-avi
    License
    Notes
    This Pulumi package is based on the avi Terraform Provider.
    avi logo
    avi 31.1.1 published on Monday, Apr 14, 2025 by vmware