Workload Policies
List Policies
GET
https://$(tvm_address):8780/v1/$(tenant_id)/workload_policy
Requests the list of available Workload Policies
Path Parameters
Name | Type | Description |
---|---|---|
tvm_address | string | IP or FQDN of Trilio service |
tenant_id | string | ID of Tenant/Project |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Project-Id | string | Project to authenticate against |
X-Auth-Token | string | Authentication token to use |
Accept | string | application/json |
User-Agent | string | python-workloadmgrclient |
Show Policy
GET
https://$(tvm_address):8780/v1/$(tenant_id)/workload_policy/<policy_id>
Requests the details of a given policy
Path Parameters
Name | Type | Description |
---|---|---|
tvm_address | string | IP or FQDN of Trilio service |
tenant_id | string | ID of Tenant/Project |
policy_id | string | ID of the Policy to show |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Project-Id | string | Project to authenticate against |
X-Auth-Token | string | Authentication token to use |
Accept | string | application/json |
User-Agent | string | python-workloadmgrclient |
list assigned Policies
GET
https://$(tvm_address):8780/v1/$(tenant_id)/workload_policy/assigned/<project_id>
Requests the lists of Policies assigned to a Project.
Path Parameters
Name | Type | Description |
---|---|---|
tvm_address | string | IP or FQDN of Trilio service |
tenant_id | string | ID of Tenant/Project |
project_id | string | ID of the Project to fetch assigned Policies from |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Project-Id | string | Project to authenticate against |
X-Auth-Token | string | Authentication token to use |
Accept | string | application/json |
User-Agent | string | python-workloadmgrclient |
Create Policy
POST
https://$(tvm_address):8780/v1/$(tenant_id)/workload_policy
Creates a Policy with the given parameters
Path Parameters
Name | Type | Description |
---|---|---|
tvm_address | string | IP or FQDN of Trilio service |
tenant_id | string | ID of the Tenant/Project to do the restore in |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Project-Id | string | Project to authenticate against |
X-Auth-Token | string | Authentication token to use |
Content-Type | string | application/json |
Accept | string | application/json |
User-Agent | string | python-workloadmgrclient |
Body Format
Update Policy
PUT
https://$(tvm_address):8780/v1/$(tenant_id)/workload_policy/<policy-id>
Updates a Policy with the given information
Path Parameters
Name | Type | Description |
---|---|---|
tvm_address | string | IP or FQDN of Trilio service |
tenant_id | string | ID of the Tenant/Project to do the restore in |
policy_id | string | ID of the Policy to update |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Project-Id | string | Project to authenticate against |
X-Auth-Token | string | Authentication token to use |
Content-Type | string | application/json |
Accept | string | application/json |
User-Agent | string | python-workloadmgrclient |
Body Format
Assign Policy
POST
https://$(tvm_address):8780/v1/$(tenant_id)/workload_policy/<policy-id>
Updates a Policy with the given information
Path Parameters
Name | Type | Description |
---|---|---|
tvm_address | string | IP or FQDN of Trilio service |
tenant_id | string | ID of the Tenant/Project to do the restore in |
policy_id | string | ID of the Policy to assign |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Project-Id | string | Project to authenticate against |
X-Auth-Token | string | Authentication token to use |
Content-Type | string | application/json |
Accept | string | application/json |
User-Agent | string | python-workloadmgrclient |
Body Format
Delete Policy
DELETE
https://$(tvm_address):8780/v1/$(tenant_id)/workload_policy/<policy_id>
Deletes a given Policy
Path Parameters
Name | Type | Description |
---|---|---|
tvm_address | string | IP or FQDN of Trilio service |
tenant_id | string | ID of Tenant/Project |
policy_id | string | ID of the Policy to delete |
Headers
Name | Type | Description |
---|---|---|
X-Auth-Project-Id | string | Project to authenticate against |
X-Auth-Token | string | Authentication token to use |
Accept | string | application/json |
User-Agent | string | python-workloadmgrclient |
Last updated