Create a new service connector

Creates a new service connector

POST /manage/connectors

Request Body

Name Type Description

name

string

Arbitrary name of the service connector up to 256 characters

type

string

Type of the service connector. 'azure' for Azure Service Principal

connectorTenantId

string

Azure tenant id in which the Azure Service Principal will be used

connectorId

string

Id of the Azure Service Principal

connectorSecret

string

Secret of the Azure Service Principal

Responses

Name Type Description

201 Created

ServiceConnector

Service connector object of the new service connector

Consumes

  • application/json

Produces

  • application/json

Security

Every request requires a JWT access token for authentication in the Authorisation HTTP header. Please see the API authentication page for details about how to get a JWT token.

Authorization: Bearer {JWT_TOKEN}

Roles

  • Wenenu Owner

  • Wenenu Service Connector Administrator

Sample request

POST https://wenenu.com/manage/connectors HTTP/1.1
Authorization: Bearer {jwt_token}
Content-type: application/json

Request body

{
  "name": "Wenenu service connector",
  "type": "azure",
  "connectorTenantId": "d2759b9d-cc14-486e-b5bb-da33ed4a1c8d",
  "connectorId": "575658c4-ff9c-4f40-9fdc-d70f12cb8a52",
  "connectorSecret": "kbaVs4I05GaTvaerUtXF88PGwf6lch8X"
}

Sample Response

Status code: 201

{
  "id": "e17af98a-2bff-4bed-8834-fdd6ff726985",
  "tenantId": "f06e4c85-2961-40fe-8460-168189fa4203",
  "name": "Wenenu service connector",
  "type": "azure",
  "connectorTenantId": "d2759b9d-cc14-486e-b5bb-da33ed4a1c8d",
  "connectorId": "575658c4-ff9c-4f40-9fdc-d70f12cb8a52",
  "connectorSecret": ""
}

Definitions

ServiceConnector

Name Type Description

id

string

Version 4 UUID of the service connector

tenantId

string

Version 4 UUID of the Wenenu tenant of the service connector

name

string

Arbitrary name of the service connector up to 256 characters

type

string

Type of the service connector

connectorTenantId

string

Azure tenant id in which the Azure Service Principal will be used

connectorId

string

Id of the Azure Service Principal

connectorSecret

string

Secret of the Azure Service Principal. (Always empty when the service connector is returned by Wenenu)