1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. getRegion
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.getRegion

Explore with Pulumi AI

gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

Represent region data

Using getRegion

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 getRegion(args: GetRegionArgs, opts?: InvokeOptions): Promise<GetRegionResult>
function getRegionOutput(args: GetRegionOutputArgs, opts?: InvokeOptions): Output<GetRegionResult>
Copy
def get_region(id: Optional[str] = None,
               name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetRegionResult
def get_region_output(id: Optional[pulumi.Input[str]] = None,
               name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetRegionResult]
Copy
func GetRegion(ctx *Context, args *GetRegionArgs, opts ...InvokeOption) (*GetRegionResult, error)
func GetRegionOutput(ctx *Context, args *GetRegionOutputArgs, opts ...InvokeOption) GetRegionResultOutput
Copy

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

public static class GetRegion 
{
    public static Task<GetRegionResult> InvokeAsync(GetRegionArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionResult> Invoke(GetRegionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRegionResult> getRegion(GetRegionArgs args, InvokeOptions options)
public static Output<GetRegionResult> getRegion(GetRegionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcorelabs:index/getRegion:getRegion
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Displayed region name
Id string
The ID of this resource.
Name This property is required. string
Displayed region name
Id string
The ID of this resource.
name This property is required. String
Displayed region name
id String
The ID of this resource.
name This property is required. string
Displayed region name
id string
The ID of this resource.
name This property is required. str
Displayed region name
id str
The ID of this resource.
name This property is required. String
Displayed region name
id String
The ID of this resource.

getRegion Result

The following output properties are available:

Id string
The ID of this resource.
Name string
Displayed region name
Id string
The ID of this resource.
Name string
Displayed region name
id String
The ID of this resource.
name String
Displayed region name
id string
The ID of this resource.
name string
Displayed region name
id str
The ID of this resource.
name str
Displayed region name
id String
The ID of this resource.
name String
Displayed region name

Package Details

Repository
gcorelabs g-core/terraform-provider-gcorelabs
License
Notes
This Pulumi package is based on the gcorelabs Terraform Provider.
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core