7
7
8
8
## Synopsis
9
9
10
- De-registers or registers an instance of NIFCLOUD from Load Balancer .
10
+ Create, update filter, register/deregister instances a load balancer of NIFCLOUD .
11
11
12
12
## Requirements
13
13
@@ -16,16 +16,25 @@ De-registers or registers an instance of NIFCLOUD from Load Balancer.
16
16
17
17
## Options
18
18
19
- | parameter | required | default | type | choices | comments |
20
- | ---------------------| ----------| ------------| ------| -----------------------| -------------------------------------------------------|
21
- | access_key | yes | | str | | NIFCLOUD API access key |
22
- | secret_access_key | yes | | str | | NIFCLOUD API secret access key |
23
- | endpoint | yes | | str | | API endpoint of target region |
24
- | instance_id | yes | | str | | Instacen ID |
25
- | instance_port | no | None | int | | Destination Port (required for registraiton) |
26
- | loadbalancer_name | no | None | str | | Target Load Balancer Name (required for registration) |
27
- | loadbalancer_port | no | None | int | | Target Load Balancer Port (required for registration) |
28
- | state | yes | | str | "present" or "absent" | Goal status |
19
+ | parameter | required | default | type | choices | comments |
20
+ | ---------------------------| ----------| ------------| ------| -----------------------| ---------------------------------------------------------------------------------------|
21
+ | access_key | yes | | str | | NIFCLOUD API access key |
22
+ | secret_access_key | yes | | str | | NIFCLOUD API secret access key |
23
+ | endpoint | yes | | str | | API endpoint of target region |
24
+ | loadbalancer_name | yes | | str | | Target Load Balancer Name (required for registration) |
25
+ | loadbalancer_port | yes | | int | | Target Load Balancer Port (required for registration) |
26
+ | instance_port | yes | | int | | Destination Port (required for registraiton) |
27
+ | balancing_type | no | 1 | int | | Balancing type (1: Round-Robin or 2: Least-Connection) |
28
+ | network_volume | no | 10 | int | | Maximum of network volume |
29
+ | ip_version | no | "v4" | str | | IP version ("v4" or "v6") |
30
+ | accounting_type | no | "1" | str | | Accounting type ("1": monthly, "2": pay per use) |
31
+ | policy_type | no | "standard" | str | | Encryption policy type ("standard" or "ats") |
32
+ | instance_ids | no | [ ] | list | | List of Instance ID |
33
+ | purge_instance_ids | no | True | bool | | Purge existing instance ids that are not found in instance_ids |
34
+ | filter_ip_addresses | no | [ ] | list | | List of ip addresses that allows/denys incoming communication to resources |
35
+ | filter_type | no | 1 | int | | Filter type that switch to allows/denys for filter ip addresses (1: allow or 2: deny) |
36
+ | purge_filter_ip_addresses | no | True | bool | | Purge existing filter ip addresses that are not found in filter_ip_addresses |
37
+ | state | yes | | str | "present" only | Goal status |
29
38
30
39
## Examples
31
40
@@ -35,15 +44,25 @@ De-registers or registers an instance of NIFCLOUD from Load Balancer.
35
44
module : pip
36
45
name : requests
37
46
38
- - name : Regist server to load balancer
47
+ - name : Ensured load balancer
39
48
local_action :
40
49
module : nifcloud_lb
41
50
access_key : " YOUR ACCESS KEY"
42
51
secret_access_key : " YOUR SECRET ACCESS KEY"
43
52
endpoint : " west-1.cp.cloud.nifty.com"
44
- instance_id : " web001"
45
- instance_port : 80
46
53
loadbalancer_name : " lb001"
47
54
loadbalancer_port : 80
55
+ instance_port : 80
56
+ balancing_type : 1
57
+ network_volume : 10
58
+ accounting_type : " 1"
59
+ policy_type : " standard"
60
+ instance_ids :
61
+ - test001
62
+ purge_instance_ids : True
63
+ filter_ip_addresses :
64
+ - 192.0.2.0
65
+ filter_type : 1
66
+ purge_filter_ip_addresses : True
48
67
state : " present"
49
68
` ` `
0 commit comments