[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api

Add vCenter Datasource

Description

Add a vCenter data source. You must provide one of IP or FQDN field in the request body. Appropriate proxy id is retrieved from /infra/nodes URL to select the proxy node.

Request

Request

URL

URL


post
https://vrni.example.com/api/ni/data-sources/vcenters
Copy

Request Body

Request Body

VCenterDataSourceRequest of type(s) application/json Required

vCenter Credentials

This request body class requires all of the following: BaseDataSourceRequest, InlineVCenterDataSourceRequest1
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns VCenterDataSource of type(s) application/json
This response body class contains all of the following: BaseDataSource, InlineVCenterDataSource1
Errors

Errors

ApiError
400

Bad Request


401

Unauthorized


403

Forbidden


500

Internal Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"credentials":{"password":"VMware1!","username":"readonly"},"enabled":false,"fqdn":"your.domain.com","ip":"192.168.10.1","ipfix_request":{"disable_all":false,"disable_for_dvs":"vds-1,vds-2,vds-3","enable_all":false,"enable_for_dvs":"vds-1,vds-2,vds-3"},"is_vmc":false,"nickname":"vc1","notes":"Located in DC1","proxy_id":"1000:104:12313412"}' https://vrni.example.com/api/ni/data-sources/vcenters


[{"label":"Latest (6.4.0)","version":"latest"}]
vrealize-network-insight-api
Data Sources Operations
Feedback

Was this page helpful?