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

# Get resource attribution

> Read-only attribution snapshots for internal FM-to-Radar consumers.



## OpenAPI

````yaml /openapi/fleet-manager-openapi.yaml get /api/v1/inventory/resource-attributions/{id}/
openapi: 3.0.3
info:
  title: Fleet Manager API
  version: 1.0.0
  description: API for the Nscale Fleet Manager
servers: []
security: []
paths:
  /api/v1/inventory/resource-attributions/{id}/:
    get:
      tags:
        - Inventory
      summary: Get resource attribution
      description: Read-only attribution snapshots for internal FM-to-Radar consumers.
      operationId: retrieve_resource_attribution
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this device resource binding.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceResourceBinding'
          description: ''
        '401':
          description: Authentication credentials were not provided or are invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: You do not have permission to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - oauth2:
            - resource-attribution:read
        - cookieAuth: []
components:
  schemas:
    DeviceResourceBinding:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        device_id:
          type: string
          format: uuid
          readOnly: true
        expected_allocation:
          allOf:
            - $ref: '#/components/schemas/ExpectedAllocation'
          nullable: true
          readOnly: true
        mismatches:
          type: array
          items:
            $ref: '#/components/schemas/AttributionMismatch'
          readOnly: true
        nova_server_uuid:
          type: string
          readOnly: true
        environment:
          type: string
          readOnly: true
        openstack_region_name:
          type: string
          readOnly: true
        resolution_status:
          allOf:
            - $ref: '#/components/schemas/ResolutionStatusEnum'
          readOnly: true
        source_observed_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        last_attempted_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        last_resolved_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        stale_since:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        failure_code:
          type: string
          readOnly: true
        diagnostic_detail:
          type: string
          readOnly: true
        issues:
          type: array
          items:
            $ref: '#/components/schemas/ResourceAttributionIssue'
          readOnly: true
        uni_instances:
          type: array
          items:
            $ref: '#/components/schemas/ObservedUNIInstance'
          readOnly: true
        placements:
          type: array
          items:
            $ref: '#/components/schemas/ObservedPlacement'
          readOnly: true
        kubernetes_clusters:
          type: array
          items:
            $ref: '#/components/schemas/ObservedKubernetesCluster'
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - created_at
        - device_id
        - diagnostic_detail
        - environment
        - expected_allocation
        - failure_code
        - id
        - issues
        - kubernetes_clusters
        - last_attempted_at
        - last_resolved_at
        - mismatches
        - nova_server_uuid
        - openstack_region_name
        - placements
        - resolution_status
        - source_observed_at
        - stale_since
        - uni_instances
        - updated_at
    ErrorResponse:
      type: object
      description: >-
        Uniform error body for every 4xx/5xx response. `detail` is a
        human-readable message, always present, safe to display to end users.
        `code` is the machine-readable identifier. `field_errors` lists
        per-input-field validation messages and is empty for non-field errors
        (auth, permission, not-found, conflict, server).
      required:
        - detail
        - code
        - field_errors
      properties:
        detail:
          type: string
        code:
          $ref: '#/components/schemas/ErrorCodeEnum'
        field_errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
    ExpectedAllocation:
      type: object
      properties:
        allocation_id:
          type: string
          format: uuid
        tenant_id:
          type: string
          format: uuid
        tenant_name:
          type: string
        organisation_id:
          type: string
          format: uuid
      required:
        - allocation_id
        - organisation_id
        - tenant_id
        - tenant_name
    AttributionMismatch:
      type: object
      properties:
        resource_kind:
          $ref: '#/components/schemas/ResourceKindEnum'
        expected_organisation_id:
          type: string
          format: uuid
        observed_organisation_id:
          type: string
      required:
        - expected_organisation_id
        - observed_organisation_id
        - resource_kind
    ResolutionStatusEnum:
      enum:
        - pending
        - unassigned
        - resolved
        - partially_resolved
        - unresolved
        - stale
      type: string
      description: |-
        * `pending` - Pending
        * `unassigned` - Unassigned
        * `resolved` - Resolved
        * `partially_resolved` - Partially resolved
        * `unresolved` - Unresolved
        * `stale` - Stale
    ResourceAttributionIssue:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        resource_kind:
          allOf:
            - $ref: '#/components/schemas/ResourceKindEnum'
          readOnly: true
        code:
          type: string
          readOnly: true
        retryable:
          type: boolean
          readOnly: true
        diagnostic_detail:
          type: string
          readOnly: true
      required:
        - code
        - diagnostic_detail
        - id
        - resource_kind
        - retryable
    ObservedUNIInstance:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ObservedResourceStatusEnum'
        observed_at:
          type: string
          format: date-time
          nullable: true
        last_attempted_at:
          type: string
          format: date-time
          nullable: true
        last_resolved_at:
          type: string
          format: date-time
          nullable: true
        stale_since:
          type: string
          format: date-time
          nullable: true
        id:
          type: string
          format: uuid
        uni_instance_id:
          type: string
        uni_server_id:
          type: string
        organisation_id:
          type: string
        region_id:
          type: string
        project_id:
          type: string
      required:
        - id
        - last_attempted_at
        - last_resolved_at
        - observed_at
        - organisation_id
        - project_id
        - region_id
        - stale_since
        - status
        - uni_instance_id
        - uni_server_id
    ObservedPlacement:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ObservedResourceStatusEnum'
        observed_at:
          type: string
          format: date-time
          nullable: true
        last_attempted_at:
          type: string
          format: date-time
          nullable: true
        last_resolved_at:
          type: string
          format: date-time
          nullable: true
        stale_since:
          type: string
          format: date-time
          nullable: true
        id:
          type: string
          format: uuid
        placement_id:
          type: string
        placement_server_id:
          type: string
        reservation_id:
          type: string
        managed_by:
          type: string
        owner_id:
          type: string
        organisation_id:
          type: string
        region_id:
          type: string
        project_id:
          type: string
      required:
        - id
        - last_attempted_at
        - last_resolved_at
        - managed_by
        - observed_at
        - organisation_id
        - owner_id
        - placement_id
        - placement_server_id
        - project_id
        - region_id
        - reservation_id
        - stale_since
        - status
    ObservedKubernetesCluster:
      type: object
      properties:
        status:
          $ref: '#/components/schemas/ObservedResourceStatusEnum'
        observed_at:
          type: string
          format: date-time
          nullable: true
        last_attempted_at:
          type: string
          format: date-time
          nullable: true
        last_resolved_at:
          type: string
          format: date-time
          nullable: true
        stale_since:
          type: string
          format: date-time
          nullable: true
        id:
          type: string
          format: uuid
        cluster_id:
          type: string
        organisation_id:
          type: string
        project_id:
          type: string
        project_name:
          type: string
        region_id:
          type: string
      required:
        - cluster_id
        - id
        - last_attempted_at
        - last_resolved_at
        - observed_at
        - organisation_id
        - project_id
        - project_name
        - region_id
        - stale_since
        - status
    ErrorCodeEnum:
      type: string
      description: >-
        Stable machine-readable error identifier. New members may be added
        within this API version; clients must tolerate unknown values.
      enum:
        - error
        - invalid
        - parse_error
        - authentication_failed
        - not_authenticated
        - permission_denied
        - not_found
        - method_not_allowed
        - not_acceptable
        - unsupported_media_type
        - conflict
        - enrollment_infrastructure_reference_pending
        - enrollment_infrastructure_reference_changed
        - unprocessable_entity
        - throttled
        - service_unavailable
    FieldError:
      type: object
      description: One input field's validation messages.
      required:
        - field
        - messages
      properties:
        field:
          type: string
          description: >-
            Dotted path to the offending input field, or to the collection row
            when the whole row is invalid (e.g. `filters.end_date`,
            `memberships.0.role`, `memberships.0`).
        messages:
          type: array
          minItems: 1
          items:
            type: string
    ResourceKindEnum:
      enum:
        - uni_instance
        - placement
        - kubernetes_cluster
      type: string
      description: |-
        * `uni_instance` - UNI instance
        * `placement` - Placement
        * `kubernetes_cluster` - Kubernetes cluster
    ObservedResourceStatusEnum:
      enum:
        - resolved
        - stale
      type: string
      description: |-
        * `resolved` - Resolved
        * `stale` - Stale
  securitySchemes:
    oauth2:
      type: oauth2
      flows: {}
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.