Submit Policy Task
Rejected with 409 if another task on the component group is in progress.
Task type and optional policy id / target
Show optional properties
{
"taskType": "string"
}
"{\n \"taskType\" : \"POLICY_APPLY\",\n \"policyId\" : \"033a28ca-50be-4aa1-ada0-d7558b21c75a\",\n \"targetComponentGroups\" : {\n \"componentGroupResourceIds\" : [ \"055b39eb-70cf-4bc2-bfc2-e9779c32d88a\" ],\n \"componentGroups\" : [ \"INSTANCE\" ]\n },\n \"overrideComponentGroups\" : {\n \"componentGroupResourceIds\" : [ ],\n \"componentGroups\" : [ \"FLEET\" ]\n }\n}"
Target component group for a policy operation (apply, detach, remediate, retry, compliance run). Use JSON componentGroups (plural) as an array of FLEET, MANAGEMENT, INSTANCE. INSTANCE scope must supply componentGroupResourceIds; FQDNs are not accepted on this object. policyId on the enclosing policy task is required for all task types except COMPLIANCE_RUN. For detach, remediate, and retry the server resolves scope from assignment/compliance data together with that policy id.
Password policy ID. Required for POLICY_APPLY, POLICY_DETACH, POLICY_REMEDIATE, and POLICY_RETRY. Ignored for COMPLIANCE_RUN.
Target component group for a policy operation (apply, detach, remediate, retry, compliance run). Use JSON componentGroups (plural) as an array of FLEET, MANAGEMENT, INSTANCE. INSTANCE scope must supply componentGroupResourceIds; FQDNs are not accepted on this object. policyId on the enclosing policy task is required for all task types except COMPLIANCE_RUN. For detach, remediate, and retry the server resolves scope from assignment/compliance data together with that policy id.
Task ID (set when a task is persisted; omitted on request)
Policy operations task type
Policy task submitted
"{\n \"taskId\" : \"077c4afc-81df-5cd3-ccd3-f0880d43999b\",\n \"taskType\" : \"POLICY_APPLY\",\n \"policyId\" : \"033a28ca-50be-4aa1-ada0-d7558b21c75a\",\n \"targetComponentGroups\" : {\n \"componentGroupResourceIds\" : [ \"055b39eb-70cf-4bc2-bfc2-e9779c32d88a\" ],\n \"componentGroups\" : [ \"INSTANCE\" ]\n },\n \"taskStatus\" : \"IN_PROGRESS\",\n \"createdAt\" : 1741630060000,\n \"updatedAt\" : 1741716460000,\n \"policyName\" : \"VCF Policy1\",\n \"targetComponentGroupsState\" : [ {\n \"componentGroupResourceId\" : \"055b39eb-70cf-4bc2-bfc2-e9779c32d88a\",\n \"componentGroupResourceFqdn\" : \"sddc-manager.example.com\",\n \"componentGroupResourceName\" : \"SDDC Manager\",\n \"componentGroup\" : \"INSTANCE\",\n \"complianceUpdatedAt\" : 1741716460000,\n \"componentGroupComplianceStatus\" : \"IN_PROGRESS\",\n \"policyId\" : \"033a28ca-50be-4aa1-ada0-d7558b21c75a\",\n \"policyName\" : \"VCF Policy1\"\n }, {\n \"componentGroupResourceId\" : \"066c49fc-81df-4bd2-cdc3-f0880d43990a\",\n \"componentGroupResourceFqdn\" : \"vcenter.example.com\",\n \"componentGroupResourceName\" : \"vCenter Server\",\n \"componentGroup\" : \"INSTANCE\",\n \"complianceUpdatedAt\" : 1741700000000,\n \"componentGroupComplianceStatus\" : \"COMPLIANT\",\n \"policyId\" : \"033a28ca-50be-4aa1-ada0-d7558b21c75a\",\n \"policyName\" : \"VCF Policy1\"\n } ],\n \"componentGroupsComplianceStatistics\" : [ {\n \"status\" : \"IN_PROGRESS\",\n \"count\" : 1\n }, {\n \"status\" : \"COMPLIANT\",\n \"count\" : 1\n } ]\n}"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"taskType":"string"}' https://{api_host}/suite-api/api/fleet-management/password-policies/component-groups/tasks