-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: implement ips data source * chore(test): fix acceptance test pipeline * fix: set correct Dockerfile path
- Loading branch information
Showing
49 changed files
with
848 additions
and
45 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
PUBLIC_CLOUD_API_SPEC_URL=https://raw.githubusercontent.com/Leaseweb/leaseweb-go-sdk/main/publiccloud/api/openapi.yaml | ||
DEDICATED_SERVER_API_SPEC_URL=https://raw.githubusercontent.com/Leaseweb/leaseweb-go-sdk/main/dedicatedserver/api/openapi.yaml | ||
DNS_API_SPEC_URL=https://raw.githubusercontent.com/Leaseweb/leaseweb-go-sdk/main/dns/api/openapi.yaml | ||
IPMGMT_API_SPEC_URL=https://raw.githubusercontent.com/Leaseweb/leaseweb-go-sdk/main/ipmgmt/api/openapi.yaml | ||
#PUBLIC_CLOUD_API_SPEC_URL=http://host.docker.internal:8081/publicCloud.json | ||
#DEDICATED_SERVER_API_SPEC_URL=http://host.docker.internal:8081/dedicatedServer.json | ||
#DNS_SERVER_API_SPEC_URL=http://host.docker.internal:8081/dns.json | ||
#IPMGMT_API_SPEC_URL=http://host.docker.internal:8081/ipmgmt.json |
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
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,85 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "leaseweb_ipmgmt_ips Data Source - leaseweb" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# leaseweb_ipmgmt_ips (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
# List all IPs | ||
data "leaseweb_ipmgmt_ips" "all" {} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `assigned_contract_ids` (List of String) Return only IPs assigned to contracts with these IDs | ||
- `equipment_ids` (List of String) Return only IPs assigned to equipment items | ||
- `filtered_ips` (List of String) Return only these IPs | ||
- `from_ip` (String) Return only IPs greater or equal to the specified address | ||
- `null_routed` (Boolean) Filter by whether the IP has an active null route | ||
- `primary` (Boolean) Filter by whether or not the IP is primary | ||
- `reverse_lookup` (String) Filter by reverse lookup | ||
- `sort` (List of String) Sort field names. Prepend the field name with '-' for descending order. E.g. `ip,-nullrouted`. Sortable field names are `ip`, `nullRouted`, `reverseLookup` | ||
- `subnet_id` (String) Filter by subnet | ||
- `to_ip` (String) Return only IPs lower or equal to the specified address | ||
- `type` (String) Filter by IP type. Valid options are | ||
- *NORMAL_IP* | ||
- *NETWORK* | ||
- *BROADCAST* | ||
- *GATEWAY* | ||
- *ROUTER1* | ||
- *ROUTER2* | ||
- *IPMI* | ||
- `version` (Number) Filter by protocol version. Valid options are | ||
- *4* | ||
- *6* | ||
|
||
### Read-Only | ||
|
||
- `ips` (Attributes List) (see [below for nested schema](#nestedatt--ips)) | ||
|
||
<a id="nestedatt--ips"></a> | ||
### Nested Schema for `ips` | ||
|
||
Read-Only: | ||
|
||
- `assigned_contract` (Attributes) (see [below for nested schema](#nestedatt--ips--assigned_contract)) | ||
- `equipment_id` (String) ID of the equipment using the IP | ||
- `ip` (String) IP address | ||
- `null_level` (Number) Null route level | ||
- `null_routed` (Boolean) Boolean to indicate if the IP is null-routed | ||
- `prefix_length` (Number) Prefix length of the IP range represented by the record. Note: this is not the same as `subnet.prefixLength` | ||
- `primary` (Boolean) Boolean indicating if this is the primary IP of the assigned equipment | ||
- `reverse_lookup` (String) Reverse lookup set for the IP. This only applies to IPv4 | ||
- `subnet` (Attributes) (see [below for nested schema](#nestedatt--ips--subnet)) | ||
- `type` (String) IP type | ||
- `unnulling_allowed` (Boolean) Boolean indicating if the null route can be removed | ||
- `version` (Number) Protocol version | ||
|
||
<a id="nestedatt--ips--assigned_contract"></a> | ||
### Nested Schema for `ips.assigned_contract` | ||
|
||
Read-Only: | ||
|
||
- `id` (String) ID of the contract connected to the IP | ||
|
||
|
||
<a id="nestedatt--ips--subnet"></a> | ||
### Nested Schema for `ips.subnet` | ||
|
||
Read-Only: | ||
|
||
- `gateway` (String) The gateway IP to be used in network settings | ||
- `id` (String) Subnet identifier consisting of network IP and prefix length separated by underscore (e.g. 192.0.2.0_24) | ||
- `network_ip` (String) Network IP of the subnet | ||
- `prefix_length` (Number) Address prefix length |
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,2 @@ | ||
# List all IPs | ||
data "leaseweb_ipmgmt_ips" "all" {} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Package ipmgmt implements functionality for IP management. | ||
package ipmgmt |
Oops, something went wrong.