[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Create Service

Description

Creates a new service

Request

Request

URL

URL


post
https://{api_host}/cloudapi/serviceLibrary
Copy

Request Body

Request Body

Service of type(s) application/json Required
{
	"description": "string",
	"iconData": "string",
	"iconMimeType": "string",
	"id": "string",
	"name": "string"
}
string
description Optional

string
iconData Optional

string
iconMimeType Optional

string
id Optional

string
name Optional
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns Service of type(s) application/json;version=37.0
{
	"description": "string",
	"iconData": "string",
	"iconMimeType": "string",
	"id": "string",
	"name": "string"
}
string
description Optional

string
iconData Optional

string
iconMimeType Optional

string
id Optional

string
name Optional

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"description":"string","iconData":"string","iconMimeType":"string","id":"string","name":"string"}' https://{api_host}/cloudapi/serviceLibrary


[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Feedback

Was this page helpful?