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

# Resolve a resource to its canonical SRN



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json post /srn/actions/resolve
openapi: 3.1.0
info:
  title: SELECT API (v2)
  version: 0.1.0
servers:
  - url: https://api.select.dev/v2
    description: SELECT API v2
security: []
paths:
  /srn/actions/resolve:
    post:
      tags:
        - srn
      summary: Resolve a resource to its canonical SRN
      operationId: resolve_srn_route_srn_actions_resolve_post
      parameters:
        - name: x-tenant-id
          in: header
          required: true
          schema:
            type: string
            description: The organization ID the request is scoped to.
            title: X-Tenant-Id
          description: The organization ID the request is scoped to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SrnResolveRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SrnResolveResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '408':
          $ref: '#/components/responses/RequestTimeout'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - HTTPBearer: []
components:
  schemas:
    SrnResolveRequest:
      properties:
        resource_info:
          $ref: '#/components/schemas/ResourceInfo'
        org_id:
          type: string
          title: Org Id
        snowflake_org_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Snowflake Org Name
        snowflake_account_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Snowflake Account Name
        databricks_account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Databricks Account Id
        databricks_workspace_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Databricks Workspace Id
        bigquery_project:
          anyOf:
            - type: string
            - type: 'null'
          title: Bigquery Project
      type: object
      required:
        - resource_info
        - org_id
      title: SrnResolveRequest
    SrnResolveResponse:
      properties:
        srn:
          type: string
          title: Srn
      type: object
      required:
        - srn
      title: SrnResolveResponse
    ResourceInfo:
      properties:
        resource_type:
          type: string
          enum:
            - warehouse
            - task
            - stored_procedure
            - dynamic_table
            - dbt
            - query_pattern
            - mode
            - hex
            - periscope
            - fivetran
            - custom
            - view
            - storage
            - snowpipe
            - looker
            - sigma
            - instance
            - tableau_workbook
            - tableau_data_source
            - tableau_user
            - automatic_clustering
            - search_optimization
            - snowpipe_streaming
            - stream
            - stage
            - idle_warehouse
            - snowflake_query
            - Cortex Agent
            - Cortex Analyst
            - Cortex Code
            - Cortex Code CLI
            - Cortex Code Snowsight
            - Cortex Code Desktop
            - Cortex Fine Tuning
            - Cortex Provisioned Throughput
            - Cortex Search
            - Cortex Search Serving
            - Snowflake Intelligence
            - Snowpark Container Services
            - databricks_query_pattern
            - databricks_dbt
            - databricks_job
            - databricks_submit_run_job
            - databricks_job_task
            - databricks_warehouse
            - databricks_idle_warehouse
            - databricks_cluster
            - databricks_sql_warehouse
            - databricks_dlt_pipeline
            - databricks_app
            - databricks_model_serving
            - databricks_notebook
            - databricks_query
            - databricks_genie
            - databricks_lakebase
            - databricks_networking
            - databricks_database
            - databricks_default_storage
            - databricks_interactive
            - databricks_data_quality_monitoring
            - databricks_base_environments
            - databricks_data_classification
            - databricks_data_sharing
            - databricks_lakeflow_connect
            - databricks_foundation_model_training
            - databricks_workflow_run_job
            - databricks_predictive_optimization
            - databricks_fine_grained_access_control
            - databricks_agent_evaluation
            - bigquery_job
            - bigquery_query_pattern
            - bigquery_dbt
            - bigquery_looker
            - bigquery_custom
            - bigquery_reservation
            - bigquery_project
          title: Resource Type
          description: The kind of resource to resolve.
        identifying_metadata:
          additionalProperties: true
          type: object
          title: Identifying Metadata
          description: >-
            Identifiers that uniquely locate the resource within its account.
            Required keys depend on `resource_type` — e.g. a warehouse is
            `{"name": ...}` and a table is `{"database_name": ...,
            "schema_name": ..., "name": ...}`. See the examples.
      type: object
      required:
        - resource_type
        - identifying_metadata
      title: ResourceInfo
      description: >-
        A cloud resource to resolve to its canonical SELECT Resource Name (SRN).


        Provide the resource's `resource_type` and the `identifying_metadata`
        that

        pins down the specific resource. The keys required in
        `identifying_metadata`

        depend on `resource_type`; see the examples for the common types.
      examples:
        - identifying_metadata:
            name: ANALYTICS_WH
          resource_type: warehouse
        - identifying_metadata:
            database_name: PROD
            name: ORDERS
            schema_name: PUBLIC
          resource_type: storage
        - identifying_metadata:
            query_pattern_id: a1b2c3d4
            query_type: SELECT
          resource_type: query_pattern
        - identifying_metadata:
            node_name: fct_orders
            node_resource_type: model
            project_name: analytics
          resource_type: dbt
        - identifying_metadata:
            database_name: PROD
            name: REFRESH_ORDERS
            schema_name: PUBLIC
          resource_type: task
    ProblemDetail:
      additionalProperties: true
      description: >-
        RFC 9457-style error payload, served as ``application/problem+json``.


        ``code`` is the stable, machine-readable identifier — consumers branch
        on it,

        never on ``title``. ``type`` stays ``about:blank``: we keep no per-error

        documentation pages. There is no ``instance``/request-id member (we
        don't run

        access logs). See the flat error-code catalogue in §4 of the standards
        doc.
      properties:
        type:
          default: about:blank
          title: Type
          type: string
        title:
          type: string
          title: Title
        status:
          title: Status
          type: integer
        detail:
          title: Detail
          type: string
        code:
          title: Code
          type: string
        retryable:
          title: Retryable
          type: boolean
        details:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          default: null
          title: Details
      required:
        - title
        - status
        - detail
        - code
        - retryable
      title: ProblemDetail
      type: object
  responses:
    BadRequest:
      description: Bad request
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        WWW-Authenticate:
          description: Authentication challenge for the requested resource.
          required: true
          schema:
            type: string
    Forbidden:
      description: Forbidden
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    NotFound:
      description: Not found
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    MethodNotAllowed:
      description: Method not allowed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        Allow:
          description: HTTP methods supported by the requested resource.
          required: true
          schema:
            type: string
    RequestTimeout:
      description: Request Timeout
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    Conflict:
      description: Conflict
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    ValidationFailed:
      description: Validation failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    RateLimited:
      description: Rate limited
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        Retry-After:
          description: Number of seconds to wait before retrying the request.
          required: true
          schema:
            type: integer
            minimum: 0
    InternalError:
      description: Internal error
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
    ServiceUnavailable:
      description: Service unavailable
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetail'
      headers:
        Retry-After:
          description: Number of seconds to wait before retrying the request.
          required: true
          schema:
            type: integer
            minimum: 0
  securitySchemes:
    HTTPBearer:
      type: http
      description: Organization API key (sl_…).
      scheme: bearer

````