equinix.metal.getPlans
Explore with Pulumi AI
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>
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]
func GetPlans(ctx *Context, args *GetPlansArgs, opts ...InvokeOption) (*GetPlansResult, error)
func GetPlansOutput(ctx *Context, args *GetPlansOutputArgs, opts ...InvokeOption) GetPlansResultOutput
> 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)
}
public static CompletableFuture<GetPlansResult> getPlans(GetPlansArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: equinix:metal/getPlans:getPlans
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Plans Filter> - One or more attribute/values pairs to filter off of
- Sorts
List<Get
Plans Sort> - One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
- Filters
[]Get
Plans Filter - One or more attribute/values pairs to filter off of
- Sorts
[]Get
Plans Sort - One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
- filters
List<Get
Plans Filter> - One or more attribute/values pairs to filter off of
- sorts
List<Get
Plans Sort> - One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
- filters
Get
Plans Filter[] - One or more attribute/values pairs to filter off of
- sorts
Get
Plans Sort[] - One or more attribute/direction pairs on which to sort results. If multiple sorts are provided, they will be applied in order
- filters
Sequence[Get
Plans Filter] - One or more attribute/values pairs to filter off of
- sorts
Sequence[Get
Plans Sort] - 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<Get
Plans Plan> - Filters
List<Get
Plans Filter> - Sorts
List<Get
Plans Sort>
- Id string
- The provider-assigned unique ID for this managed resource.
- Plans
[]Get
Plans Plan - Filters
[]Get
Plans Filter - Sorts
[]Get
Plans Sort
- id String
- The provider-assigned unique ID for this managed resource.
- plans
List<Get
Plans Plan> - filters
List<Get
Plans Filter> - sorts
List<Get
Plans Sort>
- id string
- The provider-assigned unique ID for this managed resource.
- plans
Get
Plans Plan[] - filters
Get
Plans Filter[] - sorts
Get
Plans Sort[]
- id str
- The provider-assigned unique ID for this managed resource.
- plans
Sequence[Get
Plans Plan] - filters
Sequence[Get
Plans Filter] - sorts
Sequence[Get
Plans Sort]
- 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 string
- The attribute used to filter. Filter attributes are case-sensitive
- Values 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 bothsort
andfilter
blocks.- Match
By 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 isin
.
- Attribute string
- The attribute used to filter. Filter attributes are case-sensitive
- Values []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 bothsort
andfilter
blocks.- Match
By 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 isin
.
- attribute String
- The attribute used to filter. Filter attributes are case-sensitive
- values 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 bothsort
andfilter
blocks.- match
By 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 isin
.
- attribute string
- The attribute used to filter. Filter attributes are case-sensitive
- values 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 bothsort
andfilter
blocks.- match
By 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 isin
.
- attribute str
- The attribute used to filter. Filter attributes are case-sensitive
- values 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 bothsort
andfilter
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 isin
.
- attribute String
- The attribute used to filter. Filter attributes are case-sensitive
- values 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 bothsort
andfilter
blocks.- match
By 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 isin
.
GetPlansPlan
- Available
In List<string>Metros - list of metros where the plan is available
- Available
Ins List<string> - (Deprecated) list of facilities where the plan is available
- Class string
- plan class
- Deployment
Types List<string> - list of deployment types, e.g. on_demand, spot_market
- Description string
- description of the plan
- Id string
- id of the plan
- Legacy bool
- flag showing if it's a legacy plan
- Line string
- plan line, e.g. baremetal
- Name string
- name of the plan
- Pricing
Hour double - plan hourly price
- Pricing
Month double - plan monthly price
- Slug string
- plan slug
- Available
In []stringMetros - list of metros where the plan is available
- Available
Ins []string - (Deprecated) list of facilities where the plan is available
- Class string
- plan class
- Deployment
Types []string - list of deployment types, e.g. on_demand, spot_market
- Description string
- description of the plan
- Id string
- id of the plan
- Legacy bool
- flag showing if it's a legacy plan
- Line string
- plan line, e.g. baremetal
- Name string
- name of the plan
- Pricing
Hour float64 - plan hourly price
- Pricing
Month float64 - plan monthly price
- Slug string
- plan slug
- available
In List<String>Metros - list of metros where the plan is available
- available
Ins List<String> - (Deprecated) list of facilities where the plan is available
- class_ String
- plan class
- deployment
Types List<String> - list of deployment types, e.g. on_demand, spot_market
- description String
- description of the plan
- id String
- id of the plan
- legacy Boolean
- flag showing if it's a legacy plan
- line String
- plan line, e.g. baremetal
- name String
- name of the plan
- pricing
Hour Double - plan hourly price
- pricing
Month Double - plan monthly price
- slug String
- plan slug
- available
In string[]Metros - list of metros where the plan is available
- available
Ins string[] - (Deprecated) list of facilities where the plan is available
- class string
- plan class
- deployment
Types string[] - list of deployment types, e.g. on_demand, spot_market
- description string
- description of the plan
- id string
- id of the plan
- legacy boolean
- flag showing if it's a legacy plan
- line string
- plan line, e.g. baremetal
- name string
- name of the plan
- pricing
Hour number - plan hourly price
- pricing
Month number - plan monthly price
- slug string
- plan slug
- available_
in_ Sequence[str]metros - list of metros where the plan is available
- available_
ins Sequence[str] - (Deprecated) list of facilities where the plan is available
- class_ str
- plan class
- deployment_
types Sequence[str] - list of deployment types, e.g. on_demand, spot_market
- description str
- description of the plan
- id str
- id of the plan
- legacy bool
- flag showing if it's a legacy plan
- line str
- plan line, e.g. baremetal
- name str
- name of the plan
- pricing_
hour float - plan hourly price
- pricing_
month float - plan monthly price
- slug str
- plan slug
- available
In List<String>Metros - list of metros where the plan is available
- available
Ins List<String> - (Deprecated) list of facilities where the plan is available
- class String
- plan class
- deployment
Types List<String> - list of deployment types, e.g. on_demand, spot_market
- description String
- description of the plan
- id String
- id of the plan
- legacy Boolean
- flag showing if it's a legacy plan
- line String
- plan line, e.g. baremetal
- name String
- name of the plan
- pricing
Hour Number - plan hourly price
- pricing
Month Number - plan monthly price
- slug String
- plan slug
GetPlansSort
Package Details
- Repository
- equinix equinix/pulumi-equinix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
equinix
Terraform Provider.