eqixiacEquinix Infrastructure as Code

OpenCapacity 1.0 reference Proposal

Operations, fields, enumerations, the feature registry, event types, error codes, and limits of the OpenCapacity 1.0 draft specification.

This page describes version 1.0.0-draft.1 of the draft specification.

The OpenAPI document is opencapacity-1.0.yaml in the specification repository.

Conventions#

ItemValue
Base URLhttps://{host}/capacity/v1. Each provider hosts the API under its own host name.
AuthenticationOAuth 2.0 client credentials. Read the token URL from authentication.tokenUrl in the capabilities document.
Scopescapacity.query: run queries and list locations. capacity.signal: create, read, amend, withdraw, and delete your signals. capacity.subscribe: create, read, amend, and delete your subscriptions and read their events.
ErrorsRFC 9457 problem details with a stable code and field-level errors
Paginglimit (1 to 200, default 50) and cursor, the pagination.next value of the previous page
ConcurrencyIf-Match with the ETag of the version that you amend. A stale value returns 412.
IdempotencyIdempotency-Key on create, at most 128 characters. A repeat of the same key within 24 hours returns the first result and creates nothing.
CompatibilityIgnore unknown properties. Treat an unknown Grade value as NOT_DISCLOSED. Treat any other unknown enumeration value as unknown without failing.

Operations#

Method and pathOperationPurposeResponses
GET /capabilitiesgetCapabilitiesRead what this provider supports200
GET /locationslistLocationsList the locations the provider names200
POST /queriesqueryCapacityAsk whether a requirement can be met200, 422, 429
POST /signalscreateSignalRecord a requirement as a standing need201, 422
GET /signalslistSignalsList your signals200
GET /signals/{signalId}getSignalRead one signal200, 404
PUT /signals/{signalId}replaceSignalAmend a signal200, 404, 409, 412, 422
DELETE /signals/{signalId}deleteSignalDelete a signal204, 404
POST /signals/{signalId}/withdrawwithdrawSignalWithdraw a signal and keep the record200, 404, 409
POST /subscriptionscreateSubscriptionSubscribe to the answer for a requirement or a signal201, 422
GET /subscriptionslistSubscriptionsList your subscriptions200
GET /subscriptions/{subscriptionId}getSubscriptionRead one subscription200, 404
PUT /subscriptions/{subscriptionId}replaceSubscriptionAmend a subscription200, 404, 412, 422
DELETE /subscriptions/{subscriptionId}deleteSubscriptionDelete a subscription204, 404
GET /subscriptions/{subscriptionId}/eventslistSubscriptionEventsRead or stream the events of a subscription200, 404

Every operation can also return a problem document with another status.

Request fields#

QueryRequest#

FieldRequiredTypeMeaning
requirementYesCapacityRequirement
referenceNostringYour own reference, echoed in the answer. At most 128 characters.

CapacityRequirement#

The capacity a customer needs. Queries, signals, and subscriptions all carry it.

FieldRequiredTypeMeaning
locationsYesList of LocationRefAlternatives. The answer has a result for each. Levels can be mixed.
demandYesDemand
timeframeNoTimeframe
interconnectionNoList of InterconnectionRequirement
desiredFeaturesNoList of DesiredFeature
redundancyNoRedundancy
powerFeedNoPowerFeed
offeringNoRETAIL_COLOCATION, WHOLESALE, BUILD_TO_SUIT, POWERED_SHELLThe commercial form wanted.

NamedLocationRef#

A location at one level. REGION uses AMER, EMEA, or APAC. COUNTRY uses ISO 3166-1 alpha-2. METRO, CAMPUS, and FACILITY use the provider's own codes, as listed by /locations, for example FR for a Frankfurt metro. A campus is a group of facilities on one site. To name a metro without knowing the provider's code, set scheme to STANDARD and send the UN/LOCODE without a space, for example DEFRA.

FieldRequiredTypeMeaning
levelYesLocationLevel
codeYesstringAt most 32 characters.
schemeNoPROVIDER, STANDARDApplies to METRO only. Absent means PROVIDER. Default: PROVIDER.

AreaLocationRef#

Everything within radiusKm of a point. A provider that lists areaLocations as false in its capabilities returns 422 with code UNSUPPORTED_LOCATION_LEVEL. The provider answers an area with one result per named location that it chooses to report inside the area, or with one result for the area as a whole. It does not have to reveal where its facilities are.

FieldRequiredTypeMeaning
levelYesAREA
centerYesobject
radiusKmYesnumberDistance from the center in kilometers. Maximum 1000.

Demand#

How much capacity is needed. Three forms are valid: 1. cabinets and density. Total power is derived as the cabinet count times the density target, or the max when no target is given, or the min when only the min is given. 2. power, cabinets, and density. power is the total and density constrains each cabinet. 3. power alone, for a need that is not yet expressed in cabinets. In form 2 the provider returns 422 with code INCONSISTENT_DEMAND when the total cannot fit: power is greater than count times density max, or less than count times density min.

FieldRequiredTypeMeaning
powerNoPower
powerBasisNoIT_LOAD, CIRCUIT_CAPACITYWhat power measures. IT_LOAD is the power drawn by the equipment. CIRCUIT_CAPACITY is the rated capacity of the circuits. Default: IT_LOAD.
powerFactorNonumberUsed to convert between apparent and real power. Absent means the provider's default from the capabilities document. Maximum 1.
cabinetsNoCabinetDemand
densityNoDensityRange
spaceTypeNoCABINET, CAGE, SUITE, HALL, BUILDINGThe form of space wanted.
contiguousNobooleanTrue when the cabinets must be adjacent in one space.

Power#

FieldRequiredTypeMeaning
valueYesnumber
unitYesPowerUnit

CabinetDemand#

FieldRequiredTypeMeaning
countYesintegerThe number of cabinets needed. Minimum 1.
minimumNointegerThe smallest number worth an answer. Absent means only the full count is useful. Minimum 1.

DensityRange#

Power per cabinet as a minimum, a target, and a maximum. Any subset is valid, and at least one of the three is present. Where more than one is present, min is not greater than target and target is not greater than max.

FieldRequiredTypeMeaning
minNonumber
targetNonumber
maxNonumber
unitYesDensityUnit

Timeframe#

When the capacity is needed. Every property is optional. A requirement with no neededForService states an immediate need. That default applies to requests only.

FieldRequiredTypeMeaning
neededForSaleNoFlexibleDateWhen you need to be able to contract for the capacity.
neededForServiceNoFlexibleDateWhen the capacity must be usable. Absent means now.
latestAcceptableNoFlexibleDateThe last service date that still works. Absent means neededForService is firm.
termMonthsNointegerIntended length of the commitment in months. Minimum 1.
rampNoList of RampStepPhased need, in date order. The last step is 100 percent. Absent means the full demand at neededForService.

RampStep#

FieldRequiredTypeMeaning
byYesFlexibleDate
percentYesnumberCumulative share of the demand needed by this date. Maximum 100.

InterconnectionRequirement#

FieldRequiredTypeMeaning
partyYesPartyRef
withinNoInterconnectionScope
maxRoundTripMsNonumberUpper limit on round-trip latency to the party, in milliseconds.
requiredYesbooleanTrue for a hard constraint. False for a preference.

PartyRef#

A network, cloud, or other organization to connect to. Give an autonomous system number where one exists, because names are ambiguous.

FieldRequiredTypeMeaning
nameNostring
asnNointeger (int64)Minimum 1.
typeNoNETWORK, CLOUD, AI_PROVIDER, INTERNET_EXCHANGE, ENTERPRISE, OTHER

DesiredFeature#

FieldRequiredTypeMeaning
featureYesFeature
requiredYesbooleanTrue for a hard constraint. False for a preference.

Redundancy#

Minimum redundancy of the power and cooling systems. A hard constraint when present.

FieldRequiredTypeMeaning
powerNoRedundancyLevel
coolingNoRedundancyLevel

PowerFeed#

Electrical delivery to the cabinet. A hard constraint when present.

FieldRequiredTypeMeaning
currentNoAC, DC
phaseNoSINGLE, THREE
voltageNointegerNominal voltage in volts. Minimum 1.

Answer fields#

CapacityAnswer#

FieldRequiredTypeMeaning
answerIdYesstring
referenceNostring
generatedAtYesstring (date-time)
validUntilYesstring (date-time)After this time the answer says nothing about availability.
gradeYesGradeThe best grade among the results.
resultsYesList of LocationResult

LocationResult#

The answer for one location. Only location, grade, and supportedFeatures are required. supportedFeatures has one entry for each desired feature. When grade is AVAILABLE or POSSIBLE, the entry for each feature that the request marked required is AVAILABLE or POSSIBLE. The location grade already states that the required features can be met. An entry for a required feature can be NOT_DISCLOSED only when grade is NOT_DISCLOSED or UNAVAILABLE. An entry for a feature that is not required can be NOT_DISCLOSED with any grade.

FieldRequiredTypeMeaning
locationYesLocationRefThe location answered. It can be coarser than the one requested.
requestedNoLocationRefThe requested location, where the answer is at a coarser level.
gradeYesGrade
timingNoTiming
densityNoDensityRangeThe per-cabinet density the location supports for this requirement.
cabinetsNoCabinetBand
powerNoPowerBand
supportedFeaturesYesList of SupportedFeature
interconnectionNoList of InterconnectionResult
reasonsNoList of Reason
nextStepUrlNostring (uri)Where to continue the conversation with the provider.

Timing#

When the capacity is usable.

FieldRequiredTypeMeaning
statusYesIN_SERVICE, PLANNED, NOT_DISCLOSEDIN_SERVICE means the capacity exists today. PLANNED means it is expected later.
availableForSaleNoAnswerDateWhen the provider can contract for the capacity.
availableForServiceNoAnswerDateWhen the capacity is usable. A coarser value discloses less.

CabinetBand#

A band for the number of cabinets. min alone reads as "at least". max alone reads as "up to". A provider that does not want to reveal inventory returns min no greater than the requested count and omits max.

FieldRequiredTypeMeaning
minNointegerMinimum 0.
maxNointegerMinimum 0.

PowerBand#

FieldRequiredTypeMeaning
minNonumberMinimum 0.
maxNonumberMinimum 0.
unitYesPowerUnit

SupportedFeature#

FieldRequiredTypeMeaning
featureYesFeature
supportYesGrade
requiredNobooleanEcho of the request flag, for a feature that was asked for.
availableForServiceNoAnswerDateFor a feature that is planned.

InterconnectionResult#

Whether a party is reachable. Saying that a named party is present discloses something about that party. A provider grades presence AVAILABLE only for a party whose presence is already public or that has agreed to be listed, and NOT_DISCLOSED otherwise.

FieldRequiredTypeMeaning
partyYesPartyRef
withinNoInterconnectionScope
presenceYesGrade
requiredNoboolean
roundTripMsNoobjectBand for round-trip latency to the party, in milliseconds.

Signal fields#

SignalRequest#

FieldRequiredTypeMeaning
requirementYesCapacityRequirement
referenceNostringAt most 128 characters.
confidenceNoEXPLORATORY, PLANNED, FUNDED, COMMITTEDHow firm the need is.
confidentialityNoConfidentiality
contactNoContact
expiresAtNostring (date-time)Absent means the provider's maximum signal lifetime.

Confidentiality#

What the provider can do with the signal. Absent values take the most restrictive default.

FieldRequiredTypeMeaning
sharingNoNONE, AGGREGATEDNONE: the provider uses the signal only for its own capacity planning. AGGREGATED: the provider can also include it in totals that do not identify the customer, for example a load forecast given to a utility. Default: NONE.
contactPermittedNobooleanTrue when the provider can contact you about the signal. Requires contact. Default: false.

Contact#

FieldRequiredTypeMeaning
nameNostring
emailYesstring (email)

Signal#

Every field of SignalRequest, plus the following read-only fields:

FieldRequiredTypeMeaning
signalIdYesstring
stateYesSignalState
revisionYesintegerMinimum 1.
createdAtYesstring (date-time)
updatedAtYesstring (date-time)
closeReasonNoFULFILLED, DECLINED, DUPLICATE, OTHER
answerNoCapacityAnswerThe provider's current answer to the signal, where it gives one.

Subscription and event fields#

SubscriptionRequest#

Exactly one of requirement and signalId is present.

FieldRequiredTypeMeaning
nameNostringAt most 128 characters.
requirementNoCapacityRequirement
signalIdNostringFollow the answer and the state of one of your signals.
notifyOnNoGRADE_CHANGE, ANY_CHANGEGRADE_CHANGE sends an event when a grade changes. ANY_CHANGE also sends one when a band, a date, or a feature entry changes. Default: GRADE_CHANGE.
deliveryYesDelivery
pausedNobooleanDefault: false.
expiresAtNostring (date-time)

WebhookDelivery#

FieldRequiredTypeMeaning
typeYesWEBHOOK
urlYesstring (uri)
signingSecretNostringReturned once, in the create response.

PullDelivery#

FieldRequiredTypeMeaning
typeYesPULL

Subscription#

Every field of SubscriptionRequest, plus the following read-only fields:

FieldRequiredTypeMeaning
subscriptionIdYesstring
stateYesSubscriptionState
createdAtYesstring (date-time)
updatedAtYesstring (date-time)
lastSequenceNointeger (int64)Sequence of the most recent event.

Event#

A CloudEvents 1.0 envelope in structured JSON mode.

FieldRequiredTypeMeaning
specversionYes1.0
idYesstringUnique per event. De-duplicate on this value.
sourceYesstring (uri-reference)The provider's API base URL.
typeYesorg.opencapacity.answer.updated, org.opencapacity.signal.updated, org.opencapacity.subscription.updated, org.opencapacity.subscription.verification
subjectNostringThe subscription identifier.
timeYesstring (date-time)
datacontenttypeNoapplication/json
dataYesEventData

EventData#

FieldRequiredTypeMeaning
subscriptionIdYesstring
sequenceYesinteger (int64)Increases by one per event within a subscription. Minimum 1.
reasonNoINITIAL, GRADE_CHANGE, DETAIL_CHANGE, REFRESHFor answer events. REFRESH means the previous answer expired and nothing else changed.
answerNoCapacityAnswer
signalIdNostring
signalStateNoSignalState
subscriptionStateNoSubscriptionState
challengeNostringFor the verification event.

Capabilities fields#

Capabilities#

FieldRequiredTypeMeaning
specVersionYesstringThe version of this specification that the provider implements.
providerYesobject
conformanceYesList of CORE, SIGNALS, SUBSCRIPTIONSCORE covers capabilities, locations, and queries.
authenticationYesobject
locationLevelsYesList of LocationLevelThe levels accepted in a requirement.
areaLocationsNobooleanTrue when the provider accepts a point and a radius as a location. Default: false.
finestAnswerLevelYesLocationLevelThe finest level at which the provider answers.
featuresYesList of FeatureThe features the provider recognizes. Any other feature is answered NOT_DISCLOSED.
defaultPowerFactorNonumberMaximum 1.
deliveryTypesNoList of WEBHOOK, PULL
disclosureYesobjectWhich optional answer elements the provider populates.
limitsNoobject

disclosure#

Each of timing, density, cabinets, power, interconnection, and reasons is required and is ALWAYS, CASE_BY_CASE, or NEVER.

limits#

FieldRequiredTypeMeaning
maxLocationsPerRequirementNointegerMinimum 1.
answerValiditySecondsNointegerMinimum 1.
maxSignalLifetimeDaysNointegerMinimum 1.
maxSubscriptionsNointegerMinimum 0.
minNotificationIntervalSecondsNointegerThe provider sends at most one answer event per subscription in this interval. Changes inside the interval are coalesced into one event that carries the latest answer. Minimum 0.
eventRetentionHoursNointegerMinimum 24.

Enumerations#

EnumerationValues
GradeAVAILABLE, POSSIBLE, UNAVAILABLE, NOT_DISCLOSED
LocationLevelREGION, COUNTRY, METRO, CAMPUS, FACILITY
PowerUnitKW, MW, KVA, MVA
DensityUnitKW, KVA
RedundancyLevelN, N_PLUS_1, N_PLUS_2, TWO_N, TWO_N_PLUS_1, DISTRIBUTED
InterconnectionScopeFACILITY, CAMPUS, METRO
ReasonPOWER, SPACE, COOLING, DENSITY, TIMING, TERM, FEATURE, INTERCONNECTION, REDUNDANCY, POWER_FEED, OFFERING, LOCATION_NOT_SERVED, REVIEW_REQUIRED, OTHER
SignalStateRECEIVED, ACKNOWLEDGED, WITHDRAWN, CLOSED, EXPIRED
SubscriptionStatePENDING_VERIFICATION, ACTIVE, PAUSED, SUSPENDED, EXPIRED
DisclosureLevelALWAYS, CASE_BY_CASE, NEVER

Dates#

TypeValues
FlexibleDateA day (2027-06-15), a month (2027-06), a quarter (2027-Q2), or a year (2027). Two values are compared by the last day of each.
AnswerDateA FlexibleDate, NOW, or NOT_DISCLOSED. An absent answer date means NOT_DISCLOSED.

Feature registry#

A feature name matches ^[A-Z][A-Z0-9_]{1,63}$. A provider extension starts with X_.

FeatureNote
LIQUID_COOLINGAny liquid cooling method
DIRECT_TO_CHIP_COOLING
IMMERSION_COOLING
REAR_DOOR_HEAT_EXCHANGER
PRIVATE_CAGE
PRIVATE_SUITE
HIGH_FLOOR_LOADING
RENEWABLE_ENERGY_MATCHED
CLOUD_ON_RAMP
INTERNET_EXCHANGE
REMOTE_HANDS
EXPANSION_OPTION
BUILD_TO_SUIT

Event types#

TypeSent when
org.opencapacity.answer.updatedThe answer to the subscribed requirement changed. data.reason is INITIAL, GRADE_CHANGE, DETAIL_CHANGE, or REFRESH. REFRESH means that the previous answer expired and nothing else changed.
org.opencapacity.signal.updatedThe state of the followed signal changed
org.opencapacity.subscription.updatedThe state of the subscription changed
org.opencapacity.subscription.verificationThe provider verifies a webhook endpoint. data.challenge has the value to echo.

Error codes#

A problem document has type, title, status, and code, and can have detail, instance, and errors. Each entry of errors has a pointer, a JSON Pointer to the field in the request body, and a detail.

Code
INVALID_REQUEST
INCONSISTENT_DEMAND
UNSUPPORTED_LOCATION_LEVEL
UNKNOWN_LOCATION
TOO_MANY_LOCATIONS
UNAUTHENTICATED
FORBIDDEN
NOT_FOUND
STATE_CONFLICT
PRECONDITION_FAILED
NOT_IMPLEMENTED
RATE_LIMITED
QUOTA_EXCEEDED
INTERNAL_ERROR

A 429 response has a Retry-After header with the number of seconds to wait before the next request.

The following problem document is the response to a demand whose total power doesn't fit the cabinet count and the density:

JSON
{
  "type": "https://opencapacity.example/problems/inconsistent-demand",
  "title": "Demand is inconsistent",
  "status": 422,
  "code": "INCONSISTENT_DEMAND",
  "detail": "power of 5 MW is greater than 40 cabinets at a density max of 100 kVA.",
  "errors": [
    {
      "pointer": "/requirement/demand/power",
      "detail": "Must not exceed cabinets.count times density.max."
    }
  ]
}

Example capabilities document#

The following document describes a provider that answers at metro level and discloses little:

JSON
{
  "specVersion": "1.0.0",
  "provider": {
    "name": "Example Data Centers",
    "url": "https://provider.example"
  },
  "conformance": [
    "CORE",
    "SIGNALS",
    "SUBSCRIPTIONS"
  ],
  "authentication": {
    "tokenUrl": "https://provider.example/oauth2/token"
  },
  "locationLevels": [
    "REGION",
    "COUNTRY",
    "METRO",
    "CAMPUS",
    "FACILITY"
  ],
  "areaLocations": true,
  "finestAnswerLevel": "METRO",
  "features": [
    "LIQUID_COOLING",
    "DIRECT_TO_CHIP_COOLING",
    "REAR_DOOR_HEAT_EXCHANGER",
    "PRIVATE_CAGE"
  ],
  "defaultPowerFactor": 0.95,
  "deliveryTypes": [
    "WEBHOOK",
    "PULL"
  ],
  "disclosure": {
    "timing": "CASE_BY_CASE",
    "density": "ALWAYS",
    "cabinets": "CASE_BY_CASE",
    "power": "NEVER",
    "interconnection": "CASE_BY_CASE",
    "reasons": "CASE_BY_CASE"
  },
  "limits": {
    "maxLocationsPerRequirement": 10,
    "answerValiditySeconds": 86400,
    "maxSignalLifetimeDays": 365,
    "maxSubscriptions": 25,
    "minNotificationIntervalSeconds": 3600,
    "eventRetentionHours": 168
  }
}