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

# Get Resource Status

> Get resource lifecycle status.

Returns only the lifecycle state, useful for polling without fetching full configuration.

Lifecycle states:
    - draft: Stored but not submitted for processing
    - waiting: Dependencies not yet ready
    - pending: Validated and queued for provider
    - processing: Provider is actively processing
    - ready: Successfully provisioned and operational
    - failed: Processing failed (check error field)
    - deleting: Provider teardown in progress

Returns:
    ResourceStatus with lifecycle_state and optional error message.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /projects/{project_id}/resources/status
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /projects/{project_id}/resources/status:
    get:
      tags:
        - resources
      summary: Get Resource Status
      description: >-
        Get resource lifecycle status.


        Returns only the lifecycle state, useful for polling without fetching
        full configuration.


        Lifecycle states:
            - draft: Stored but not submitted for processing
            - waiting: Dependencies not yet ready
            - pending: Validated and queued for provider
            - processing: Provider is actively processing
            - ready: Successfully provisioned and operational
            - failed: Processing failed (check error field)
            - deleting: Provider teardown in progress

        Returns:
            ResourceStatus with lifecycle_state and optional error message.
      operationId: resources-get_resource_status
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
        - name: provider
          in: query
          required: true
          schema:
            type: string
            description: Provider name
            title: Provider
          description: Provider name
        - name: resource
          in: query
          required: true
          schema:
            type: string
            description: Resource type
            title: Resource
          description: Resource type
        - name: name
          in: query
          required: true
          schema:
            type: string
            description: Resource name
            title: Name
          description: Resource name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceStatus'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ResourceStatus:
      properties:
        resource_id:
          type: string
          title: Resource Id
        lifecycle_state:
          $ref: '#/components/schemas/LifecycleState'
        health:
          $ref: '#/components/schemas/HealthStatus'
          default: healthy
        health_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Health Message
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      required:
        - resource_id
        - lifecycle_state
      title: ResourceStatus
      description: |-
        Resource lifecycle status response.

        Attributes:
            resource_id: Unique resource identifier.
            lifecycle_state: Current lifecycle state (draft, waiting, pending, processing, ready, failed, deleting).
            health: Dependency health flag (healthy or degraded).
            health_message: Human-readable description of why health is degraded.
            error: Error message if resource is in failed state.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LifecycleState:
      type: string
      enum:
        - draft
        - waiting
        - pending
        - processing
        - ready
        - failed
        - deleting
      title: LifecycleState
      description: Lifecycle states for resources.
    HealthStatus:
      type: string
      enum:
        - healthy
        - degraded
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````