CampaignSummaryDto

CampaignSummaryDto
CampaignSummaryDto

An enrollment campaign with its progress.

JSON Example
{
    "campaignId": 0,
    "name": "string",
    "scopeType": "string",
    "vcenterConnectionId": "string",
    "clusterMoRef": "string",
    "status": "string",
    "totalHosts": 0,
    "enrolledHosts": 0,
    "failedHosts": 0,
    "inProgressHosts": 0,
    "concurrencyLimit": 0,
    "securityGroupId": 0,
    "createdAt": "string",
    "startedAt": "string",
    "completedAt": "string",
    "progressPercent": 0
}
integer As int64 As int64
campaignId
Required  

Identifier of the campaign, assigned when it is created

string
name
Required  

Name given at creation, stored trimmed; an automatic campaign is named 'Auto Enrollment - ' followed by the vCenter display name and the creation time

scopeType
Required  

Which hosts a campaign targets.

  • FLEET: All registered hosts are resolved as targets, but each job fails with 'Fleet-wide enrollment is not supported' and nothing is enrolled; also the default of the stored campaign
  • VCENTER: The hosts of the vCenter connection named in vcenterConnectionId; a job runs only while that vCenter has Auto Enrollment enabled and otherwise fails
  • CLUSTER: The hosts whose parentLocator equals clusterMoRef
  • SELECTION: The hosts named in hypervisorPks
  • AUTO_DISCOVERY: Created by the Console for a vCenter with Auto Enrollment enabled; its jobs wait while automatic enrollment is paused
Enumeration: FLEET, VCENTER, CLUSTER, SELECTION, AUTO_DISCOVERY
string
vcenterConnectionId
Optional

Identifier of the vCenter connection given at creation: it selects the hosts of a VCENTER campaign and is the vCenter of an AUTO_DISCOVERY campaign; null when none was given

string
clusterMoRef
Optional

Cluster identifier given at creation; a CLUSTER campaign targets the hosts whose parentLocator equals it; null when none was given

status
Required  

Campaign state.

  • CREATED: The campaign exists and has not been started, which is the case for autoStart false
  • RUNNING: Jobs are being worked; set at creation with autoStart, by the start and resume operations, and for an automatic campaign at creation
  • PAUSED: Paused by the pause operation, which accepts only a RUNNING campaign; jobs are not worked until it is resumed
  • COMPLETED: Every host has a result and at least one was enrolled, or no host needed enrolling at creation
  • CANCELLED: Cancelled by the cancel operation or by the removal of its vCenter; its queued jobs are cancelled
  • FAILED: Every host has a result and none was enrolled
Enumeration: CREATED, RUNNING, PAUSED, COMPLETED, CANCELLED, FAILED
integer As int32 As int32
totalHosts
Required  

Number of hosts the campaign has to enroll, one per queued job; hosts that were already ENROLLED at creation are not counted, and an AUTO_DISCOVERY campaign adds to it as jobs are appended

integer As int32 As int32
enrolledHosts
Required  

Number of hosts whose enrollment job completed successfully

integer As int32 As int32
failedHosts
Required  

Number of hosts whose enrollment job ended in a permanent failure; retrying the failed jobs lowers it

integer As int32 As int32
inProgressHosts
Required  

Number of enrollment jobs that have started and have not yet completed, failed permanently or been queued for a retry

integer As int32 As int32
concurrencyLimit
Required  

Most jobs of one vCenter that may be started at the same time for this campaign; set from the request (5 when absent or not above 0), and for an automatic campaign from the maxConcurrentPerVcenter setting

integer As int64 As int64
securityGroupId
Optional

Identifier of the Security Group given when the campaign was created; null when none was given

string As date-time As date-time
createdAt
Required  

Time the campaign was created

string As date-time As date-time
startedAt
Optional

Time the campaign was first started, at creation when autoStart applies or by the start operation; null while it has not been started

string As date-time As date-time
completedAt
Optional

Time the campaign reached COMPLETED, FAILED or CANCELLED, including a campaign that found no host to enroll at creation; null otherwise

integer As int32 As int32
progressPercent
Required  

Share of totalHosts that has finished, enrolled or failed, as a whole percentage rounded and capped at 100; 0 when totalHosts is 0