1. Packages
  2. Equinix
  3. API Docs
  4. metal
  5. getPlans
Equinix v0.21.0 published on Friday, Feb 28, 2025 by Equinix

equinix.metal.getPlans

Explore with Pulumi AI

Equinix v0.21.0 published on Friday, Feb 28, 2025 by Equinix

Using getPlans

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 getPlans(args: GetPlansArgs, opts?: InvokeOptions): Promise<GetPlansResult>
function getPlansOutput(args: GetPlansOutputArgs, opts?: InvokeOptions): Output<GetPlansResult>
Copy
def get_plans(filters: Optional[Sequence[GetPlansFilter]] = None,
              sorts: Optional[Sequence[GetPlansSort]] = None,
              opts: Optional[InvokeOptions] = None) -> GetPlansResult
def get_plans_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPlansFilterArgs]]]] = None,
              sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetPlansSortArgs]]]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetPlansResult]
Copy
func GetPlans(ctx *Context, args *GetPlansArgs, opts ...InvokeOption) (*GetPlansResult, error)
func GetPlansOutput(ctx *Context, args *GetPlansOutputArgs, opts ...InvokeOption) GetPlansResultOutput
Copy

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

public static class GetPlans 
{
    public static Task<GetPlansResult> InvokeAsync(GetPlansArgs args, InvokeOptions? opts = null)
    public static Output<GetPlansResult> Invoke(GetPlansInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPlansResult> getPlans(GetPlansArgs args, InvokeOptions options)
public static Output<GetPlansResult> getPlans(GetPlansArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: equinix:metal/getPlans:getPlans
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetPlansFilter>
One or more attribute/values pairs to filter off of
Sorts List<GetPlansSort>
One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
Filters []GetPlansFilter
One or more attribute/values pairs to filter off of
Sorts []GetPlansSort
One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
filters List<GetPlansFilter>
One or more attribute/values pairs to filter off of
sorts List<GetPlansSort>
One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
filters GetPlansFilter[]
One or more attribute/values pairs to filter off of
sorts GetPlansSort[]
One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
filters Sequence[GetPlansFilter]
One or more attribute/values pairs to filter off of
sorts Sequence[GetPlansSort]
One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
filters List<Property Map>
One or more attribute/values pairs to filter off of
sorts List<Property Map>
One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order

getPlans Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Plans List<GetPlansPlan>
Filters List<GetPlansFilter>
Sorts List<GetPlansSort>
Id string
The provider-assigned unique ID for this managed resource.
Plans []GetPlansPlan
Filters []GetPlansFilter
Sorts []GetPlansSort
id String
The provider-assigned unique ID for this managed resource.
plans List<GetPlansPlan>
filters List<GetPlansFilter>
sorts List<GetPlansSort>
id string
The provider-assigned unique ID for this managed resource.
plans GetPlansPlan[]
filters GetPlansFilter[]
sorts GetPlansSort[]
id str
The provider-assigned unique ID for this managed resource.
plans Sequence[GetPlansPlan]
filters Sequence[GetPlansFilter]
sorts Sequence[GetPlansSort]
id String
The provider-assigned unique ID for this managed resource.
plans List<Property Map>
filters List<Property Map>
sorts List<Property Map>

Supporting Types

GetPlansFilter

Attribute This property is required. string
The attribute used to filter. Filter attributes are case-sensitive
Values This property is required. List<string>
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
All bool

If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is false.

All fields in the plans block defined below can be used as attribute for both sort and filter blocks.

MatchBy string
The type of comparison to apply. One of: in , re, substring, less_than, less_than_or_equal, greater_than, greater_than_or_equal. Default is in.
Attribute This property is required. string
The attribute used to filter. Filter attributes are case-sensitive
Values This property is required. []string
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
All bool

If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is false.

All fields in the plans block defined below can be used as attribute for both sort and filter blocks.

MatchBy string
The type of comparison to apply. One of: in , re, substring, less_than, less_than_or_equal, greater_than, greater_than_or_equal. Default is in.
attribute This property is required. String
The attribute used to filter. Filter attributes are case-sensitive
values This property is required. List<String>
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
all Boolean

If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is false.

All fields in the plans block defined below can be used as attribute for both sort and filter blocks.

matchBy String
The type of comparison to apply. One of: in , re, substring, less_than, less_than_or_equal, greater_than, greater_than_or_equal. Default is in.
attribute This property is required. string
The attribute used to filter. Filter attributes are case-sensitive
values This property is required. string[]
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
all boolean

If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is false.

All fields in the plans block defined below can be used as attribute for both sort and filter blocks.

matchBy string
The type of comparison to apply. One of: in , re, substring, less_than, less_than_or_equal, greater_than, greater_than_or_equal. Default is in.
attribute This property is required. str
The attribute used to filter. Filter attributes are case-sensitive
values This property is required. Sequence[str]
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
all bool

If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is false.

All fields in the plans block defined below can be used as attribute for both sort and filter blocks.

match_by str
The type of comparison to apply. One of: in , re, substring, less_than, less_than_or_equal, greater_than, greater_than_or_equal. Default is in.
attribute This property is required. String
The attribute used to filter. Filter attributes are case-sensitive
values This property is required. List<String>
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR by default, and the request returns all results that match any of the specified values
all Boolean

If is set to true, the values are joined with an AND, and the requests returns only the results that match all specified values. Default is false.

All fields in the plans block defined below can be used as attribute for both sort and filter blocks.

matchBy String
The type of comparison to apply. One of: in , re, substring, less_than, less_than_or_equal, greater_than, greater_than_or_equal. Default is in.

GetPlansPlan

AvailableInMetros This property is required. List<string>
list of metros where the plan is available
AvailableIns This property is required. List<string>
(Deprecated) list of facilities where the plan is available

Deprecated: Use available_in_metros instead. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices

Class This property is required. string
plan class
DeploymentTypes This property is required. List<string>
list of deployment types, e.g. on_demand, spot_market
Description This property is required. string
description of the plan
Id This property is required. string
id of the plan
Legacy This property is required. bool
flag showing if it's a legacy plan
Line This property is required. string
plan line, e.g. baremetal
Name This property is required. string
name of the plan
PricingHour This property is required. double
plan hourly price
PricingMonth This property is required. double
plan monthly price
Slug This property is required. string
plan slug
AvailableInMetros This property is required. []string
list of metros where the plan is available
AvailableIns This property is required. []string
(Deprecated) list of facilities where the plan is available

Deprecated: Use available_in_metros instead. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices

Class This property is required. string
plan class
DeploymentTypes This property is required. []string
list of deployment types, e.g. on_demand, spot_market
Description This property is required. string
description of the plan
Id This property is required. string
id of the plan
Legacy This property is required. bool
flag showing if it's a legacy plan
Line This property is required. string
plan line, e.g. baremetal
Name This property is required. string
name of the plan
PricingHour This property is required. float64
plan hourly price
PricingMonth This property is required. float64
plan monthly price
Slug This property is required. string
plan slug
availableInMetros This property is required. List<String>
list of metros where the plan is available
availableIns This property is required. List<String>
(Deprecated) list of facilities where the plan is available

Deprecated: Use available_in_metros instead. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices

class_ This property is required. String
plan class
deploymentTypes This property is required. List<String>
list of deployment types, e.g. on_demand, spot_market
description This property is required. String
description of the plan
id This property is required. String
id of the plan
legacy This property is required. Boolean
flag showing if it's a legacy plan
line This property is required. String
plan line, e.g. baremetal
name This property is required. String
name of the plan
pricingHour This property is required. Double
plan hourly price
pricingMonth This property is required. Double
plan monthly price
slug This property is required. String
plan slug
availableInMetros This property is required. string[]
list of metros where the plan is available
availableIns This property is required. string[]
(Deprecated) list of facilities where the plan is available

Deprecated: Use available_in_metros instead. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices

class This property is required. string
plan class
deploymentTypes This property is required. string[]
list of deployment types, e.g. on_demand, spot_market
description This property is required. string
description of the plan
id This property is required. string
id of the plan
legacy This property is required. boolean
flag showing if it's a legacy plan
line This property is required. string
plan line, e.g. baremetal
name This property is required. string
name of the plan
pricingHour This property is required. number
plan hourly price
pricingMonth This property is required. number
plan monthly price
slug This property is required. string
plan slug
available_in_metros This property is required. Sequence[str]
list of metros where the plan is available
available_ins This property is required. Sequence[str]
(Deprecated) list of facilities where the plan is available

Deprecated: Use available_in_metros instead. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices

class_ This property is required. str
plan class
deployment_types This property is required. Sequence[str]
list of deployment types, e.g. on_demand, spot_market
description This property is required. str
description of the plan
id This property is required. str
id of the plan
legacy This property is required. bool
flag showing if it's a legacy plan
line This property is required. str
plan line, e.g. baremetal
name This property is required. str
name of the plan
pricing_hour This property is required. float
plan hourly price
pricing_month This property is required. float
plan monthly price
slug This property is required. str
plan slug
availableInMetros This property is required. List<String>
list of metros where the plan is available
availableIns This property is required. List<String>
(Deprecated) list of facilities where the plan is available

Deprecated: Use available_in_metros instead. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices

class This property is required. String
plan class
deploymentTypes This property is required. List<String>
list of deployment types, e.g. on_demand, spot_market
description This property is required. String
description of the plan
id This property is required. String
id of the plan
legacy This property is required. Boolean
flag showing if it's a legacy plan
line This property is required. String
plan line, e.g. baremetal
name This property is required. String
name of the plan
pricingHour This property is required. Number
plan hourly price
pricingMonth This property is required. Number
plan monthly price
slug This property is required. String
plan slug

GetPlansSort

Attribute This property is required. string
The attribute used to sort the results. Sort attributes are case-sensitive
Direction string
Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
Attribute This property is required. string
The attribute used to sort the results. Sort attributes are case-sensitive
Direction string
Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
attribute This property is required. String
The attribute used to sort the results. Sort attributes are case-sensitive
direction String
Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
attribute This property is required. string
The attribute used to sort the results. Sort attributes are case-sensitive
direction string
Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
attribute This property is required. str
The attribute used to sort the results. Sort attributes are case-sensitive
direction str
Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc
attribute This property is required. String
The attribute used to sort the results. Sort attributes are case-sensitive
direction String
Sort results in ascending or descending order. Strings are sorted in alphabetical order. One of: asc, desc

Package Details

Repository
equinix equinix/pulumi-equinix
License
Apache-2.0
Notes
This Pulumi package is based on the equinix Terraform Provider.
Equinix v0.21.0 published on Friday, Feb 28, 2025 by Equinix