VMware · Capability

VMware vSphere Automation REST API — Tagging

VMware vSphere Automation REST API — Tagging. 5 operations. Lead operation: Vmware List Tag Categories. Self-contained Naftiko capability covering one Vmware business surface.

Run with Naftiko VmwareTagging

What You Can Do

GET
Listtagcategories — Vmware List Tag Categories
/v1/cis/tagging/category
POST
Createtagcategory — Vmware Create a Tag Category
/v1/cis/tagging/category
GET
Listtags — Vmware List Tags
/v1/cis/tagging/tag
POST
Createtag — Vmware Create a Tag
/v1/cis/tagging/tag
POST
Attachtag — Vmware Attach a Tag to an Object
/v1/cis/tagging/tag-association-action-attach

MCP Tools

vmware-list-tag-categories

Vmware List Tag Categories

read-only idempotent
vmware-create-tag-category

Vmware Create a Tag Category

vmware-list-tags

Vmware List Tags

read-only idempotent
vmware-create-tag

Vmware Create a Tag

vmware-attach-tag-object

Vmware Attach a Tag to an Object

Capability Spec

vsphere-tagging.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: VMware vSphere Automation REST API — Tagging
  description: 'VMware vSphere Automation REST API — Tagging. 5 operations. Lead operation: Vmware List Tag Categories. Self-contained
    Naftiko capability covering one Vmware business surface.'
  tags:
  - Vmware
  - Tagging
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VMWARE_API_KEY: VMWARE_API_KEY
capability:
  consumes:
  - type: http
    namespace: vsphere-tagging
    baseUri: https://{vcenter}/api
    description: VMware vSphere Automation REST API — Tagging business capability. Self-contained, no shared references.
    resources:
    - name: cis-tagging-category
      path: /cis/tagging/category
      operations:
      - name: listtagcategories
        method: GET
        description: Vmware List Tag Categories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtagcategory
        method: POST
        description: Vmware Create a Tag Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cis-tagging-tag
      path: /cis/tagging/tag
      operations:
      - name: listtags
        method: GET
        description: Vmware List Tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtag
        method: POST
        description: Vmware Create a Tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cis-tagging-tag-association?action=attach
      path: /cis/tagging/tag-association?action=attach
      operations:
      - name: attachtag
        method: POST
        description: Vmware Attach a Tag to an Object
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: vmware-api-session-id
      value: '{{env.VMWARE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: vsphere-tagging-rest
    port: 8080
    description: REST adapter for VMware vSphere Automation REST API — Tagging. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/cis/tagging/category
      name: cis-tagging-category
      description: REST surface for cis-tagging-category.
      operations:
      - method: GET
        name: listtagcategories
        description: Vmware List Tag Categories
        call: vsphere-tagging.listtagcategories
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtagcategory
        description: Vmware Create a Tag Category
        call: vsphere-tagging.createtagcategory
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cis/tagging/tag
      name: cis-tagging-tag
      description: REST surface for cis-tagging-tag.
      operations:
      - method: GET
        name: listtags
        description: Vmware List Tags
        call: vsphere-tagging.listtags
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtag
        description: Vmware Create a Tag
        call: vsphere-tagging.createtag
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cis/tagging/tag-association-action-attach
      name: cis-tagging-tag-association-action-attach
      description: REST surface for cis-tagging-tag-association?action=attach.
      operations:
      - method: POST
        name: attachtag
        description: Vmware Attach a Tag to an Object
        call: vsphere-tagging.attachtag
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vsphere-tagging-mcp
    port: 9090
    transport: http
    description: MCP adapter for VMware vSphere Automation REST API — Tagging. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: vmware-list-tag-categories
      description: Vmware List Tag Categories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vsphere-tagging.listtagcategories
      outputParameters:
      - type: object
        mapping: $.
    - name: vmware-create-tag-category
      description: Vmware Create a Tag Category
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vsphere-tagging.createtagcategory
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: vmware-list-tags
      description: Vmware List Tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vsphere-tagging.listtags
      outputParameters:
      - type: object
        mapping: $.
    - name: vmware-create-tag
      description: Vmware Create a Tag
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vsphere-tagging.createtag
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: vmware-attach-tag-object
      description: Vmware Attach a Tag to an Object
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vsphere-tagging.attachtag
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.