> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nscale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get organization topology

> Get organization topology.



## OpenAPI

````yaml /openapi/reservation-openapi.yaml get /api/v2/organizations/{organizationID}/topology
openapi: 3.0.3
info:
  title: Unikorn Reservation API
  description: |-
    Reservation service provides topology-aware bare metal GPU reservation and
    placement, sitting atop UNI Region service resources.
  version: 0.5.0
servers:
  - url: https://reservation.nks.europe-west4.nscale.com
    description: Production
  - url: https://reservation.nks-stg.europe-west2.nscale.com
    description: Staging
  - url: https://reservation.uni-dev.glo1.nscale.com
    description: Development
security: []
paths:
  /api/v2/organizations/{organizationID}/topology:
    description: |-
      Organization allocated topology with Reservation and Placement overlays
      redacted according to project-scoped permissions.
    parameters:
      - $ref: '#/components/parameters/organizationIDParameter'
    get:
      tags:
        - Topology
      summary: Get organization topology
      description: Get organization topology.
      operationId: getOrganizationTopology
      parameters:
        - $ref: '#/components/parameters/topologyRegionIDQueryParameter'
        - $ref: '#/components/parameters/topologyAcceleratorQueryParameter'
        - $ref: '#/components/parameters/topologyUnitQueryParameter'
        - $ref: '#/components/parameters/topologyProjectIDQueryParameter'
        - $ref: '#/components/parameters/topologyReservationIDQueryParameter'
      responses:
        '200':
          $ref: '#/components/responses/organizationTopologyV2Response'
        '400':
          $ref: '#/components/responses/badRequestResponse'
        '401':
          $ref: '#/components/responses/unauthorizedResponse'
        '403':
          $ref: '#/components/responses/forbiddenResponse'
        '500':
          $ref: '#/components/responses/internalServerErrorResponse'
      security:
        - oauth2Authentication: []
components:
  parameters:
    organizationIDParameter:
      name: organizationID
      in: path
      description: The organization ID.
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 63
    topologyRegionIDQueryParameter:
      name: regionID
      in: query
      description: Limits topology to one region.
      schema:
        type: string
    topologyAcceleratorQueryParameter:
      name: accelerator
      in: query
      description: Limits topology to one accelerator projection.
      schema:
        type: string
    topologyUnitQueryParameter:
      name: unit
      in: query
      description: Limits topology to one ReservationUnit projection.
      schema:
        type: string
    topologyProjectIDQueryParameter:
      name: projectID
      in: query
      description: Limits Reservation and Placement overlays to one project.
      schema:
        type: string
    topologyReservationIDQueryParameter:
      name: reservationID
      in: query
      description: Limits Reservation and Placement overlays to one reservation.
      schema:
        type: string
  responses:
    organizationTopologyV2Response:
      description: Organization topology view.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/organizationTopologyV2Read'
    badRequestResponse:
      description: |-
        Request body failed schema validation, or the request does not contain
        all the required fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: invalid_request
            error_description: request body invalid
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    unauthorizedResponse:
      description: Authentication failed or the access token has expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: access_denied
            error_description: authentication failed
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    forbiddenResponse:
      description: >-
        Request was denied by authorization, this may be caused by the
        authorization

        token not having the required scope for an API, or the user doesn't have
        the

        necessary privileges on the provider platform.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: forbidden
            error_description: user credentials do not have the required privileges
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
    internalServerErrorResponse:
      description: >-
        An unexpected or unhandled error occurred. This may be a transient error
        and

        may succeed on a retry.  If this isn't the case, please report it as an
        issue.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
          example:
            error: server_error
            error_description: failed to token claim
            trace_id: 57bc14d9bd461f0b5a72db830149b67a
  schemas:
    organizationTopologyV2Read:
      description: Allocated topology visible to one organization.
      type: array
      items:
        $ref: '#/components/schemas/topologyRegionV2'
    error:
      description: Generic error message, compatible with oauth2.
      type: object
      required:
        - error
        - error_description
      properties:
        error:
          description: >-
            A terse error string expanding on the HTTP error code. Errors are
            based on the OAuth 2.02 specification, but are expanded with
            proprietary status codes for APIs other than those specified by
            OAuth 2.02.
          type: string
          enum:
            - invalid_request
            - server_error
            - access_denied
            - not_found
            - conflict
            - method_not_allowed
            - unsupported_media_type
            - request_entity_too_large
            - unprocessable_content
            - forbidden
        error_description:
          description: Verbose message describing the error.
          type: string
        trace_id:
          description: Unique trace identifier for the request.
          type: string
    topologyRegionV2:
      type: object
      required:
        - regionId
        - projections
      properties:
        regionId:
          description: Region that owns this disjoint topology set.
          type: string
        projections:
          type: array
          items:
            $ref: '#/components/schemas/topologyProjectionV2'
    topologyProjectionV2:
      type: object
      required:
        - reservationUnit
        - topology
        - overlays
      properties:
        reservationUnit:
          $ref: '#/components/schemas/topologyReservationUnitV2'
          description: Public ReservationUnit offer represented by this topology.
        topology:
          type: array
          items:
            $ref: '#/components/schemas/topologyPodV2'
        overlays:
          $ref: '#/components/schemas/topologyOverlaysV2'
          description: >
            Readable Reservation and Placement overlays for this projection.
            Hosts reference entries from these maps only when the caller can
            read the corresponding object.
    topologyReservationUnitV2:
      type: object
      required:
        - accelerator
        - unit
        - machineFlavorId
        - deviceTypeResourceClass
        - hostsPerUnit
      properties:
        accelerator:
          description: Public accelerator model or family for this projection.
          type: string
        unit:
          description: Public reservation granularity for this projection.
          type: string
        machineFlavorId:
          description: Region machine flavor resolved for this projection.
          type: string
        deviceTypeResourceClass:
          description: Expected device type resource class for this projection.
          type: string
        hostsPerUnit:
          description: Number of hosts claimed by one reservation unit.
          type: integer
          minimum: 1
    topologyPodV2:
      type: object
      required:
        - id
        - domains
      properties:
        id:
          description: >
            Opaque identifier for this pod group. Clients should compare it for
            equality only; it does not expose provider topology group IDs or
            facility-internal naming.
          type: string
        name:
          description: >
            Human-readable topology name for this pod when the provider supplies
            one, for example pod-1. Clients should use it as a response-local
            display coordinate, not as a provider object ID.
          type: string
        domains:
          type: array
          items:
            $ref: '#/components/schemas/topologyDomainV2'
    topologyOverlaysV2:
      type: object
      required:
        - reservations
        - placements
      properties:
        reservations:
          description: >
            Readable Reservation overlays keyed by host reservationRef values.
            Empty when no Reservation overlays are visible in this projection.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/topologyReservationOverlayV2'
        placements:
          description: >
            Readable Placement overlays keyed by host placementRef values. Empty
            when no Placement overlays are visible in this projection.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/placementV2Read'
    topologyDomainV2:
      type: object
      required:
        - id
        - hosts
      properties:
        id:
          description: >
            Opaque identifier for this NVLink domain. Clients should compare it
            for equality only; it does not expose provider topology group IDs or
            facility-internal naming.
          type: string
        name:
          description: >
            Human-readable topology name for this NVLink domain when the
            provider supplies one, for example nvl-a7. Clients should use it as
            a response-local display coordinate, not as a provider object ID.
          type: string
        hosts:
          type: array
          items:
            $ref: '#/components/schemas/topologyHostV2'
    topologyReservationOverlayV2:
      description: >
        Readable Reservation overlay for a topology projection. The common
        Reservation read fields remain at the top level; topology-specific
        fields describe the Reservation's accepted topology in this projection.
      type: object
      allOf:
        - $ref: '#/components/schemas/reservationV2Read'
        - type: object
          properties:
            topologyEntityTag:
              description: >
                This Reservation's current accepted topology hash. Quote this
                value back as the release endpoint's If-Match precondition to
                guard against a concurrent topology change.
              type: string
            units:
              description: >
                Accepted Reservation units keyed by opaque, Reservation-scoped
                unit ID. Present when the caller can read accepted unit
                membership for this Reservation; omitted when no unit data is
                available.
              type: object
              additionalProperties:
                $ref: '#/components/schemas/topologyAcceptedReservationUnitV2'
    placementV2Read:
      description: A placement.
      type: object
      required:
        - metadata
        - spec
        - status
      properties:
        metadata:
          $ref: '#/components/schemas/projectScopedResourceReadMetadata'
        spec:
          $ref: '#/components/schemas/placementV2Spec'
        status:
          $ref: '#/components/schemas/placementV2Status'
    topologyHostV2:
      type: object
      required:
        - infrastructureRef
        - reserved
      properties:
        infrastructureRef:
          description: >
            Ironic node UUID for this host. This identifies the host in the
            topology tree and is present regardless of Reservation or Placement
            state.
          type: string
        reserved:
          description: Whether this host is claimed by any Reservation.
          type: boolean
        reservationRef:
          description: >
            Key into the projection's reservations overlay. Present only when
            this host is reserved and the caller can read the owning
            Reservation.
          type: string
        reservationUnitRef:
          description: >
            Key into the owning Reservation overlay's units map. Present only
            when this host is reserved, the caller can read the owning
            Reservation, and accepted unit membership is available for that
            Reservation. When present, reservationRef is also present and gives
            the owning Reservation scope for this key.
          type: string
        placementRef:
          description: >
            Key into the projection's placements overlay. Present only when this
            host is placed and the caller can read the owning Placement.
          type: string
        server:
          $ref: '#/components/schemas/placementServerV2Read'
          description: >
            Readable server occupying this host. Present only when this host has
            a server and the caller can read server state for the owning
            project.
    reservationV2Read:
      description: A reservation.
      type: object
      required:
        - metadata
        - spec
        - status
      properties:
        metadata:
          $ref: '#/components/schemas/projectScopedResourceReadMetadata'
        spec:
          $ref: '#/components/schemas/reservationV2Spec'
        status:
          $ref: '#/components/schemas/reservationV2Status'
    topologyAcceptedReservationUnitV2:
      type: object
      required:
        - infrastructureRefs
        - occupied
      properties:
        infrastructureRefs:
          description: Ironic node UUIDs of the hosts in this accepted unit.
          type: array
          items:
            type: string
        occupied:
          description: >
            True when at least one Placement still holds a host in this accepted
            unit.
          type: boolean
    projectScopedResourceReadMetadata:
      description: Metadata required by project scoped resource reads.
      allOf:
        - $ref: '#/components/schemas/organizationScopedResourceReadMetadata'
        - type: object
          required:
            - projectId
          properties:
            projectId:
              description: The project identifier the resource belongs to.
              type: string
    placementV2Spec:
      description: A placement's specification.
      type: object
      required:
        - count
        - constraints
        - serverSpec
      properties:
        count:
          description: Number of hosts to allocate from the reservation.
          type: integer
          minimum: 1
        constraints:
          $ref: '#/components/schemas/placementConstraintsV2'
        readinessPolicy:
          $ref: '#/components/schemas/placementReadinessPolicyV2'
        serverSpec:
          $ref: '#/components/schemas/placementServerSpecV2'
        updateStrategy:
          $ref: '#/components/schemas/placementUpdateStrategyV2'
    placementV2Status:
      description: Read only status information about a placement.
      type: object
      required:
        - regionId
        - reservationId
        - networkId
        - statusCurrent
      properties:
        regionId:
          description: The region the placement belongs to.
          type: string
        reservationId:
          description: The reservation the placement allocates from.
          type: string
        networkId:
          description: The network the placement belongs to.
          type: string
        statusCurrent:
          description: |-
            Whether the observed status, including updatedHostCount and
            driftedHostCount, reflects the placement's current spec. It is false
            between a spec change (such as an image update) and the next
            reconcile that re-observes the servers, during which the image
            convergence counts must not be trusted.
          type: boolean
        readyHostCount:
          description: Number of hosts whose Region server resources are ready.
          type: integer
          minimum: 0
        updatedHostCount:
          description: >-
            Number of servers fully converged on the placement's desired image,
            i.e. running that image and provisioned. Only meaningful when
            statusCurrent is true.
          type: integer
          minimum: 0
        driftedHostCount:
          description: >-
            Number of servers not yet converged on the placement's desired
            image, including servers whose image has been pushed but that are
            still re-provisioning. Only meaningful when statusCurrent is true.
          type: integer
          minimum: 0
        inFlightCount:
          description: >-
            Number of servers that are not provisioned, whatever the cause, each
            holding a slot of the rollout budget. A subset of driftedHostCount.
            Only meaningful when statusCurrent is true.
          type: integer
          minimum: 0
        stalledCount:
          description: >-
            Number of in-flight servers whose provisioning has errored,
            surfacing a RollingUpdate that cannot make progress. A subset of
            inFlightCount. Only meaningful when statusCurrent is true.
          type: integer
          minimum: 0
        maxUnavailable:
          description: >-
            The rollout budget resolved from updateStrategy for the current
            spec, i.e. the maximum number of servers allowed in flight at once.
            Zero in Manual mode. Only meaningful when statusCurrent is true.
          type: integer
          minimum: 0
    placementServerV2Read:
      description: A placement server.
      type: object
      required:
        - metadata
        - status
      properties:
        metadata:
          $ref: '#/components/schemas/projectScopedResourceReadMetadata'
        status:
          $ref: '#/components/schemas/placementServerV2Status'
    reservationV2Spec:
      description: A reservation's specification.
      type: object
      required:
        - regionId
        - accelerator
        - unit
        - count
      properties:
        regionId:
          description: The region to reserve capacity in.
          type: string
        accelerator:
          description: Public accelerator model or family to reserve.
          type: string
        unit:
          description: Public reservation granularity to reserve.
          type: string
        count:
          description: Number of reservation units to reserve.
          type: integer
          minimum: 1
    reservationV2Status:
      description: Read only status information about a reservation.
      type: object
      required:
        - machineFlavorId
        - claimedUnitCount
        - host
      properties:
        machineFlavorId:
          description: Resolved Region machine flavor used for pinned servers.
          type: string
        claimedUnitCount:
          description: Number of reservation units successfully claimed.
          type: integer
          minimum: 0
        host:
          $ref: '#/components/schemas/reservationUnitHostV2'
        topologyHash:
          description: Hash of the claimed topology projection accepted by the reservation.
          type: string
        topologyObservedAt:
          description: Time when the claimed topology projection was last observed.
          type: string
          format: date-time
    organizationScopedResourceReadMetadata:
      description: Metadata required by organization scoped resource reads.
      allOf:
        - $ref: '#/components/schemas/resourceReadMetadata'
        - type: object
          required:
            - organizationId
          properties:
            organizationId:
              description: The organization identifier the resource belongs to.
              type: string
    placementConstraintsV2:
      description: Scheduling policy applied when selecting hosts from the reservation.
      type: object
      required:
        - policy
      properties:
        policy:
          $ref: '#/components/schemas/placementPolicyV2'
        maxSkew:
          description: |-
            Maximum difference in host count between any two domains.
            Applicable only when policy is spread.
          type: integer
          minimum: 1
        minDomains:
          description: |-
            Minimum number of domains that must receive at least one selected
            host. Applicable only when policy is spread. Must be less than or
            equal to count.
          type: integer
          minimum: 1
        whenUnsatisfiable:
          $ref: '#/components/schemas/whenUnsatisfiableV2'
    placementReadinessPolicyV2:
      description: |-
        Controls how current host readiness affects Placement selection.
        Defaults to Prefer.
      type: object
      required:
        - mode
      properties:
        mode:
          $ref: '#/components/schemas/placementReadinessModeV2'
    placementServerSpecV2:
      description: Region server options applied to each pinned server.
      type: object
      required:
        - imageId
      properties:
        imageId:
          description: The image to use for each pinned server.
          type: string
        networking:
          $ref: '#/components/schemas/placementServerNetworkingV2'
        sshCertificateAuthorityId:
          description: |-
            The SSH certificate authority ID. Omit to create pinned Region
            servers with SSH injection disabled.
          type: string
        userData:
          description: |-
            Contains base64-encoded configuration information or scripts to
            use upon launch.
          type: string
          format: byte
    placementUpdateStrategyV2:
      description: |-
        Controls how a placement's servers converge to the desired image after
        an image change. Defaults to Manual. Omitted on update, the stored
        strategy is kept; send type Manual to switch back.
      type: object
      required:
        - type
      properties:
        type:
          $ref: '#/components/schemas/placementUpdateStrategyTypeV2'
        rollingUpdate:
          $ref: '#/components/schemas/placementRollingUpdateV2'
    placementServerV2Status:
      description: Read only runtime status information about a placement server.
      type: object
      required:
        - regionId
        - reservationId
        - placementId
        - networkId
        - infrastructureRef
        - ordinal
        - hostReadiness
      properties:
        desiredState:
          description: >-
            The accepted desired state of the member, omitted for Legacy
            members.
          type: string
          enum:
            - Running
            - Drained
        lifecycleState:
          description: |-
            The member's progress towards its desired state, omitted for
            Legacy members. An accepted Boot reads Provisioning and an
            accepted Drain reads Draining before the service has observed
            them.
          type: string
          enum:
            - Provisioning
            - Running
            - Draining
            - Drained
            - Failed
        generation:
          description: |-
            The version of the member's accepted desired state. It changes
            whenever the desired state or chosen image changes; it is not a
            count of requests.
          type: integer
          format: int64
          minimum: 0
        observedGeneration:
          description: |-
            The desired-state version the service last processed. Equality
            with generation alone does not mean success; consult
            lifecycleState.
          type: integer
          format: int64
          minimum: 0
        entityTag:
          description: |-
            Opaque quoted strong tag identifying the member version the
            client read: the member's identity, its desired-state version and
            the Placement configuration generation. Omitted for Legacy
            members. Supply the original value in If-Match on Boot or Drain;
            either action accepts it, subject to its own state checks.
          type: string
        regionId:
          description: The region the placement server belongs to.
          type: string
        reservationId:
          description: The reservation the placement server allocates from.
          type: string
        placementId:
          description: The placement that owns this server.
          type: string
        networkId:
          description: The network the placement server belongs to.
          type: string
        infrastructureRef:
          description: |-
            The normalized infrastructure reference Reservation used as the
            pinned Region Server boot target.
          type: string
        ordinal:
          description: |-
            The zero-based position of this server within its Placement,
            assigned once at allocation and stable for the lifetime of the
            slot. Unique within the Placement.
          type: integer
          minimum: 0
        powerState:
          $ref: '#/components/schemas/instanceLifecyclePhase'
        privateIP:
          description: The private IP address of the server.
          type: string
        publicIP:
          description: The public IP address of the server.
          type: string
        macAddress:
          description: The MAC address of the server.
          type: string
        driftState:
          $ref: '#/components/schemas/placementServerDriftStateV2'
        hostReadiness:
          description: |-
            Whether the host this server is bound to currently permits new boot
            work. Only Ready permits it. NotReady means the host refuses new
            boot work. Unresolved means the server's binding no longer resolves
            to a host. Unknown means the service has no verdict. The service
            refreshes this value periodically, so a change to the host appears
            after the next refresh rather than on each read.
          type: string
          enum:
            - Ready
            - NotReady
            - Unresolved
            - Unknown
        hostReadinessReason:
          description: |-
            Why the host has its current readiness, omitted when there is no
            reason to report.
          type: string
        hostReadinessObservedAt:
          description: |-
            When the host was last read for the published hostReadiness.
            Present for members whose readiness the service records per
            member; omitted for others. A verdict older than the service's
            freshness limit reads as Unknown.
          type: string
          format: date-time
        topologyPath:
          description: |-
            Ordered physical topology level names for the host backing this
            server, from the host outward: the NVLink domain first, then its
            pod, then its spine group, and so on. Provided so a caller can
            label the corresponding node with its topology without a separate
            topology call. Names are display coordinates, not provider object
            identifiers; the caller assigns its own label keys per position.
            The path length varies by provider and the field is omitted when
            the host has no topology path.
          type: array
          items:
            type: string
    reservationUnitHostV2:
      description: Region flavor capacity for one host in a reservation unit.
      type: object
      required:
        - cpus
        - memory
        - disk
        - gpu
        - architecture
      properties:
        cpus:
          description: The number of CPUs on one host.
          type: integer
          minimum: 0
        memory:
          description: The amount of memory in GiB on one host.
          type: integer
          minimum: 0
        disk:
          description: The amount of ephemeral disk in GB on one host.
          type: integer
          minimum: 0
        gpu:
          $ref: '#/components/schemas/reservationUnitGpuV2'
        architecture:
          $ref: '#/components/schemas/architectureV2'
    resourceReadMetadata:
      description: Metadata required by all resource reads.
      allOf:
        - $ref: '#/components/schemas/staticResourceMetadata'
        - type: object
          required:
            - provisioningStatus
            - healthStatus
          properties:
            deletionTime:
              description: The time the resource was deleted.
              type: string
              format: date-time
            provisioningStatus:
              $ref: '#/components/schemas/resourceProvisioningStatus'
            provisioningStatusDetail:
              $ref: '#/components/schemas/provisioningStatusDetail'
            healthStatus:
              $ref: '#/components/schemas/resourceHealthStatus'
            healthStatusDetail:
              $ref: '#/components/schemas/healthStatusDetail'
    placementPolicyV2:
      description: |-
        Pack fills domains sequentially, maximising locality. Spread
        distributes hosts as evenly as possible across domains.
      type: string
      enum:
        - pack
        - spread
    whenUnsatisfiableV2:
      description: |-
        Fail returns an error if the constraint cannot be fully satisfied.
        Best effort applies the constraint as closely as it can.
      type: string
      enum:
        - fail
        - bestEffort
    placementReadinessModeV2:
      description: |-
        Require only selects hosts that pass current readiness preflight. Prefer
        selects ready hosts first but may use structurally claimable hosts to
        satisfy the request. Ignore does not use readiness when selecting hosts.
      type: string
      enum:
        - Require
        - Prefer
        - Ignore
    placementServerNetworkingV2:
      description: Region server networking options applied to each pinned server.
      type: object
      properties:
        allowedSourceAddresses:
          description: |-
            A list of network prefixes that are allowed to egress from the
            server. By default, only packets from the server's network
            interface's IP address are allowed to enter the network.
          type: array
          items:
            type: string
        publicIP:
          description: Whether or not to provision a public IP.
          type: boolean
        securityGroups:
          description: A list of security group IDs.
          type: array
          items:
            type: string
    placementUpdateStrategyTypeV2:
      description: |-
        How servers converge to the placement's desired image after the image
        changes. Manual leaves convergence to explicit per-server reconcile
        actions. RollingUpdate lets the service converge drifted servers
        automatically, capped at maxUnavailable in flight.
      type: string
      enum:
        - Manual
        - RollingUpdate
    placementRollingUpdateV2:
      description: Tuning for the RollingUpdate strategy.
      type: object
      properties:
        maxUnavailable:
          description: |-
            Servers that may converge at once: a count ("1") or a percentage of
            count ("25%", rounded up); default 1. Must resolve to at least one
            server for either type. A service-side ceiling also bounds it.
          type: string
          pattern: ^([0-9]{1,9}|([0-9]|[1-9][0-9]|100)%)$
    instanceLifecyclePhase:
      description: |
        The lifecycle phase of an instance. Once provisioning_status reaches
        provisioned, this becomes the live readiness signal: API consumers
        should treat Running (not provisioned) as the "ready to use" state.
        Queued and Building are observed during create — Queued for
        baremetal servers waiting on hardware, Building for servers the
        provider is actively bringing up. Rebuilding means an already
        provisioned server is being reimaged in place and is not usable until
        it completes. Rebooting means a soft or hard reboot has been accepted
        and is in flight; it returns to Running once the provider has
        processed the request. To confirm the guest actually restarted, use
        OS-level evidence such as a changed boot ID or boot time. Error 
        means the provider reported the server in a terminal error state.
      type: string
      enum:
        - Pending
        - Queued
        - Building
        - Rebuilding
        - Rebooting
        - Running
        - Stopping
        - Stopped
        - Error
    placementServerDriftStateV2:
      description: |-
        The server's image-convergence state relative to the placement's
        declared image. UpToDate: image matches and the server is provisioned.
        Drifted: the image differs and reconciliation has not been accepted.
        Converging: reconciliation has been accepted but the server is not yet
        provisioned, whether because it is still converging or because its
        provisioning has errored (the two cannot be distinguished from the
        read, so the busier state is reported conservatively; the error itself
        remains visible in the server's provisioningStatus and healthStatus,
        and an errored convergence recovers only through a further image
        change on the placement). Only Converging indicates work may be in
        progress; Drifted may persist until reconciliation is accepted.
      type: string
      enum:
        - UpToDate
        - Drifted
        - Converging
    reservationUnitGpuV2:
      description: GPU specification for one host in a reservation unit.
      type: object
      required:
        - vendor
        - model
        - physicalCount
        - logicalCount
        - memory
      properties:
        vendor:
          $ref: '#/components/schemas/gpuVendorV2'
        model:
          description: A GPU model.
          type: string
        physicalCount:
          description: The physical number of GPUs available on one host.
          type: integer
          minimum: 0
        logicalCount:
          description: The logical number of GPUs available on one host.
          type: integer
          minimum: 0
        memory:
          description: GPU memory in GiB for one GPU.
          type: integer
          minimum: 0
    architectureV2:
      description: A CPU architecture.
      type: string
      enum:
        - UNKNOWN
        - x86_64
        - aarch64
    staticResourceMetadata:
      description: |
        This metadata is for resources that just exist, and don't require
        any provisioning and health status, but benefit from a standardized
        metadata format.
      type: object
      allOf:
        - $ref: '#/components/schemas/resourceMetadata'
        - type: object
          required:
            - id
            - creationTime
          properties:
            id:
              description: The unique resource ID.
              type: string
            creationTime:
              description: The time the resource was created.
              type: string
              format: date-time
            createdBy:
              description: The user who created the resource.
              type: string
            modifiedTime:
              description: The time a resource was updated.
              type: string
              format: date-time
            modifiedBy:
              description: The user who updated the resource.
              type: string
    resourceProvisioningStatus:
      description: The provisioning state of a resource.
      type: string
      enum:
        - pending
        - provisioning
        - provisioned
        - deprovisioning
        - error
    provisioningStatusDetail:
      description: |-
        Human-facing detail about the current provisioning state: a
        machine-classifiable reason drawn from a closed vocabulary, and a
        user-safe human-readable message. Derived from the resource's status and
        supplements the coarse provisioningStatus; never stored.
      type: object
      required:
        - reason
        - message
      properties:
        reason:
          $ref: '#/components/schemas/provisioningStatusReason'
        message:
          description: A user-safe, human-readable description of the provisioning state.
          type: string
    resourceHealthStatus:
      description: The health state of a resource.
      type: string
      enum:
        - unknown
        - healthy
        - degraded
        - error
    healthStatusDetail:
      description: >-
        Human-facing detail about the current health state: a
        machine-classifiable

        reason drawn from a closed vocabulary, and a user-safe human-readable

        message (e.g. "2/12 nodes are down"). Derived from the resource's status
        and

        supplements the coarse healthStatus; never stored.
      type: object
      required:
        - reason
        - message
      properties:
        reason:
          $ref: '#/components/schemas/healthStatusReason'
        message:
          description: A user-safe, human-readable description of the health state.
          type: string
    gpuVendorV2:
      description: The GPU vendor.
      type: string
      enum:
        - UNKNOWN
        - NVIDIA
        - AMD
    resourceMetadata:
      description: Metadata required for all API resource reads and writes.
      required:
        - name
      properties:
        name:
          $ref: '#/components/schemas/kubernetesLabelValue'
        description:
          description: >-
            The resource description, this optionally augments the name with
            more context.
          type: string
        tags:
          $ref: '#/components/schemas/tagList'
    provisioningStatusReason:
      description: |-
        A closed, generic classification of a resource's provisioning state,
        finer-grained than provisioningStatus. This vocabulary is owned by the
        platform and is the same across all resources; domain-specific state
        (e.g. an instance's lifecycle phase) is carried on other mechanisms and
        never appears here.
      type: string
      enum:
        - Provisioning
        - Provisioned
        - Errored
        - Deprovisioning
        - Deprovisioned
        - DependencyNotReady
        - DependencyFailed
        - DependencyNotFound
    healthStatusReason:
      description: >-
        A closed, generic classification of a resource's health — the raw health

        condition reason, finer-grained than the coarse healthStatus. Owned by
        the

        platform and the same across all resources.
      type: string
      enum:
        - Healthy
        - Degraded
        - Unknown
    kubernetesLabelValue:
      description: >-
        A valid Kubernetes label value, typically used for resource names that
        can be

        indexed in the database.
      type: string
      pattern: ^[0-9A-Za-z](?:[0-9A-Za-z-_.]{0,61}[0-9A-Za-z])?$
    tagList:
      description: A list of tags.
      type: array
      items:
        $ref: '#/components/schemas/tag'
    tag:
      description: >-
        A tag mapping arbitrary names to values.  These have no special meaning

        for any component are are intended for use by end users to add
        additional

        context to a resource, for example to categorize it.
      type: object
      required:
        - name
        - value
      properties:
        name:
          description: A unique tag name.
          type: string
        value:
          description: The value of the tag.
          type: string
  securitySchemes:
    oauth2Authentication:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: /oauth2/v2/authorization
          tokenUrl: /oauth2/v2/token
          scopes: {}

````