1. Packages
  2. Equinix Metal (Deprecated)
  3. API Docs
  4. getFacility

This package is deprecated. We recommend using the new Equinix package.

Equinix Metal v3.2.1 published on Thursday, Dec 30, 2021 by DEPRECATED

equinix-metal.getFacility

Explore with Pulumi AI

equinix-metal logo

This package is deprecated. We recommend using the new Equinix package.

Equinix Metal v3.2.1 published on Thursday, Dec 30, 2021 by DEPRECATED

    Provides an Equinix Metal facility datasource.

    Using getFacility

    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 getFacility(args: GetFacilityArgs, opts?: InvokeOptions): Promise<GetFacilityResult>
    function getFacilityOutput(args: GetFacilityOutputArgs, opts?: InvokeOptions): Output<GetFacilityResult>
    def get_facility(capacities: Optional[Sequence[GetFacilityCapacity]] = None,
                     code: Optional[str] = None,
                     features_requireds: Optional[Sequence[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFacilityResult
    def get_facility_output(capacities: Optional[pulumi.Input[Sequence[pulumi.Input[GetFacilityCapacityArgs]]]] = None,
                     code: Optional[pulumi.Input[str]] = None,
                     features_requireds: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetFacilityResult]
    func GetFacility(ctx *Context, args *GetFacilityArgs, opts ...InvokeOption) (*GetFacilityResult, error)
    func GetFacilityOutput(ctx *Context, args *GetFacilityOutputArgs, opts ...InvokeOption) GetFacilityResultOutput

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

    public static class GetFacility 
    {
        public static Task<GetFacilityResult> InvokeAsync(GetFacilityArgs args, InvokeOptions? opts = null)
        public static Output<GetFacilityResult> Invoke(GetFacilityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFacilityResult> getFacility(GetFacilityArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: equinix-metal:index/getFacility:getFacility
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Code string
    The facility code
    Capacities List<Pulumi.EquinixMetal.Inputs.GetFacilityCapacity>
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    FeaturesRequireds List<string>
    Set of feature strings that the facility must have
    Code string
    The facility code
    Capacities []GetFacilityCapacity
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    FeaturesRequireds []string
    Set of feature strings that the facility must have
    code String
    The facility code
    capacities List<GetFacilityCapacity>
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    featuresRequireds List<String>
    Set of feature strings that the facility must have
    code string
    The facility code
    capacities GetFacilityCapacity[]
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    featuresRequireds string[]
    Set of feature strings that the facility must have
    code str
    The facility code
    capacities Sequence[GetFacilityCapacity]
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    features_requireds Sequence[str]
    Set of feature strings that the facility must have
    code String
    The facility code
    capacities List<Property Map>
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    featuresRequireds List<String>
    Set of feature strings that the facility must have

    getFacility Result

    The following output properties are available:

    Code string
    Features List<string>
    The features of the facility
    Id string
    The provider-assigned unique ID for this managed resource.
    Metro string
    The metro code the facility is part of
    Name string
    The name of the facility
    Capacities List<Pulumi.EquinixMetal.Outputs.GetFacilityCapacity>
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    FeaturesRequireds List<string>
    Code string
    Features []string
    The features of the facility
    Id string
    The provider-assigned unique ID for this managed resource.
    Metro string
    The metro code the facility is part of
    Name string
    The name of the facility
    Capacities []GetFacilityCapacity
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    FeaturesRequireds []string
    code String
    features List<String>
    The features of the facility
    id String
    The provider-assigned unique ID for this managed resource.
    metro String
    The metro code the facility is part of
    name String
    The name of the facility
    capacities List<GetFacilityCapacity>
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    featuresRequireds List<String>
    code string
    features string[]
    The features of the facility
    id string
    The provider-assigned unique ID for this managed resource.
    metro string
    The metro code the facility is part of
    name string
    The name of the facility
    capacities GetFacilityCapacity[]
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    featuresRequireds string[]
    code str
    features Sequence[str]
    The features of the facility
    id str
    The provider-assigned unique ID for this managed resource.
    metro str
    The metro code the facility is part of
    name str
    The name of the facility
    capacities Sequence[GetFacilityCapacity]
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    features_requireds Sequence[str]
    code String
    features List<String>
    The features of the facility
    id String
    The provider-assigned unique ID for this managed resource.
    metro String
    The metro code the facility is part of
    name String
    The name of the facility
    capacities List<Property Map>
    (Optional) Ensure that queried facility has capacity for specified number of given plans
    featuresRequireds List<String>

    Supporting Types

    GetFacilityCapacity

    Plan string
    device plan to check
    Quantity int
    number of device to check
    Plan string
    device plan to check
    Quantity int
    number of device to check
    plan String
    device plan to check
    quantity Integer
    number of device to check
    plan string
    device plan to check
    quantity number
    number of device to check
    plan str
    device plan to check
    quantity int
    number of device to check
    plan String
    device plan to check
    quantity Number
    number of device to check

    Package Details

    Repository
    Equinix Metal pulumi/pulumi-equinix-metal
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the metal Terraform Provider.
    equinix-metal logo

    This package is deprecated. We recommend using the new Equinix package.

    Equinix Metal v3.2.1 published on Thursday, Dec 30, 2021 by DEPRECATED