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
{
"workload_policy":{
"field_values":{
"fullbackup_interval":"<-1 for never / 0 for always / Integer>",
"retention_policy_type":"<Number of Snapshots to Keep/Number of days to retain Snapshots>",
"interval":"<Integer hr>",
"retention_policy_value":"<Integer>"
},
"display_name":"<String>",
"display_description":"<String>",
"metadata":{
<key>:<value>
}
}
}
put
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/<policy-id>
Update Policy
{
"policy":{
"field_values":{
"fullbackup_interval":"<-1 for never / 0 for always / Integer>",
"retention_policy_type":"<Number of Snapshots to Keep/Number of days to retain Snapshots>",
"interval":"<Integer hr>",
"retention_policy_value":"<Integer>"
},
"display_name":"String",
"display_description":"String",
"metadata":{
<key>:<value>
}
}
}
post
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/<policy-id>
Assign Policy
{
"policy":{
"remove_projects":[
"<project_id>"
],
"add_projects":[
"<project_id>",
]
}
}
delete
https://$(tvm_address):8780/v1/$(tenant_id)
/workload_policy/<policy_id>
Delete Policy
Last modified 1d ago