-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from intercloud/feat/IOPR-4235
Add datasource transport product
- Loading branch information
Showing
6 changed files
with
418 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "autonomi_transport_product Data Source - autonomi" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# autonomi_transport_product (Data Source) | ||
|
||
```terraform | ||
data "autonomi_transport_product" "transport" { | ||
filters = [ | ||
{ | ||
name = "provider" | ||
operator = "=" | ||
values = ["EQUINIX"] | ||
}, | ||
{ | ||
name = "locationTo" | ||
operator = "IN" | ||
values = ["EQUINIX FR5", "EQUINIX LD5"] | ||
}, | ||
{ | ||
name = "location" | ||
operator = "IN" | ||
values = ["EQUINIX FR5", "EQUINIX LD5"] | ||
}, | ||
{ | ||
name = "bandwidth" | ||
operator = "TO" | ||
values = ["100", "500"] | ||
}, | ||
] | ||
cheapest = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `cheapest` (Boolean) To ensure only one hit is returned we advise to set at true | ||
- `filters` (Attributes List) List of filters: [location, locationTo, bandwidth, provider] (see [below for nested schema](#nestedatt--filters)) | ||
|
||
### Read-Only | ||
|
||
- `facet_distribution` (Attributes) The **facet_distribution** attribute provides an overview of the distribution of various facets | ||
within the transport products returned by the Meilisearch query. This attribute allows you to analyze the frequency | ||
of different categories or attributes in the search results. (see [below for nested schema](#nestedatt--facet_distribution)) | ||
- `hit` (Attributes) The **hit** attribute contains the transport product returned by the Meilisearch query. | ||
Each hit represents a transport product that matches the specified search criteria. (see [below for nested schema](#nestedatt--hit)) | ||
|
||
<a id="nestedatt--filters"></a> | ||
### Nested Schema for `filters` | ||
|
||
Optional: | ||
|
||
- `name` (String) | ||
- `operator` (String) | ||
- `values` (List of String) | ||
|
||
<a id="nestedatt--facet_distribution"></a> | ||
### Nested Schema for `facet_distribution` | ||
|
||
Read-Only: | ||
|
||
- `bandwidth` (Map of Number) | ||
- `location` (Map of Number) | ||
- `location_to` (Map of Number) | ||
- `provider` (Map of Number) | ||
|
||
<a id="nestedatt--hit"></a> | ||
### Nested Schema for `hit` | ||
|
||
Read-Only: | ||
|
||
- `bandwidth` (Number) | ||
- `cost_mrc` (Number) | ||
- `cost_nrc` (Number) | ||
- `date` (String) | ||
- `duration` (Number) | ||
- `id` (Number) | ||
- `location` (String) | ||
- `location_to` (String) | ||
- `location_to_underlay` (String) | ||
- `location_underlay` (String) | ||
- `price_mrc` (Number) | ||
- `price_nrc` (Number) | ||
- `provider` (String) | ||
- `sku` (String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.