1. Packages
  2. Fastly
  3. API Docs
  4. getDatacenters
Fastly v8.5.3 published on Wednesday, Apr 17, 2024 by Pulumi

fastly.getDatacenters

Explore with Pulumi AI

fastly logo
Fastly v8.5.3 published on Wednesday, Apr 17, 2024 by Pulumi

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

    Using getDatacenters

    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 getDatacenters(opts?: InvokeOptions): Promise<GetDatacentersResult>
    function getDatacentersOutput(opts?: InvokeOptions): Output<GetDatacentersResult>
    def get_datacenters(opts: Optional[InvokeOptions] = None) -> GetDatacentersResult
    def get_datacenters_output(opts: Optional[InvokeOptions] = None) -> Output[GetDatacentersResult]
    func GetDatacenters(ctx *Context, opts ...InvokeOption) (*GetDatacentersResult, error)
    func GetDatacentersOutput(ctx *Context, opts ...InvokeOption) GetDatacentersResultOutput

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

    public static class GetDatacenters 
    {
        public static Task<GetDatacentersResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetDatacentersResult> Invoke(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
    A code representing the POP location.
    Group string
    A code representing the general region of the world in which the POP location resides.
    Name string
    The name of the POP.
    Shield string
    A code representing the shielding name of the POP. The value may be empty if the POP is not available for shielding.
    Code string
    A code representing the POP location.
    Group string
    A code representing the general region of the world in which the POP location resides.
    Name string
    The name of the POP.
    Shield string
    A code representing the shielding name of the POP. The value may be empty if the POP is not available for shielding.
    code String
    A code representing the POP location.
    group String
    A code representing the general region of the world in which the POP location resides.
    name String
    The name of the POP.
    shield String
    A code representing the shielding name of the POP. The value may be empty if the POP is not available for shielding.
    code string
    A code representing the POP location.
    group string
    A code representing the general region of the world in which the POP location resides.
    name string
    The name of the POP.
    shield string
    A code representing the shielding name of the POP. The value may be empty if the POP is not available for shielding.
    code str
    A code representing the POP location.
    group str
    A code representing the general region of the world in which the POP location resides.
    name str
    The name of the POP.
    shield str
    A code representing the shielding name of the POP. The value may be empty if the POP is not available for shielding.
    code String
    A code representing the POP location.
    group String
    A code representing the general region of the world in which the POP location resides.
    name String
    The name of the POP.
    shield String
    A code representing the shielding name of the POP. The value may be empty if the POP is not available for shielding.

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v8.5.3 published on Wednesday, Apr 17, 2024 by Pulumi