IpBlocks
This is a simple module that supports listing IP Blocks.
Example Syntax
name: List IP Blocks
ionoscloudsdk.ionoscloud.ipblock_info: null
register: ipblock_list_response
Returned object
{
"changed": false,
"ipblocks": [
{
"href": "https://api.ionos.com/cloudapi/v6/ipblocks/ac83f2d3-2751-4601-8687-6ea5d5c638a7",
"id": "ac83f2d3-2751-4601-8687-6ea5d5c638a7",
"metadata": {
"created_by": "<USER_EMAIL>",
"created_by_user_id": "<USER_ID>",
"created_date": "2023-08-03T11:38:58+00:00",
"etag": "e8267c0bfb11065927d961a4f1635a83",
"last_modified_by": "<USER_EMAIL>",
"last_modified_by_user_id": "<USER_ID>",
"last_modified_date": "2023-08-03T11:38:58+00:00",
"state": "AVAILABLE"
},
"properties": {
"ip_consumers": [],
"ips": [
"<IP1>",
"<IP2>"
],
"location": "gb/lhr",
"name": "AnsibleAutoTestCompute",
"size": 2
},
"type": "ipblock"
},
{
"href": "https://api.ionos.com/cloudapi/v6/ipblocks/5122cd25-7e8d-4147-9818-4fd8ab07c88c",
"id": "5122cd25-7e8d-4147-9818-4fd8ab07c88c",
"metadata": {
"created_by": "<USER_EMAIL>",
"created_by_user_id": "<USER_ID>",
"created_date": "2023-07-27T13:17:15+00:00",
"etag": "d02824d7af8198abc00817248afb5e8f",
"last_modified_by": "<USER_EMAIL>",
"last_modified_by_user_id": "<USER_ID>",
"last_modified_date": "2023-07-27T13:17:15+00:00",
"state": "AVAILABLE"
},
"properties": {
"ip_consumers": [],
"ips": [
"<IP1>"
],
"location": "us/las",
"name": "IP_BLOCK_2023-07-27T13:17:15Z",
"size": 1
},
"type": "ipblock"
}
],
"failed": false
}
For more examples please check out the tests here.
Available parameters:
Last updated