Portworx OpenStorageRole API
The OpenStorageRole API from Portworx — 3 operation(s) for openstoragerole.
The OpenStorageRole API from Portworx — 3 operation(s) for openstoragerole.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/portworx-openstoragerole-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: OpenStorage SDK OpenStorageAlerts Open Storage Role API
version: 0.186.0
servers:
- url: https://libopenstorage.github.io/
description: Base URL declared by the provider in apis.yml (roadmap#122).
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:
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
apiSdkRole:
properties:
name:
type: string
rules:
items:
$ref: '#/components/schemas/apiSdkRule'
type: array
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
apiSdkRoleCreateResponse:
properties:
role:
$ref: '#/components/schemas/apiSdkRole'
title: Response contains informaiton about the creation of the role
type: object
apiSdkRoleDeleteResponse:
title: Empty response
type: object
apiSdkRoleCreateRequest:
properties:
role:
$ref: '#/components/schemas/apiSdkRole'
title: Defines a request for creating a role
type: object
apiSdkRoleUpdateRequest:
properties:
role:
$ref: '#/components/schemas/apiSdkRole'
title: Defines a request to update an existing role
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
apiSdkRoleInspectResponse:
properties:
role:
$ref: '#/components/schemas/apiSdkRole'
title: Response to inspection request
type: object
apiSdkRoleUpdateResponse:
properties:
role:
$ref: '#/components/schemas/apiSdkRole'
title: Response contains information about the updated role
type: object
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT