Pure Storage · Capability

FlashBlade REST API — Authorization

FlashBlade REST API — Authorization. 5 operations. Lead operation: Pure Storage GET Api_version. Self-contained Naftiko capability covering one Pure Storage business surface.

Run with Naftiko Pure StorageAuthorization

What You Can Do

GET
Get — Pure Storage GET Api_version
/v1/api/api-version
POST
Post — Pure Storage Log in a User
/v1/api/login
GET
Get — Pure Storage GET Login_banner
/v1/api/login-banner
POST
Post — Pure Storage POST Logout
/v1/api/logout
POST
Post — Pure Storage Get Access Token
/v1/oauth2/1-0/token

MCP Tools

pure-storage-get-api-version

Pure Storage GET Api_version

read-only idempotent
pure-storage-log-user

Pure Storage Log in a User

pure-storage-get-login-banner

Pure Storage GET Login_banner

read-only idempotent
pure-storage-post-logout

Pure Storage POST Logout

pure-storage-get-access-token

Pure Storage Get Access Token

read-only

Capability Spec

flashblade-rest-authorization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FlashBlade REST API — Authorization
  description: 'FlashBlade REST API — Authorization. 5 operations. Lead operation: Pure Storage GET Api_version. 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: flashblade-rest-authorization
    baseUri: http://[array]
    description: FlashBlade REST API — Authorization business capability. Self-contained, no shared references.
    resources:
    - name: api-api_version
      path: /api/api_version
      operations:
      - name: get
        method: GET
        description: Pure Storage GET Api_version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-login
      path: /api/login
      operations:
      - name: post
        method: POST
        description: Pure Storage Log in a User
        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-login-banner
      path: /api/login-banner
      operations:
      - name: get
        method: GET
        description: Pure Storage GET Login_banner
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-logout
      path: /api/logout
      operations:
      - name: post
        method: POST
        description: Pure Storage POST Logout
        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
    authentication:
      type: apikey
      key: x-auth-token
      value: '{{env.PURE_STORAGE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: flashblade-rest-authorization-rest
    port: 8080
    description: REST adapter for FlashBlade REST API — Authorization. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/api-version
      name: api-api-version
      description: REST surface for api-api_version.
      operations:
      - method: GET
        name: get
        description: Pure Storage GET Api_version
        call: flashblade-rest-authorization.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/login
      name: api-login
      description: REST surface for api-login.
      operations:
      - method: POST
        name: post
        description: Pure Storage Log in a User
        call: flashblade-rest-authorization.post
        with:
          api-token: rest.api-token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/login-banner
      name: api-login-banner
      description: REST surface for api-login-banner.
      operations:
      - method: GET
        name: get
        description: Pure Storage GET Login_banner
        call: flashblade-rest-authorization.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/logout
      name: api-logout
      description: REST surface for api-logout.
      operations:
      - method: POST
        name: post
        description: Pure Storage POST Logout
        call: flashblade-rest-authorization.post
        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: flashblade-rest-authorization.post
        with:
          X-Request-ID: rest.X-Request-ID
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: flashblade-rest-authorization-mcp
    port: 9090
    transport: http
    description: MCP adapter for FlashBlade REST API — Authorization. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: pure-storage-get-api-version
      description: Pure Storage GET Api_version
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: flashblade-rest-authorization.get
      outputParameters:
      - type: object
        mapping: $.
    - name: pure-storage-log-user
      description: Pure Storage Log in a User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: flashblade-rest-authorization.post
      with:
        api-token: tools.api-token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: pure-storage-get-login-banner
      description: Pure Storage GET Login_banner
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: flashblade-rest-authorization.get
      outputParameters:
      - type: object
        mapping: $.
    - name: pure-storage-post-logout
      description: Pure Storage POST Logout
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: flashblade-rest-authorization.post
      outputParameters:
      - type: object
        mapping: $.
    - name: pure-storage-get-access-token
      description: Pure Storage Get Access Token
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: flashblade-rest-authorization.post
      with:
        X-Request-ID: tools.X-Request-ID
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.