Fastly

v5.0.1 published on Thursday, Sep 1, 2022 by Pulumi

getDatacenters

Use this data source to get the list of the Fastly datacenters.

Using getDatacenters

function getDatacenters(opts?: InvokeOptions): Promise<GetDatacentersResult>
def get_datacenters(opts: Optional[InvokeOptions] = None) -> GetDatacentersResult
func GetDatacenters(ctx *Context, opts ...InvokeOption) (*GetDatacentersResult, error)

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

public static class GetDatacenters 
{
    public static Task<GetDatacentersResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatacentersResult> getDatacenters(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: fastly:index/getDatacenters:getDatacenters
  Arguments:
    # Arguments dictionary

getDatacenters Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Pops List<GetDatacentersPop>

A list of all Fastly POPs.

Id string

The provider-assigned unique ID for this managed resource.

Pops []GetDatacentersPop

A list of all Fastly POPs.

id String

The provider-assigned unique ID for this managed resource.

pops List<GetDatacentersPop>

A list of all Fastly POPs.

id string

The provider-assigned unique ID for this managed resource.

pops GetDatacentersPop[]

A list of all Fastly POPs.

id str

The provider-assigned unique ID for this managed resource.

pops Sequence[GetDatacentersPop]

A list of all Fastly POPs.

id String

The provider-assigned unique ID for this managed resource.

pops List<Property Map>

A list of all Fastly POPs.

Supporting Types

GetDatacentersPop

Code string
Group string
Name string
Shield string
Code string
Group string
Name string
Shield string
code String
group String
name String
shield String
code string
group string
name string
shield string
code str
group str
name str
shield str
code String
group String
name String
shield String

Package Details

Repository
https://github.com/pulumi/pulumi-fastly
License
Apache-2.0
Notes

This Pulumi package is based on the fastly Terraform Provider.