Search…
Workload Policies
get
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy
List Policies
get
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/<policy_id>
Show Policy
get
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/assigned/<project_id>
list assigned Policies
post
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy
Create Policy

Body Format

1
{
2
"workload_policy":{
3
"field_values":{
4
"fullbackup_interval":"<-1 for never / 0 for always / Integer>",
5
"retention_policy_type":"<Number of Snapshots to Keep/Number of days to retain Snapshots>",
6
"interval":"<Integer hr>",
7
"retention_policy_value":"<Integer>"
8
},
9
"display_name":"<String>",
10
"display_description":"<String>",
11
"metadata":{
12
<key>:<value>
13
}
14
}
15
}
Copied!
put
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/<policy-id>
Update Policy

Body Format

1
{
2
"policy":{
3
"field_values":{
4
"fullbackup_interval":"<-1 for never / 0 for always / Integer>",
5
"retention_policy_type":"<Number of Snapshots to Keep/Number of days to retain Snapshots>",
6
"interval":"<Integer hr>",
7
"retention_policy_value":"<Integer>"
8
},
9
"display_name":"String",
10
"display_description":"String",
11
"metadata":{
12
<key>:<value>
13
}
14
}
15
}
Copied!
post
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/<policy-id>
Assign Policy

Body Format

1
{
2
"policy":{
3
"remove_projects":[
4
"<project_id>"
5
],
6
"add_projects":[
7
"<project_id>",
8
]
9
}
10
}
Copied!
delete
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/<policy_id>
Delete Policy
Last modified 8d ago