Azure Classic
getExtendedLocations
This data source return the available Extended Locations for a specific Azure Region.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Core.GetExtendedLocations.InvokeAsync(new Azure.Core.GetExtendedLocationsArgs
{
Location = "West Europe",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.GetExtendedLocations(ctx, &core.GetExtendedLocationsArgs{
Location: "West Europe",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(CoreFunctions.getExtendedLocations(GetExtendedLocationsArgs.builder()
.location("West Europe")
.build()));
}
}
import pulumi
import pulumi_azure as azure
example = azure.core.get_extended_locations(location="West Europe")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.core.getExtendedLocations({
location: "West Europe",
}));
variables:
example:
Fn::Invoke:
Function: azure:core:getExtendedLocations
Arguments:
location: West Europe
Using getExtendedLocations
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 getExtendedLocations(args: GetExtendedLocationsArgs, opts?: InvokeOptions): Promise<GetExtendedLocationsResult>
function getExtendedLocationsOutput(args: GetExtendedLocationsOutputArgs, opts?: InvokeOptions): Output<GetExtendedLocationsResult>
def get_extended_locations(location: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExtendedLocationsResult
def get_extended_locations_output(location: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExtendedLocationsResult]
func GetExtendedLocations(ctx *Context, args *GetExtendedLocationsArgs, opts ...InvokeOption) (*GetExtendedLocationsResult, error)
func GetExtendedLocationsOutput(ctx *Context, args *GetExtendedLocationsOutputArgs, opts ...InvokeOption) GetExtendedLocationsResultOutput
> Note: This function is named GetExtendedLocations
in the Go SDK.
public static class GetExtendedLocations
{
public static Task<GetExtendedLocationsResult> InvokeAsync(GetExtendedLocationsArgs args, InvokeOptions? opts = null)
public static Output<GetExtendedLocationsResult> Invoke(GetExtendedLocationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetExtendedLocationsResult> getExtendedLocations(GetExtendedLocationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: azure:core/getExtendedLocations:getExtendedLocations
Arguments:
# Arguments dictionary
The following arguments are supported:
- Location string
The Azure location to retrieve the Extended Locations for.
- Location string
The Azure location to retrieve the Extended Locations for.
- location String
The Azure location to retrieve the Extended Locations for.
- location string
The Azure location to retrieve the Extended Locations for.
- location str
The Azure location to retrieve the Extended Locations for.
- location String
The Azure location to retrieve the Extended Locations for.
getExtendedLocations Result
The following output properties are available:
- Extended
Locations List<string> The available extended locations for the Azure Location.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Extended
Locations []string The available extended locations for the Azure Location.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- extended
Locations List The available extended locations for the Azure Location.
- id String
The provider-assigned unique ID for this managed resource.
- location String
- extended
Locations string[] The available extended locations for the Azure Location.
- id string
The provider-assigned unique ID for this managed resource.
- location string
- extended_
locations Sequence[str] The available extended locations for the Azure Location.
- id str
The provider-assigned unique ID for this managed resource.
- location str
- extended
Locations List The available extended locations for the Azure Location.
- id String
The provider-assigned unique ID for this managed resource.
- location String
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.