Portworx OpenStorageRole API

The OpenStorageRole API from Portworx — 3 operation(s) for openstoragerole.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Identity & Access Management BC-620.20

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/roles List user roles · List all roles #
Ask an LLM
“Which roles exist in the OpenStorage system?”
“What role names are available for users?”
Tell an agent
List all roles.
Show every user role in the system.
POST /v1/roles Create a role for users · Create a role for users in the system #
Ask an LLM
“How do I create a new role for users in the system?”
“Can I define a custom role for a group of users?”
Tell an agent
Create a role {role}.
Define a new user role named {role}.
PUT /v1/roles Update an existing role · Update an existing role #
Ask an LLM
“How do I change the permissions of a role that already exists?”
“Can I edit an existing role's definition?”
Tell an agent
Update the existing role {role}.
Modify role {role} with these new permissions.
GET /v1/roles/inspect/{name} Get information about a role · Get information about a role #
Ask an LLM
“What permissions does a particular role grant?”
“How do I look up one role by name?”
Tell an agent
Get role {name}.
Show the permissions of role {name}.
DELETE /v1/roles/{name} Delete an existing role · Delete an existing role #
Ask an LLM
“How do I remove a role that is no longer needed?”
“Can I delete a role by its name?”
Tell an agent destructive · confirm first
Delete role {name}.
Remove the existing role {name} from the system.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/portworx:portworx-openstoragerole-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

portworx-openstoragerole-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenStorage SDK Open Storage Role API
  version: 0.186.0
security:
- bearerAuth: []
tags:
- name: OpenStorageRole
paths:
  /v1/roles:
    get:
      operationId: OpenStorageRole_Enumerate
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiSdkRoleEnumerateResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
          description: An unexpected error response.
      summary: List all roles
      tags:
      - OpenStorageRole
    post:
      operationId: OpenStorageRole_Create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/apiSdkRoleCreateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiSdkRoleCreateResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
          description: An unexpected error response.
      summary: Create a role for users in the system
      tags:
      - OpenStorageRole
    put:
      operationId: OpenStorageRole_Update
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/apiSdkRoleUpdateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiSdkRoleUpdateResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
          description: An unexpected error response.
      summary: Update an existing role
      tags:
      - OpenStorageRole
  /v1/roles/inspect/{name}:
    get:
      operationId: OpenStorageRole_Inspect
      parameters:
      - description: Name of role
        in: path
        name: name
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiSdkRoleInspectResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
          description: An unexpected error response.
      summary: Get information about a role
      tags:
      - OpenStorageRole
  /v1/roles/{name}:
    delete:
      operationId: OpenStorageRole_Delete
      parameters:
      - in: path
        name: name
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apiSdkRoleDeleteResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/runtimeError'
          description: An unexpected error response.
      summary: Delete an existing role
      tags:
      - OpenStorageRole
components:
  schemas:
    apiSdkRoleCreateResponse:
      properties:
        role:
          $ref: '#/components/schemas/apiSdkRole'
      title: Response contains informaiton about the creation of the role
      type: object
    apiSdkRule:
      description: "SdkRule is the message used to construct custom roles in the OpenStorage SDK.\n\n### Format\nThe following shows the supported format for SdkRule:\n\n* Services: Is the gRPC service name in `OpenStorage<service name>` in lowercase\n* Apis: Is the API name in the service in lowercase\n\nValues can also be set to `*`, or start or end with `*` to allow multiple matches in services or apis.\n\nServices and APIs can also be denied by prefixing the value with a `!`. Note that on rule conflicts,\ndenial will always be chosen.\n\n### Examples\n\n* Allow any call:\n\n```yaml\nSdkRule:\n  - Services: [\"*\"]\n    Apis: [\"*\"]\n```\n\n* Allow only cluster operations:\n\n```yaml\nSdkRule:\n  - services: [\"cluster\"]\n    apis: [\"*\"]\n```\n\n* Allow inspection of any object and listings of only volumes\n\n```yaml\nSdkRule:\n  - Services: [\"volumes\"]\n    Apis: [\"*enumerate*\"]\n  - Services: [\"*\"]\n    Apis: [\"inspect*\"]\n```\n\n* Allow all volume call except create\n\n```yaml\nSdkRule:\n  - Services: [\"volumes\"]\n    Apis: [\"*\", \"!create\"]\n```"
      properties:
        apis:
          items:
            type: string
          title: The API name in the service in lowercase
          type: array
        services:
          items:
            type: string
          title: The gRPC service name in `OpenStorage<service name>` in lowercase
          type: array
      type: object
    runtimeError:
      properties:
        code:
          format: int32
          type: integer
        details:
          items:
            $ref: '#/components/schemas/protobufAny'
          type: array
        error:
          type: string
        message:
          type: string
      type: object
    protobufAny:
      properties:
        type_url:
          type: string
        value:
          format: byte
          type: string
      type: object
    apiSdkRoleEnumerateResponse:
      properties:
        names:
          items:
            type: string
          title: List of role names
          type: array
      title: Respose to enumerate all roles
      type: object
    apiSdkRoleCreateRequest:
      properties:
        role:
          $ref: '#/components/schemas/apiSdkRole'
      title: Defines a request for creating a role
      type: object
    apiSdkRoleDeleteResponse:
      title: Empty response
      type: object
    apiSdkRoleUpdateRequest:
      properties:
        role:
          $ref: '#/components/schemas/apiSdkRole'
      title: Defines a request to update an existing role
      type: object
    apiSdkRole:
      properties:
        name:
          type: string
        rules:
          items:
            $ref: '#/components/schemas/apiSdkRule'
          type: array
      type: object
    apiSdkRoleUpdateResponse:
      properties:
        role:
          $ref: '#/components/schemas/apiSdkRole'
      title: Response contains information about the updated role
      type: object
    apiSdkRoleInspectResponse:
      properties:
        role:
          $ref: '#/components/schemas/apiSdkRole'
      title: Response to inspection request
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT