---
title: "Add Vsphere credentials"
method: POST
path: "/api/v1/vsphere/create"
tags: ["Vsphere cloud credential"]
---

# Add Vsphere credentials

`POST /api/v1/vsphere/create`

## Request body

- CreateVsphereCommand
  - `name` string, nullable
  - `username` string, nullable
  - `url` string, nullable
  - `password` string, nullable
  - `datacenterId` string, nullable
  - `datacenterName` string, nullable
  - `datastoreName` string, nullable
  - `resourcePoolName` string, nullable
  - `drsEnabled` boolean
  - `vmTemplateName` string, nullable
  - `continent` string, nullable
  - `organizationId` integer, nullable
  - `hypervisors` string[], nullable
  - `publicNetwork` CreateVsphereNetworkDto
    - `name` string, nullable
    - `gateway` string, nullable
    - `ipAddress` string, nullable
    - `netMask` integer
    - `beginAllocationRange` string, nullable
    - `endAllocationRange` string, nullable
  - `privateNetwork` CreateVsphereNetworkDto
    - `name` string, nullable
    - `gateway` string, nullable
    - `ipAddress` string, nullable
    - `netMask` integer
    - `beginAllocationRange` string, nullable
    - `endAllocationRange` string, nullable
  - `skipTlsFlag` boolean

## Response `200`

OK

- ApiResponse
  - `id` string, nullable
  - `status` integer
  - `message` string, nullable
  - `isError` boolean
  - `result` unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.dev/taikun/apis/taikun-webapi.md) · [All operations](https://skmtc.dev/taikun/apis/taikun-webapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/taikun/taikun-webapi/revisions/09395964d191/schema)
