Pure Storage · Capability

FlashArray REST API — Authorization

FlashArray REST API — Authorization. 4 operations. Lead operation: Pure Storage Create a User Session. Self-contained Naftiko capability covering one Pure Storage business surface.

Run with Naftiko Pure StorageAuthorization

What You Can Do

POST
Post — Pure Storage Create a User Session
/v1/api/2-52/login
POST
Post — Pure Storage POST Logout (Placeholder)
/v1/api/2-52/logout
GET
Get — Pure Storage List Available API Versions
/v1/api/api-version
POST
Post — Pure Storage Get Access Token
/v1/oauth2/1-0/token

MCP Tools

pure-storage-create-user-session

Pure Storage Create a User Session

pure-storage-post-logout-placeholder

Pure Storage POST Logout (Placeholder)

pure-storage-list-available-api

Pure Storage List Available API Versions

read-only idempotent
pure-storage-get-access-token

Pure Storage Get Access Token

read-only

Capability Spec

flasharray-rest-authorization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FlashArray REST API — Authorization
  description: 'FlashArray REST API — Authorization. 4 operations. Lead operation: Pure Storage Create a User Session. Self-contained
    Naftiko capability covering one Pure Storage business surface.'
  tags:
  - Pure Storage
  - Authorization
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PURE_STORAGE_API_KEY: PURE_STORAGE_API_KEY
capability:
  consumes:
  - type: http
    namespace: flasharray-rest-authorization
    baseUri: ''
    description: FlashArray REST API — Authorization business capability. Self-contained, no shared references.
    resources:
    - name: api-2.52-login
      path: /api/2.52/login
      operations:
      - name: post
        method: POST
        description: Pure Storage Create a User Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-token
          in: header
          type: string
          description: API token for a user.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-2.52-logout
      path: /api/2.52/logout
      operations:
      - name: post
        method: POST
        description: Pure Storage POST Logout (Placeholder)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: x-auth-token
          in: header
          type: string
          description: Session token for a user.
    - name: api-api_version
      path: /api/api_version
      operations:
      - name: get
        method: GET
        description: Pure Storage List Available API Versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: oauth2-1.0-token
      path: /oauth2/1.0/token
      operations:
      - name: post
        method: POST
        description: Pure Storage Get Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: X-Request-ID
          in: header
          type: string
          description: Supplied by client during request or generated by server.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: flasharray-rest-authorization-rest
    port: 8080
    description: REST adapter for FlashArray REST API — Authorization. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/2-52/login
      name: api-2-52-login
      description: REST surface for api-2.52-login.
      operations:
      - method: POST
        name: post
        description: Pure Storage Create a User Session
        call: flasharray-rest-authorization.post
        with:
          api-token: rest.api-token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/2-52/logout
      name: api-2-52-logout
      description: REST surface for api-2.52-logout.
      operations:
      - method: POST
        name: post
        description: Pure Storage POST Logout (Placeholder)
        call: flasharray-rest-authorization.post
        with:
          x-auth-token: rest.x-auth-token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/api-version
      name: api-api-version
      description: REST surface for api-api_version.
      operations:
      - method: GET
        name: get
        description: Pure Storage List Available API Versions
        call: flasharray-rest-authorization.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/oauth2/1-0/token
      name: oauth2-1-0-token
      description: REST surface for oauth2-1.0-token.
      operations:
      - method: POST
        name: post
        description: Pure Storage Get Access Token
        call: flasharray-rest-authorization.post
        with:
          X-Request-ID: rest.X-Request-ID
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: flasharray-rest-authorization-mcp
    port: 9090
    transport: http
    description: MCP adapter for FlashArray REST API — Authorization. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: pure-storage-create-user-session
      description: Pure Storage Create a User Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: flasharray-rest-authorization.post
      with:
        api-token: tools.api-token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: pure-storage-post-logout-placeholder
      description: Pure Storage POST Logout (Placeholder)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: flasharray-rest-authorization.post
      with:
        x-auth-token: tools.x-auth-token
      outputParameters:
      - type: object
        mapping: $.
    - name: pure-storage-list-available-api
      description: Pure Storage List Available API Versions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: flasharray-rest-authorization.get
      outputParameters:
      - type: object
        mapping: $.
    - name: pure-storage-get-access-token
      description: Pure Storage Get Access Token
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: flasharray-rest-authorization.post
      with:
        X-Request-ID: tools.X-Request-ID
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.