Skip to content

Commit

Permalink
Merge branch 'dev' into new/docs-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai authored Oct 2, 2024
2 parents 279e99b + 178b23f commit d27e611
Show file tree
Hide file tree
Showing 29 changed files with 893 additions and 14 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Name | Description |
[linode.cloud.object_cluster_info](./docs/modules/object_cluster_info.md)|**NOTE: This module has been deprecated because it relies on deprecated API endpoints. Going forward, `region` will be the preferred way to designate where Object Storage resources should be created.**|
[linode.cloud.placement_group_info](./docs/modules/placement_group_info.md)|Get info about a Linode Placement Group.|
[linode.cloud.profile_info](./docs/modules/profile_info.md)|Get info about a Linode Profile.|
[linode.cloud.region_info](./docs/modules/region_info.md)|Get info about a Linode Region.|
[linode.cloud.ssh_key_info](./docs/modules/ssh_key_info.md)|Get info about a Linode SSH Key.|
[linode.cloud.stackscript_info](./docs/modules/stackscript_info.md)|Get info about a Linode StackScript.|
[linode.cloud.token_info](./docs/modules/token_info.md)|Get info about a Linode Personal Access Token.|
Expand Down Expand Up @@ -100,8 +101,11 @@ Name | Description |
[linode.cloud.image_list](./docs/modules/image_list.md)|List and filter on Images.|
[linode.cloud.instance_list](./docs/modules/instance_list.md)|List and filter on Instances.|
[linode.cloud.instance_type_list](./docs/modules/instance_type_list.md)|**NOTE: This module has been deprecated in favor of `type_list`.**|
[linode.cloud.lke_type_list](./docs/modules/lke_type_list.md)|List and filter on LKE Types.|
[linode.cloud.lke_version_list](./docs/modules/lke_version_list.md)|List and filter on LKE Versions.|
[linode.cloud.network_transfer_prices_list](./docs/modules/network_transfer_prices_list.md)|List and filter on Network Transfer Prices.|
[linode.cloud.nodebalancer_list](./docs/modules/nodebalancer_list.md)|List and filter on Node Balancers.|
[linode.cloud.nodebalancer_type_list](./docs/modules/nodebalancer_type_list.md)|List and filter on Node Balancer Types.|
[linode.cloud.object_cluster_list](./docs/modules/object_cluster_list.md)|**NOTE: This module has been deprecated because it relies on deprecated API endpoints. Going forward, `region` will be the preferred way to designate where Object Storage resources should be created.**|
[linode.cloud.placement_group_list](./docs/modules/placement_group_list.md)|List and filter on Placement Groups.|
[linode.cloud.region_list](./docs/modules/region_list.md)|List and filter on Regions.|
Expand All @@ -112,6 +116,7 @@ Name | Description |
[linode.cloud.user_list](./docs/modules/user_list.md)|List and filter on Users.|
[linode.cloud.vlan_list](./docs/modules/vlan_list.md)|List and filter on VLANs.|
[linode.cloud.volume_list](./docs/modules/volume_list.md)|List and filter on Linode Volumes.|
[linode.cloud.volume_type_list](./docs/modules/volume_type_list.md)|List and filter on Volume Types.|
[linode.cloud.vpc_ip_list](./docs/modules/vpc_ip_list.md)|List and filter on VPC IP Addresses.|
[linode.cloud.vpc_list](./docs/modules/vpc_list.md)|List and filter on VPCs.|
[linode.cloud.vpc_subnet_list](./docs/modules/vpc_subnet_list.md)|List and filter on VPC Subnets.|
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Manage Linode Instances, Configs, and Disks.
label: my-linode
type: g6-nanode-1
region: us-east
placement_group:
placement_group:
id: 123
compliant_only: false
state: present
Expand Down Expand Up @@ -350,14 +350,14 @@ Manage Linode Instances, Configs, and Disks.
"type": "g6-standard-1",
"updated": "2018-01-01T00:01:01",
"watchdog_enabled": true,
"disk_encryption": "enabled",
"lke_cluster_id": null,
"placement_group": {
"id": 123,
"label": "test",
"placement_group_type": "anti_affinity:local",
"placement_group_policy": "strict"
}
"disk_encryption": "enabled",
"lke_cluster_id": null
}
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-linode-instance) for a list of returned fields
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/instance_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ Get info about a Linode Instance.
"type": "g6-standard-1",
"updated": "2018-01-01T00:01:01",
"watchdog_enabled": true,
"disk_encryption": "enabled",
"lke_cluster_id": null,
"placement_group": {
"id": 123,
"label": "test",
"placement_group_type": "anti_affinity:local",
"placement_group_policy": "strict"
}
"disk_encryption": "enabled",
"lke_cluster_id": null
}
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-linode-instance) for a list of returned fields
Expand Down
80 changes: 80 additions & 0 deletions docs/modules/lke_type_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# lke_type_list

List and filter on LKE Types.

- [Minimum Required Fields](#minimum-required-fields)
- [Examples](#examples)
- [Parameters](#parameters)
- [Return Values](#return-values)

## Minimum Required Fields
| Field | Type | Required | Description |
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). |

## Examples

```yaml
- name: List all of the Linode LKE Types
linode.cloud.lke_type_list: {}
```
```yaml
- name: List a Linode LKE Type named LKE High Availability
linode.cloud.lke_type_list:
filters:
- name: label
values: LKE High Availability

```


## Parameters

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `order` | <center>`str`</center> | <center>Optional</center> | The order to list LKE Types in. **(Choices: `desc`, `asc`; Default: `asc`)** |
| `order_by` | <center>`str`</center> | <center>Optional</center> | The attribute to order LKE Types by. |
| [`filters` (sub-options)](#filters) | <center>`list`</center> | <center>Optional</center> | A list of filters to apply to the resulting LKE Types. |
| `count` | <center>`int`</center> | <center>Optional</center> | The number of LKE Types to return. If undefined, all results will be returned. |

### filters

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](https://techdocs.akamai.com/linode-api/reference/api). |
| `values` | <center>`list`</center> | <center>**Required**</center> | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |

## Return Values

- `lke_types` - The returned LKE Types.

- Sample Response:
```json
[
{
"id": "lke-ha",
"label": "LKE High Availability",
"price": {
"hourly": 0.09,
"monthly": 60.0
},
"region_prices": [
{
"id": "id-cgk",
"hourly": 0.108,
"monthly": 72.0
},
{
"id": "br-gru",
"hourly": 0.126,
"monthly": 84.0
}
],
"transfer": 0
}
]
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/api) for a list of returned fields


69 changes: 69 additions & 0 deletions docs/modules/network_transfer_prices_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# network_transfer_prices_list

List and filter on Network Transfer Prices.

- [Minimum Required Fields](#minimum-required-fields)
- [Examples](#examples)
- [Parameters](#parameters)
- [Return Values](#return-values)

## Minimum Required Fields
| Field | Type | Required | Description |
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). |

## Examples

```yaml
- name: List all of the Linode Network Transfer Prices
linode.cloud.network_transfer_prices_list: {}
```
```yaml
- name: List a Linode Network Transfer Price named Distributed Network Transfer
linode.cloud.network_transfer_prices_list:
filters:
- name: label
values: Distributed Network Transfer

```


## Parameters

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `order` | <center>`str`</center> | <center>Optional</center> | The order to list Network Transfer Prices in. **(Choices: `desc`, `asc`; Default: `asc`)** |
| `order_by` | <center>`str`</center> | <center>Optional</center> | The attribute to order Network Transfer Prices by. |
| [`filters` (sub-options)](#filters) | <center>`list`</center> | <center>Optional</center> | A list of filters to apply to the resulting Network Transfer Prices. |
| `count` | <center>`int`</center> | <center>Optional</center> | The number of Network Transfer Prices to return. If undefined, all results will be returned. |

### filters

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](https://techdocs.akamai.com/linode-api/reference/get-network-transfer-prices). |
| `values` | <center>`list`</center> | <center>**Required**</center> | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |

## Return Values

- `network_transfer_prices` - The returned Network Transfer Prices.

- Sample Response:
```json
[
{
"id": "distributed_network_transfer",
"label": "Distributed Network Transfer",
"price": {
"hourly": 0.01,
"monthly": null
},
"region_prices": [],
"transfer": 0
}
]
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-network-transfer-prices) for a list of returned fields


80 changes: 80 additions & 0 deletions docs/modules/nodebalancer_type_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# nodebalancer_type_list

List and filter on Node Balancer Types.

- [Minimum Required Fields](#minimum-required-fields)
- [Examples](#examples)
- [Parameters](#parameters)
- [Return Values](#return-values)

## Minimum Required Fields
| Field | Type | Required | Description |
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). |

## Examples

```yaml
- name: List all of the Linode Node Balancer Types
linode.cloud.nodebalancer_type_list: {}
```
```yaml
- name: List a Linode Node Balancer Type named NodeBalancer
linode.cloud.nodebalancer_type_list:
filters:
- name: label
values: NodeBalancer

```


## Parameters

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `order` | <center>`str`</center> | <center>Optional</center> | The order to list Node Balancer Types in. **(Choices: `desc`, `asc`; Default: `asc`)** |
| `order_by` | <center>`str`</center> | <center>Optional</center> | The attribute to order Node Balancer Types by. |
| [`filters` (sub-options)](#filters) | <center>`list`</center> | <center>Optional</center> | A list of filters to apply to the resulting Node Balancer Types. |
| `count` | <center>`int`</center> | <center>Optional</center> | The number of Node Balancer Types to return. If undefined, all results will be returned. |

### filters

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](https://techdocs.akamai.com/linode-api/reference/api). |
| `values` | <center>`list`</center> | <center>**Required**</center> | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |

## Return Values

- `nodebalancer_types` - The returned Node Balancer Types.

- Sample Response:
```json
[
{
"id": "nodebalancer",
"label": "NodeBalancer",
"price": {
"hourly": 0.015,
"monthly": 10.0
},
"region_prices": [
{
"id": "id-cgk",
"hourly": 0.018,
"monthly": 12.0
},
{
"id": "br-gru",
"hourly": 0.021,
"monthly": 14.0
}
],
"transfer": 0
}
]
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/api) for a list of returned fields


68 changes: 68 additions & 0 deletions docs/modules/region_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# region_info

Get info about a Linode Region.

- [Minimum Required Fields](#minimum-required-fields)
- [Examples](#examples)
- [Parameters](#parameters)
- [Return Values](#return-values)

## Minimum Required Fields
| Field | Type | Required | Description |
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). |

## Examples

```yaml
- name: Get Info of a Linode Region
linode.cloud.region_info:
id: us-mia
```
## Parameters
| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `id` | <center>`str`</center> | <center>**Required**</center> | The ID of the Region to resolve. |

## Return Values

- `region` - The returned Region.

- Sample Response:
```json
{
"id": "us-mia",
"label": "Miami, FL",
"country": "us",
"capabilities": [
"Linodes",
"Backups",
"NodeBalancers",
"Block Storage",
"Object Storage",
"Kubernetes",
"Cloud Firewall",
"Vlans",
"VPCs",
"Metadata",
"Premium Plans",
"Placement Group"
],
"status": "ok",
"resolvers": {
"ipv4": "172.233.160.34, 172.233.160.27, 172.233.160.30, 172.233.160.29, 172.233.160.32, 172.233.160.28, 172.233.160.33, 172.233.160.26, 172.233.160.25, 172.233.160.31",
"ipv6": "2a01:7e04::f03c:93ff:fead:d31f, 2a01:7e04::f03c:93ff:fead:d37f, 2a01:7e04::f03c:93ff:fead:d30c, 2a01:7e04::f03c:93ff:fead:d318, 2a01:7e04::f03c:93ff:fead:d316, 2a01:7e04::f03c:93ff:fead:d339, 2a01:7e04::f03c:93ff:fead:d367, 2a01:7e04::f03c:93ff:fead:d395, 2a01:7e04::f03c:93ff:fead:d3d0, 2a01:7e04::f03c:93ff:fead:d38e"
},
"placement_group_limits": {
"maximum_pgs_per_customer": null,
"maximum_linodes_per_pg": 5
},
"site_type": "core"
}
```
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-region) for a list of returned fields


Loading

0 comments on commit d27e611

Please sign in to comment.