createIntegration
Use this method to create a new integration under the Integrations hub.
Parameters
Parameter | Description | Included in request | Type | Values |
|---|---|---|---|---|
| The name of the integration. | Mandatory | String | The value must be between |
| The type of the integration. | Mandatory | Integer | Possible values:
|
| The configuration settings for the integration. | Mandatory | Object | Refer to |
Objects
specifics
Parameter | Description | Included in request | Type |
|---|---|---|---|
| The | Mandatory | String |
| The port used to connect to vCenter. Default value: | Optional | Integer |
| The username to be used for vCenter authentication. | Mandatory | String |
| The password to be used for vCenter authentication. | Mandatory | String |
| Determines if the integration should retry authentication on failure. Default value: | Optional | Boolean |
| Time in seconds to wait between authentication retries. Default value: | Optional | Integer |
| The maximum number of authentication retry attempts allowed. Default value: | Optional | Integer |
| Specifies whether to verify the TLS certificate when connecting to the vCenter server. Default value: | Optional | Boolean |
| Defines the view mode for vCenter. Possible values:
Default value: NoteUsing any invalid value will result in the default value being used. | Optional | Integer |
Return value
Attribute | Type | Description |
|---|---|---|
| Object | Contains the result of the request. |
Objects
result
Attribute | Type | Description |
|---|---|---|
| Boolean | Indicates if the request was successful. |
| Array of strings | A list of MongoDB object IDs of the created integrations. |
Example
Request:
{
"method": "createIntegration",
"id": "0a686101-1b31-46d3-b8ee-f59c186fa25b",
"jsonrpc": "2.0",
"params": {
"companyId": "67602c8682f2caf2080d7d67",
"name": "integrationjDAAdvXoYt77FP6Eu4O3",
"type": 1,
"specifics": {
"hostname": "LMzsN5Arp7.com",
"port": 443,
"username": "username",
"password": "password",
"retryAuthentication": true,
"retryAuthenticationTimeToWait": 10,
"retryAuthenticationMaxAttempts": 6,
"verifyTLSCertificate": true,
"viewType": 2
}
}
}Response:
{
"id": "0a686101-1b31-46d3-b8ee-f59c186fa25b",
"jsonrpc": "2.0",
"result": {
"success": true,
"records": [
"67602cbd67c92338e4028e1a"
]
}
}