Reference For: developers

API schemas: P

Schemas of the native REST API whose name starts with P.

PackageBody

Add a traffic package.

NameTypeRequiredDescription
bytesinteger (int64)yesBytes added to the current period's limit.
referencestring or nullOrder reference; the same reference adds a package once per period.

Paged_AuditView

A page of items with the store version it was read at.

NameTypeRequiredDescription
itemsarray of objectyesItems in id order.
nextstring or nullCursor for the next page (after query parameter), absent on the last page.
versioninteger (int64)yesStore version at read time; use as since for the change feed.

Paged_EventView

A page of items with the store version it was read at.

NameTypeRequiredDescription
itemsarray of objectyesItems in id order.
nextstring or nullCursor for the next page (after query parameter), absent on the last page.
versioninteger (int64)yesStore version at read time; use as since for the change feed.

Paged_ObjectView

A page of items with the store version it was read at.

NameTypeRequiredDescription
itemsarray of ObjectViewDatacenter or ObjectViewDatacenterFolder or ObjectViewVmFolder or ObjectViewHostFolder or ObjectViewNetworkFolder or ObjectViewDatastoreFolder or ObjectViewCluster or ObjectViewComputeResource or ObjectViewHost or ObjectViewResourcePool or ObjectViewVirtualMachine or ObjectViewDatastore or ObjectViewNetwork or ObjectViewDistributedSwitch or ObjectViewDistributedPortgroup or ObjectViewTag or ObjectViewTagCategory or ObjectViewCustomFieldyesItems in id order.
nextstring or nullCursor for the next page (after query parameter), absent on the last page.
versioninteger (int64)yesStore version at read time; use as since for the change feed.

Paged_TaskView

A page of items with the store version it was read at.

NameTypeRequiredDescription
itemsarray of objectyesItems in id order.
nextstring or nullCursor for the next page (after query parameter), absent on the last page.
versioninteger (int64)yesStore version at read time; use as since for the change feed.

PasswordPolicyRequest

Body of PUT /v1/identity/password-policy. Every password set after the change is checked against it; existing passwords stay valid. Passwords are also checked against the list of common passwords, for sequences and repetition and for the user name; those checks cannot be switched off.

NameTypeRequiredDescription
descriptionstring or nullText for administrators (kept when absent).
maxLengthintegeryesLongest password, at most maxLengthCeiling (256) and not below minLength.
minLengthintegeryesShortest password, at least minLengthFloor (12).

PasswordPolicyView

The local password policy.

NameTypeRequiredDescription
descriptionstringyesText for administrators.
maxLengthintegeryesLongest password accepted, in characters.
maxLengthCeilingintegeryesThe largest value maxLength may take (fixed by the product).
minLengthintegeryesShortest password accepted, in characters.
minLengthFloorintegeryesThe smallest value minLength may take (fixed by the product).

PendingModeView

A mode switch that waits for confirmation.

NameTypeRequiredDescription
revertAtstringyesWhen (RFC 3339).
revertToModeViewyesMode restored when the switch is not confirmed.

PermissionView

A permission.

NameTypeRequiredDescription
entityIdstringyesEntity id.
idstringyesPermission id.
principalPrincipalViewyesPrincipal.
propagatebooleanyesPropagate to descendants.
roleIdstringyesRole id.

PlanHoursView

Hours on one plan.

NameTypeRequiredDescription
hoursnumber (double)yesHours in the month.
planstringyesPlan.
planNamestringyesIts name.

PlanView

A VM plan.

NameTypeRequiredDescription
allowedImagesarray of stringImages that may be used (empty: every catalogue image).
bandwidthMbitinteger (int32) or nullBandwidth cap (Mbit/s).
descriptionstringDescription.
diskGibinteger (int64)yesDisk (GiB).
diskTypestringthin or thick.
idstringvmplan-N (ignored in requests).
ipv6booleanAn IPv6 /64.
memoryMibinteger (int64)yesMemory (MiB).
namestringyesUnique name.
orderablebooleanOrderable by tenants.
publicIpv4integer (int32)Public IPv4 addresses included.
trafficActionstringnotify or throttle at 100 % of the monthly traffic.
trafficGibMonthinteger (int64)Traffic per month (GiB, 0 = unmetered).
vcpusinteger (int32)yesvCPUs.

PolicyBody

Create or replace a policy. rules on PUT replaces the rules (a rule with the id of an existing one keeps its number); absent, the rules stay.

NameTypeRequiredDescription
appliedToarray of stringGroups the policy applies to (empty: every vNIC; a tenant's: its own vNICs).
categoryCategoryViewyesCategory; tenants may use environment and application only.
descriptionstringDescription.
enabledbooleanEnabled (default true).
namestringyesName (unique in its scope; sys: is reserved).
rulesarray of RuleBody or nullRules in order.
sequenceinteger (int32) or nullOrder inside the category (lower first). Default: after the scope's last policy.
statefulbooleanReplies are allowed automatically (default true).

PolicyInput

The settable part of a traffic policy.

NameTypeRequiredDescription
actionTrafficActionAction at 100 %.
anchorDayinteger (int32) or nullAnchor day (1 to 28); absent: the tenant's or the 1st.
monthlyLimitBytesinteger (int64) or nullBytes per period; absent: no limit.
tenantstring or nullTenant (events).
throttleKbpsinteger (int64) or nullThrottle rate (kbit/s); absent: the site default.

PolicyStatsView

Counters of a policy's rules.

NameTypeRequiredDescription
policystringyesPolicy id.
rulesarray of RuleStatsViewyesPer rule, in policy order.

PolicyView

A policy with its rules.

NameTypeRequiredDescription
appliedToarray of stringyesApplied-to groups.
builtinbooleanyesBuilt in (read-only).
categoryCategoryViewyesCategory.
descriptionstringDescription.
enabledbooleanyesEnabled.
expiresAtstring or nullEnd of an emergency bypass (RFC 3339).
fwVersioninteger (int64) or nullStore version of this write.
idstringyesfwpolicy-N.
namestringyesName.
notesarray of IssueViewValidation notes of this write (rules that can match nothing).
pendingHostsarray of stringHosts that had not applied the change when ?wait=realized timed out.
rulesarray of RuleViewyesRules in order.
sequenceinteger (int32)yesSequence.
statefulbooleanyesStateful.
tenantstring or nullOwner (null: provider).
versioninteger (int64)yesRecord version.

PoolIpv6View

The IPv6 side of a pool.

NameTypeRequiredDescription
gatewaystring or nullDefault gateway of the guests (the router's link-local or on-link address).
prefixstringyesPrefix (host bits zero), e.g. 2001:db8:100::.
prefixLeninteger (int32)yesPrefix length (32 to 127, shorter than serverPrefixLen); block 0 stays with the router.
reservedarray of stringAddresses inside the prefix used by others (the host's own address): their blocks are never handed out.
serverPrefixLeninteger (int32) or nullLength of every server's block, 64 to 128 (default 64; 112 for a /112 per VPS from a host's single /64).

PoolLease

A primary address from an IP pool: it replaces the range lease of the NIC and carries the pool's subnet, gateway and DNS servers.

NameTypeRequiredDescription
addressstringyesThe address.
dns_serversarray of stringThe pool's DNS servers; empty: the network's.
gatewaystring or nullThe pool's gateway.
prefix_leninteger (int32)yesPrefix length of the pool's subnet.

PoolUsage

Counts of a pool.

NameTypeRequiredDescription
allocatedinteger (int64)yesAllocated.
capacityinteger (int64)yesAddresses the pool can hand out (ranges minus gateway, reserved, network and broadcast addresses).
freeinteger (int64)yesFree now.
ipv6Allocatedinteger (int64)yes/64 prefixes allocated.
ipv6Capacityinteger (int64)yes/64 prefixes the pool can hand out (0 without IPv6).
ipv6Freeinteger (int64)yesIPv6 blocks free now (0 without IPv6).
ipv6Quarantinedinteger (int64)yesIPv6 blocks in quarantine (not yet free again).
quarantinedinteger (int64)yesIn quarantine (not yet free again).

PortgroupIpv6

IPv6 settings of a distributed port group.

NameTypeRequiredDescription
dhcpbooleanAnswer DHCPv6 with the port's address (router advertisements with the managed flag come from the network's router).
prefixstringyesThe /64 prefix (2001:db8:10::/64).

PortgroupIpv6Request

IPv6 settings of a port group.

NameTypeRequiredDescription
dhcpboolean or nullAnswer DHCPv6 (default true).
prefixstringyesThe /64 prefix (2001:db8:10::/64).

PostEventRequest

Inject a typed event into the native event log (PostEvent).

NameTypeRequiredDescription
attributesobjectExtra attributes.
chainIdstring or nullCorrelation id; a new id is allocated when omitted.
entityIdstring or nullOptional target inventory object id.
eventTypestringyesEvent type in vSphere style (GeneralUserEvent, EventEx, …).
messagestring or nullFree-form message text (stored as message arg msg when set).
messageIdstring or nullLocalisable message key; defaults to event.user when message is set, else event.posted.
severitySeverityView or null

PowerRequest

Optional idempotency key for power operations.

NameTypeRequiredDescription
idempotencyKeystring or nullIdempotency key.

PowerResultView

TaskView.result of VM power operations (powerOn / powerOff / reset / suspend).

NameTypeRequiredDescription
generationinteger (int64)yesDesired-state generation the agent must converge to.
powerStatestringyesDesired power state after the operation (powered_on, powered_off, suspended, paused).

PowerState

VM power state as the control plane records it (desired and observed).

PoweredOn, PoweredOff and Suspended are the vSphere-compatible values; Paused is the Compute team's paused (vCPUs stopped, memory live), which tools see as powered on. The agent's full lifecycle set (starting, stopping, migrating, ...) is kept separately in [VmRuntime::lifecycle].

Values: "powered_off", "powered_on", "suspended", "paused"

PrincipalView

A principal.

NameTypeRequiredDescription
namestringyesName.
typestringyesuser or group.

PrivilegeView

A catalogue privilege.

NameTypeRequiredDescription
descriptionstringyesDescription.
idstringyesId.

ProfileBody

A default profile.

NameTypeRequiredDescription
baselinestring or nullBaseline policy (a provider Application policy evaluated after every tenant rule).
inboundDefaultActionViewyesDefault for traffic arriving at the vNIC.
namestringyesName.
outboundDefaultActionViewyesDefault for traffic leaving the vNIC.
selectablebooleanTenants may choose it.

ProfileView

A profile.

Type: ProfileBody, object

ProposalView

A proposal from a monitor report.

NameTypeRequiredDescription
rulesarray of RuleBodyyesAllow rules for the other inbound TCP and UDP ports seen.
templatestring or nullA template whose ports were all seen (web, mail-server).

ProtectionView

Protection of a vNIC.

NameTypeRequiredDescription
reasonstring or nullWhy a vNIC is unprotected (Linux bridge, port security off, not on a host bridge).
statestringyesenforced, monitor, off or unprotected.

PtrBody

Set a PTR name.

NameTypeRequiredDescription
ptrstring or nullHost name; null or empty removes the record.

PtrRejectBody

Body of POST .../ptr/rejected.

NameTypeRequiredDescription
reasonstringyesWhy (shown to the tenant).

PtrStatus

State of a PTR name in reverse DNS.

Values: "applied", "requested", "rejected", "to_remove"

Version 0.1.