Create single or multiple workloads in one request

POST {{base_url}}/api/workload_management/v5/workloads

Request Body

{"items"=>[{"is_auto_created"=>true, "enabled"=>true, "comment"=>"", "agent_id"=>"2eD7BfA8-BDA3-2Fd7-5d68-11e5De60c5d4", "external_id"=>"", "created_at"=>"1970-01-01T00:00:00.000Z", "name"=>"", "auto_parent_child_relationship"=>true, "cross_policy_status"=>{"names"=>"", "running"=>{"state"=>"RUNNING", "activities"=>["backing_up"], "progress"=>0, "blockers"=>[{"domain"=>"", "code"=>"", "reason"=>"", "kbLink"=>{"lineTag"=>"", "serCode"=>"", "version"=>"", "build"=>0, "product"=>"", "os"=>""}}]}, "status"=>"CRITICAL"}, "updated_at"=>"1970-01-01T00:00:00.000Z", "id"=>"F333c9d1-CDAc-8a9e-e1aA-DFbA9a95ffb7", "aggregation_status"=>"NOT_AGGREGATED", "user_defined_name"=>"", "per_policy_type_statuses"=>[{"type"=>"", "last_run_time"=>"1970-01-01T00:00:00.000Z", "next_run_time"=>"1970-01-01T00:00:00.000Z", "last_success_run_time"=>"1970-01-01T00:00:00.000Z", "next_enable_time"=>"1970-01-01T00:00:00.000Z", "run_events"=>[""], "enable_events"=>[""]}], "client_id"=>"", "effective_parent_ids"=>["66400E49-cffE-AeF3-DdB2-d6f620EcAF27"], "tag"=>"", "aggregate_id"=>"bDf8a8cD-cFDC-BeCe-fa6A-325eC00F23c3", "allowed_actions"=>["cti.a.p.xx.v1.0"], "explicit_parent_ids"=>["4CA7ddFf-eacD-F976-a087-af4648fB9FcF"], "deleted_at"=>"1970-01-01T00:00:00.000Z", "licensing_status"=>{"current_offering_item"=>"", "previous_offering_item"=>""}, "type"=>"", "tenant_id"=>"A37d7Ea9-1dd4-19Bc-BBe6-f1c0226b0D5F", "is_customer_managed"=>true}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring