VMware · Capability

VMware vSphere Automation REST API — Datacenters

VMware vSphere Automation REST API — Datacenters. 4 operations. Lead operation: Vmware List Datacenters. Self-contained Naftiko capability covering one Vmware business surface.

Run with Naftiko VmwareDatacenters

What You Can Do

GET
Listdatacenters — Vmware List Datacenters
/v1/vcenter/datacenter
POST
Createdatacenter — Vmware Create a Datacenter
/v1/vcenter/datacenter
GET
Getdatacenter — Vmware Get Datacenter Details
/v1/vcenter/datacenter/{datacenter}
DELETE
Deletedatacenter — Vmware Delete a Datacenter
/v1/vcenter/datacenter/{datacenter}

MCP Tools

vmware-list-datacenters

Vmware List Datacenters

read-only idempotent
vmware-create-datacenter

Vmware Create a Datacenter

vmware-get-datacenter-details

Vmware Get Datacenter Details

read-only idempotent
vmware-delete-datacenter

Vmware Delete a Datacenter

idempotent

Capability Spec

vsphere-datacenters.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: VMware vSphere Automation REST API — Datacenters
  description: 'VMware vSphere Automation REST API — Datacenters. 4 operations. Lead operation: Vmware List Datacenters. Self-contained
    Naftiko capability covering one Vmware business surface.'
  tags:
  - Vmware
  - Datacenters
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VMWARE_API_KEY: VMWARE_API_KEY
capability:
  consumes:
  - type: http
    namespace: vsphere-datacenters
    baseUri: https://{vcenter}/api
    description: VMware vSphere Automation REST API — Datacenters business capability. Self-contained, no shared references.
    resources:
    - name: vcenter-datacenter
      path: /vcenter/datacenter
      operations:
      - name: listdatacenters
        method: GET
        description: Vmware List Datacenters
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter.datacenters
          in: query
          type: array
          description: Identifiers of datacenters to filter by
        - name: filter.names
          in: query
          type: array
          description: Names of datacenters to filter by
        - name: filter.folders
          in: query
          type: array
          description: Folders that must contain the datacenters
      - name: createdatacenter
        method: POST
        description: Vmware Create a Datacenter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: vcenter-datacenter-datacenter
      path: /vcenter/datacenter/{datacenter}
      operations:
      - name: getdatacenter
        method: GET
        description: Vmware Get Datacenter Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletedatacenter
        method: DELETE
        description: Vmware Delete a Datacenter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: force
          in: query
          type: boolean
          description: Force delete even if datacenter is not empty
    authentication:
      type: apikey
      key: vmware-api-session-id
      value: '{{env.VMWARE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: vsphere-datacenters-rest
    port: 8080
    description: REST adapter for VMware vSphere Automation REST API — Datacenters. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/vcenter/datacenter
      name: vcenter-datacenter
      description: REST surface for vcenter-datacenter.
      operations:
      - method: GET
        name: listdatacenters
        description: Vmware List Datacenters
        call: vsphere-datacenters.listdatacenters
        with:
          filter.datacenters: rest.filter.datacenters
          filter.names: rest.filter.names
          filter.folders: rest.filter.folders
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdatacenter
        description: Vmware Create a Datacenter
        call: vsphere-datacenters.createdatacenter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/vcenter/datacenter/{datacenter}
      name: vcenter-datacenter-datacenter
      description: REST surface for vcenter-datacenter-datacenter.
      operations:
      - method: GET
        name: getdatacenter
        description: Vmware Get Datacenter Details
        call: vsphere-datacenters.getdatacenter
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedatacenter
        description: Vmware Delete a Datacenter
        call: vsphere-datacenters.deletedatacenter
        with:
          force: rest.force
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vsphere-datacenters-mcp
    port: 9090
    transport: http
    description: MCP adapter for VMware vSphere Automation REST API — Datacenters. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: vmware-list-datacenters
      description: Vmware List Datacenters
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vsphere-datacenters.listdatacenters
      with:
        filter.datacenters: tools.filter.datacenters
        filter.names: tools.filter.names
        filter.folders: tools.filter.folders
      outputParameters:
      - type: object
        mapping: $.
    - name: vmware-create-datacenter
      description: Vmware Create a Datacenter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vsphere-datacenters.createdatacenter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: vmware-get-datacenter-details
      description: Vmware Get Datacenter Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vsphere-datacenters.getdatacenter
      outputParameters:
      - type: object
        mapping: $.
    - name: vmware-delete-datacenter
      description: Vmware Delete a Datacenter
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: vsphere-datacenters.deletedatacenter
      with:
        force: tools.force
      outputParameters:
      - type: object
        mapping: $.