AVI Networks Role API

The Role API from AVI Networks — 2 operation(s) for role.

GitHub OpenAPI

Operations 6

GET /role GET /role #
POST /role POST /role #
GET /role/{uuid} GET /role/{uuid} #
PUT /role/{uuid} PUT /role/{uuid} #
PATCH /role/{uuid} PATCH /role/{uuid} #
DELETE /role/{uuid} DELETE /role/{uuid} #

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/avi-networks:avi-networks-role-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

avi-networks-role-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Avi Networks Role API
  version: 32.2.1
  contact:
    name: Avi Networks Inc.
    url: https://avinetworks.com/contact-us
    email: support@avinetworks.com
  description: 'Operations tagged Role across 2 of this provider''s published API definitions: avi_global_spec.json, avi-networks-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api
tags:
- name: Role
paths:
  /role:
    get:
      tags:
      - Role
      description: /role
      operationId: GET/role
      parameters:
      - name: name
        in: query
        description: object name
        required: false
        schema:
          type: string
      - name: refers_to
        in: query
        description: Filter to request all objects that refers to another Avi resource. Its syntax is refers_to=<obj_type>:<obj_uuid>. Eg. get all virtual services referring to pool p1 will be refers_to=pool:pool_p1_uuid
        schema:
          type: string
      - name: referred_by
        in: query
        description: Filter to request all objects that are referred by another Avi resource. Its syntax is referred_by=<obj_type>:<obj_uuid>. Eg. get all pools referred_by virtual service vs1 - referred_by=virtualservice:vs_vs1_uuid
        schema:
          type: string
      - name: fields
        in: query
        description: List of fields to be returned for the resource. Some fields like name, URL, uuid etc. are always returned.
        schema:
          type: string
      - name: include_name
        in: query
        description: All the Avi REST reference URIs have a name suffix as URI#name. It is useful to get the referenced resource name without performing get on that object.
        required: false
        schema:
          type: boolean
      - name: skip_default
        in: query
        description: Default values are not set.
        required: false
        schema:
          type: boolean
      - name: join_subresources
        in: query
        description: It automatically returns additional dependent resources like runtime. Eg. join_subresources=runtime.
        schema:
          type: string
      - name: X-Avi-Tenant
        in: header
        required: false
        description: Avi Tenant Header
        schema:
          type: string
      - name: X-Avi-Tenant-UUID
        in: header
        required: false
        description: Avi Tenant Header UUID
        schema:
          type: string
      - name: X-Avi-Version
        in: header
        required: true
        description: The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
        schema:
          type: string
      - name: X-CSRFToken
        in: header
        required: false
        description: Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
        schema:
          type: string
      security:
      - basicAuth: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleApiResponse'
        '401':
          description: log in failed
      summary: GET /role
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: GET /role
    post:
      tags:
      - Role
      description: /role
      operationId: POST/role
      parameters:
      - name: X-Avi-Tenant
        in: header
        required: false
        description: Avi Tenant Header
        schema:
          type: string
      - name: X-Avi-Tenant-UUID
        in: header
        required: false
        description: Avi Tenant Header UUID
        schema:
          type: string
      - name: X-Avi-Version
        in: header
        required: true
        description: The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
        schema:
          type: string
      - name: X-CSRFToken
        in: header
        required: false
        description: Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
        schema:
          type: string
      security:
      - basicAuth: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
        '401':
          description: log in failed
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Role'
        description: Role object creation
        required: true
      summary: POST /role
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: POST /role
    servers:
    - url: /api
  /role/{uuid}:
    get:
      tags:
      - Role
      description: /role/{uuid}/{uuid}
      operationId: GET/role/{uuid}
      parameters:
      - name: name
        in: query
        description: object name
        required: false
        schema:
          type: string
      - name: X-Avi-Tenant
        in: header
        required: false
        description: Avi Tenant Header
        schema:
          type: string
      - name: X-Avi-Tenant-UUID
        in: header
        required: false
        description: Avi Tenant Header UUID
        schema:
          type: string
      - name: X-Avi-Version
        in: header
        required: true
        description: The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
        schema:
          type: string
      - name: X-CSRFToken
        in: header
        required: false
        description: Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
        schema:
          type: string
      - name: uuid
        in: path
        description: UUID of the object to fetch
        required: true
        schema:
          type: string
      - name: fields
        in: query
        description: List of fields to be returned for the resource. Some fields like name, URL, uuid etc. are always returned.
        schema:
          type: string
      - name: include_name
        in: query
        description: All the Avi REST reference URIs have a name suffix as URI#name. It is useful to get the referenced resource name without performing get on that object.
        required: false
        schema:
          type: boolean
      - name: skip_default
        in: query
        description: Default values are not set.
        required: false
        schema:
          type: boolean
      - name: join_subresources
        in: query
        description: It automatically returns additional dependent resources like runtime. Eg. join_subresources=runtime.
        schema:
          type: string
      security:
      - basicAuth: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
        '401':
          description: log in failed
        '404':
          description: object not found
      summary: GET /role/{uuid}
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: GET /role/{uuid}
    put:
      tags:
      - Role
      description: /role/{uuid}/{uuid}
      operationId: PUT/role/{uuid}
      parameters:
      - in: query
        name: name
        description: object name
        required: false
        schema:
          type: string
      - in: header
        name: X-Avi-Tenant
        required: false
        description: Avi Tenant Header
        schema:
          type: string
      - name: X-Avi-Tenant-UUID
        in: header
        required: false
        description: Avi Tenant Header UUID
        schema:
          type: string
      - name: X-Avi-Version
        in: header
        required: true
        description: The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
        schema:
          type: string
      - name: X-CSRFToken
        in: header
        required: false
        description: Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
        schema:
          type: string
      - in: path
        name: uuid
        description: UUID of the object to fetch
        required: true
        schema:
          type: string
      security:
      - basicAuth: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
        '401':
          description: log in failed
        '404':
          description: object not found
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Role'
        description: Role object creation
        required: true
      summary: PUT /role/{uuid}
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: PUT /role/{uuid}
    patch:
      tags:
      - Role
      description: /role/{uuid}/{uuid}
      operationId: PATCH/role/{uuid}
      parameters:
      - in: query
        name: name
        description: object name
        required: false
        schema:
          type: string
      - in: header
        name: X-Avi-Tenant
        required: false
        description: Avi Tenant Header
        schema:
          type: string
      - name: X-Avi-Tenant-UUID
        in: header
        required: false
        description: Avi Tenant Header UUID
        schema:
          type: string
      - name: X-Avi-Version
        in: header
        required: true
        description: The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
        schema:
          type: string
      - name: X-CSRFToken
        in: header
        required: false
        description: Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
        schema:
          type: string
      - in: path
        name: uuid
        description: UUID of the object to fetch
        required: true
        schema:
          type: string
      security:
      - basicAuth: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
        '401':
          description: log in failed
        '404':
          description: object not found
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Role'
        description: Role object creation
        required: true
      summary: PATCH /role/{uuid}
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: PATCH /role/{uuid}
    delete:
      tags:
      - Role
      description: /role/{uuid}/{uuid}
      operationId: DELETE/role/{uuid}
      parameters:
      - in: query
        name: name
        description: object name
        required: false
        schema:
          type: string
      - in: header
        name: X-Avi-Tenant
        required: false
        description: Avi Tenant Header
        schema:
          type: string
      - name: X-Avi-Tenant-UUID
        in: header
        required: false
        description: Avi Tenant Header UUID
        schema:
          type: string
      - name: X-Avi-Version
        in: header
        required: true
        description: The caller is required to set Avi Version Header to the expected version of configuration. The response from the controller will provide and accept data according to the specified version. The controller will reject POST and PUT requests where the data is not compatible with the specified version.
        schema:
          type: string
      - name: X-CSRFToken
        in: header
        required: false
        description: Avi Controller may send back CSRF token in the response cookies. The caller should update the request headers with this token else controller will reject requests.
        schema:
          type: string
      - in: path
        name: uuid
        description: UUID of the object to fetch
        required: true
        schema:
          type: string
      security:
      - basicAuth: []
      responses:
        '204':
          description: object deleted
          content:
            application/json:
              schema:
                type: string
        '404':
          description: object not found
      summary: DELETE /role/{uuid}
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: DELETE /role/{uuid}
    servers:
    - url: /api
components:
  schemas:
    RoleApiResponse:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          format: int32
        results:
          type: array
          items:
            $ref: '#/components/schemas/Role'
        next:
          type: string
    SubResource:
      type: object
      properties:
        exclude_subresources:
          description: Allows modification of all fields except for the specified subresources. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: boolean
        subresources:
          description: Subresources user can modify. Each subresource specifies and individual field. I.e. SUBRESOURCE_POOL_ENABLED allows modification of the enabled field in the Pool object. Enum options - SUBRESOURCE_POOL_ENABLED, SUBRESOURCE_POOL_SERVERS, SUBRESOURCE_POOL_SERVER_ENABLED, SUBRESOURCE_VIRTUALSERVICE_ENABLED, SUBRESOURCE_VIRTUALSERVICE_AUTO_ALLOCATE_FLOATING_IP, SUBRESOURCE_GSLBSERVICE_ENABLED, SUBRESOURCE_GSLBSERVICE_GROUPS, SUBRESOURCE_GSLBSERVICE_GROUP_ENABLED, SUBRESOURCE_GSLBSERVICE_GROUP_MEMBERS, SUBRESOURCE_GSLBSERVICE_GROUP_MEMBER_ENABLED. Field introduced in 20.1.5. Minimum of 1 items required. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: array
          items:
            type: string
    Permission:
      type: object
      required:
      - resource
      - type
      properties:
        resource:
          description: ' Enum options - PERMISSION_CONTROLLER, PERMISSION_INTERNAL, PERMISSION_VIRTUALSERVICE, PERMISSION_POOL, PERMISSION_HEALTHMONITOR, PERMISSION_NETWORKPROFILE, PERMISSION_APPLICATIONPROFILE, PERMISSION_HTTPPOLICYSET, PERMISSION_IPADDRGROUP, PERMISSION_STRINGGROUP, PERMISSION_SSLPROFILE, PERMISSION_SSLKEYANDCERTIFICATE, PERMISSION_NETWORKSECURITYPOLICY, PERMISSION_APPLICATIONPERSISTENCEPROFILE, PERMISSION_ANALYTICSPROFILE, PERMISSION_VSDATASCRIPTSET, PERMISSION_TENANT, PERMISSION_PKIPROFILE, PERMISSION_AUTHPROFILE, PERMISSION_CLOUD, PERMISSION_SERVICEENGINE, PERMISSION_SERVICEENGINEGROUP, PERMISSION_NETWORK, PERMISSION_SYSTEMCONFIGURATION, PERMISSION_VRFCONTEXT, PERMISSION_USER, PERMISSION_ROLE, PERMISSION_ALERT, PERMISSION_ALERTCONFIG, PERMISSION_ALERTEMAILCONFIG, PERMISSION_ALERTSYSLOGCONFIG, PERMISSION_ACTIONGROUPCONFIG, PERMISSION_SNMPTRAPPROFILE, PERMISSION_UPGRADE, PERMISSION_REBOOT, PERMISSION_TECHSUPPORT, PERMISSION_EXEMPT, PERMISSION_VIRTUALSERVICE_MAINTENANCE, PERMISSION_POOL_MAINTENANCE, PERMISSION_TRAFFIC_CAPTURE, PERMISSION_MICROSERVICEGROUP, PERMISSION_IPAMDNSPROVIDERPROFILE, PERMISSION_CERTIFICATEMANAGEMENTPROFILE, PERMISSION_POOLGROUP, PERMISSION_PRIORITYLABELS, PERMISSION_POOLGROUPDEPLOYMENTPOLICY, PERMISSION_GSLB, PERMISSION_GSLBSERVICE, PERMISSION_GSLBGEODBPROFILE, PERMISSION_DNSPOLICY, PERMISSION_TRAFFICCLONEPROFILE, PERMISSION_SE_TOKEN, PERMISSION_WAFPOLICY, PERMISSION_WAFPROFILE, PERMISSION_USER_CREDENTIAL, PERMISSION_AUTOSCALE, PERMISSION_CUSTOMIPAMDNSPROFILE, PERMISSION_ERRORPAGEPROFILE, PERMISSION_ERRORPAGEBODY, PERMISSION_L4POLICYSET, PERMISSION_MICROSERVICE, PERMISSION_HARDWARESECURITYMODULEGROUP, PERMISSION_SECURITYPOLICY, PERMISSION_WAFPOLICYPSMGROUP, PERMISSION_PINGACCESSAGENT, PERMISSION_NETWORKSERVICE, PERMISSION_NATPOLICY, PERMISSION_PROTOCOLPARSER, PERMISSION_SSOPOLICY, PERMISSION_CONTROLLERSITE, PERMISSION_IMAGE, PERMISSION_UPGRADE_OPS, PERMISSION_UPGRADE_SEGROUP_OPS, PERMISSION_TESTSEDATASTORELEVEL1, PERMISSION_TESTSEDATASTORELEVEL2, PERMISSION_TESTSEDATASTORELEVEL3, PERMISSION_FILE_OBJECT, PERMISSION_IPREPUTATIONDB, PERMISSION_ICAP, PERMISSION_GSLBSERVICE_GROUP, PERMISSION_JWTSERVERPROFILE, PERMISSION_GEODB, PERMISSION_BOTDETECTIONPOLICY, PERMISSION_JWTPROFILE, PERMISSION_LABELGROUP, PERMISSION_WAFCRS, PERMISSION_AUTHMAPPINGPROFILE, PERMISSION_ALBSERVICESCONFIG, PERMISSION_ALBSERVICESSTATUS, PERMISSION_ALBSERVICESREG, PERMISSION_LICENSING, PERMISSION_ALBSERVICESUSERINFO, PERMISSION_TENANT_SYSTEM_CONFIGURATION, PERMISSION_CSRFPOLICY, PERMISSION_SERVICEAUTHPROFILE, PERMISSION_SYSTEMREPORT, PERMISSION_CLOUD_API, PERMISSION_TASKJOURNAL, PERMISSION_TELEMETRY_API, PERMISSION_UPGRADEPROFILE, PERMISSION_RETENTIONPOLICY, PERMISSION_APIRATELIMITPROFILE, PERMISSION_TECHSUPPORTPROFILE, PERMISSION_TECHSUPPORTMESSAGE, PERMISSION_ALERTSCRIPTCONFIG, PERMISSION_REPORT, PERMISSION_REPORTPROFILE, PERMISSION_APPLICATIONINSIGHTSPOLICY, PERMISSION_POSITIVESECURITYPOLICY, PERMISSION_TENANTBINDING, PERMISSION_AI_ASSISTANT, PERMISSION_AKOAMKOCLUSTER, PERMISSION_SESSIONKEYFORWARDER, PERMISSION_LABELPROFILE, PERMISSION_APIPATH, PERMISSION_APISCHEMA, PERMISSION_APIPOLICY, PERMISSION_APISPECGENERATE. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
          type: string
        subresource:
          description: Limits the scope of Write Access on the parent resource to modification of only the specified subresources. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          $ref: '#/components/schemas/SubResource'
        type:
          description: ' Enum options - NO_ACCESS, READ_ACCESS, WRITE_ACCESS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
          type: string
    Role:
      type: object
      required:
      - name
      properties:
        _last_modified:
          description: UNIX time since epoch in microseconds. Units(MICROSECONDS).
          readOnly: true
          type: string
        allow_unlabelled_access:
          description: Allow access to unlabelled objects. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: boolean
          default: true
        filters:
          description: Filters for granular object access control based on object labels. Multiple filters are merged using the AND operator. If empty, all objects according to the privileges will be accessible to the user. Field introduced in 20.1.3. Maximum of 4 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: array
          items:
            $ref: '#/components/schemas/RoleFilter'
        name:
          description: ' Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
          type: string
        privileges:
          description: ' Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
          type: array
          items:
            $ref: '#/components/schemas/Permission'
        tenant_ref:
          description: ' It is a reference to an object of type Tenant. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
          type: string
        url:
          description: url
          readOnly: true
          type: string
        uuid:
          description: ' Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.'
          type: string
    RoleFilterMatchLabel:
      type: object
      required:
      - key
      properties:
        key:
          description: Key for filter match. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: string
        values:
          description: Values for filter match. Multiple values will be evaluated as OR. Example  key = value1 OR key = value2. Behavior for match is key = * if this field is empty. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: array
          items:
            type: string
    RoleFilter:
      type: object
      required:
      - match_label
      properties:
        enabled:
          description: Enable this filter. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: boolean
          default: true
        match_label:
          description: Label key to match against objects for values. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          $ref: '#/components/schemas/RoleFilterMatchLabel'
        match_operation:
          description: Label match operation criteria. Enum options - ROLE_FILTER_EQUALS, ROLE_FILTER_DOES_NOT_EQUAL, ROLE_FILTER_GLOB_MATCH, ROLE_FILTER_GLOB_DOES_NOT_MATCH. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: string
          default: ROLE_FILTER_EQUALS
        name:
          description: Name for the filter. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
          type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: basic authentication
x-refined-from:
- avi_global_spec.json
- avi-networks-openapi.yml