avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getGeodb
Explore with Pulumi AI
<!–
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 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.
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<Get
Geodb File> - Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Id string
- Is
Federated 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<Get
Geodb Mapping> - 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.
- Tenant
Ref 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
[]Get
Geodb File - Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Id string
- Is
Federated 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
[]Get
Geodb Mapping - 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.
- Tenant
Ref 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<Get
Geodb File> - Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- id String
- is
Federated 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<Get
Geodb Mapping> - 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.
- tenant
Ref 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
Get
Geodb File[] - Geo database files. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- id string
- is
Federated 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
Get
Geodb Mapping[] - 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.
- tenant
Ref 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[Get
Geodb File] - 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[Get
Geodb Mapping] - 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
- is
Federated 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.
- tenant
Ref 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
GetGeodbMapping
- Description string
- Description. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Elements
List<Get
Geodb Mapping Element> - 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
[]Get
Geodb Mapping Element - 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<Get
Geodb Mapping Element> - 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
Get
Geodb Mapping Element[] - 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[Get
Geodb Mapping Element] - 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
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.