compute-rule¶
compute-rule action¶
Usage
usage: -c compute-rule action [-h]
[-f {adaptive_table,csv,json,table,value,yaml}]
[-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--kill-vms]
action compute_rule
Description
Perform an action related to this compute rule.
Return
None
Optional
optional arguments:
-h, --help show this help message and exit
--kill-vms If false, never kill VMs, even if they do not comply with a hard rule
compute-rule create¶
Usage
usage: -c compute-rule create [-h]
[-f {adaptive_table,json,shell,table,value,yaml}]
[-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--prefix PREFIX] [--description DESCRIPTION]
[--compute-tags [COMPUTE_TAGS [COMPUTE_TAGS ...]]]
[--node-tag NODE_TAG] [--enabled]
[--project-id PROJECT_ID]
type
Description
Create a new compute rule. It defines a relation between compute tags or a compute tag and a node tag. The relation impacts the placement of the compute entities marked by the tag.
Return
Returns dict: Compute rule
Optional
optional arguments:
-h, --help show this help message and exit
--description DESCRIPTION
Description of the rule
--compute-tags [COMPUTE_TAGS [COMPUTE_TAGS ...]]
Compute tags for the rule
--node-tag NODE_TAG Node tag for the rule
--enabled Indicates whether or not the rule will be applied
--project-id PROJECT_ID
ID of project for the rule
compute-rule get¶
Usage
usage: -c compute-rule get [-h]
[-f {adaptive_table,json,shell,table,value,yaml}]
[-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--prefix PREFIX]
compute_rule
Description
Get the details of a compute rule.
Return
Returns dict: Details of compute rule
Optional
optional arguments:
-h, --help show this help message and exit
compute-rule human-readable¶
Usage
usage: -c compute-rule human-readable [-h]
[-f {adaptive_table,csv,json,table,value,yaml}]
[-c COLUMN]
[-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--type TYPE] [--project-id PROJECT_ID]
[--node-tags [NODE_TAGS [NODE_TAGS ...]]]
[--compute-tags [COMPUTE_TAGS [COMPUTE_TAGS ...]]]
Description
Get the list of compute rules in a human-readable format.
Return
None
Optional
optional arguments:
-h, --help show this help message and exit
--type TYPE Type of compute rule (affinity, anti_affinity, soft_affinity or soft_anti_affinity)
--project-id PROJECT_ID
Filter list of rules by project ID
--node-tags [NODE_TAGS [NODE_TAGS ...]]
Filter list of rules by node tags (list only rules with any of the tags as their node tags)
--compute-tags [COMPUTE_TAGS [COMPUTE_TAGS ...]]
Filter list of rules by compute tags (list only rules with any of the tags in their compute tags)
compute-rule list¶
Usage
usage: -c compute-rule list [-h]
[-f {adaptive_table,csv,json,table,value,yaml}]
[-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--type TYPE] [--project-id PROJECT_ID]
[--node-tags [NODE_TAGS [NODE_TAGS ...]]]
[--compute-tags [COMPUTE_TAGS [COMPUTE_TAGS ...]]]
Description
Get the list of compute rules.
Return
None
Optional
optional arguments:
-h, --help show this help message and exit
--type TYPE Type of compute rule (affinity, anti_affinity, soft_affinity or soft_anti_affinity)
--project-id PROJECT_ID
Filter list of rules by project ID
--node-tags [NODE_TAGS [NODE_TAGS ...]]
Filter list of rules by node tags (list only rules with any of the tags as their node tags)
--compute-tags [COMPUTE_TAGS [COMPUTE_TAGS ...]]
Filter list of rules by compute tags (list only rules with any of the tags in their compute tags)
compute-rule remove¶
Usage
usage: -c compute-rule remove [-h]
[-f {adaptive_table,json,shell,table,value,yaml}]
[-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--prefix PREFIX]
compute_rule
Description
Delete a compute rule.
Return
None
Optional
optional arguments:
-h, --help show this help message and exit
compute-rule update¶
Usage
usage: -c compute-rule update [-h]
[-f {adaptive_table,json,shell,table,value,yaml}]
[-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--prefix PREFIX] [--description DESCRIPTION]
[--enabled ENABLED]
compute_rule
Description
Update the description of a compute rule.
Return
None
Optional
optional arguments:
-h, --help show this help message and exit
--description DESCRIPTION
New description for the compute rule
--enabled ENABLED True: enable the compute rule; False: disable the rule
compute-rule-checker check¶
Usage
usage: -c compute-rule-checker check [-h]
[-f {adaptive_table,json,shell,table,value,yaml}]
[-c COLUMN]
[-m [NAME=VALUE [NAME=VALUE ...]]]
[--max-width <integer>] [--noindent]
[--prefix PREFIX] [--node-tag NODE_TAG]
[--project-id PROJECT_ID]
rule_type compute_tags
Description
Precheck whether a compute rule can be created.
Return
Returns dict: Result
Optional
optional arguments:
-h, --help show this help message and exit
--node-tag NODE_TAG A node tag
--project-id PROJECT_ID
The rule's project ID