Service Accounts
Manage service accounts and their permissions.
Media type
application/json
Endpoints
-
https://api.eu.cloud.talend.com
URL for the AWS Europe region
-
https://api.ap.cloud.talend.com
URL for the AWS Asia Pacific region
-
https://api.us.cloud.talend.com
URL for the AWS United States East region
-
https://api.au.cloud.talend.com
URL for the AWS Australia region
-
https://api.us-west.cloud.talend.com
URL for the Azure United States West region
Security scheme
This scheme can be referenced across the API
Public
Name | Description |
---|---|
Format | Bearer <TOKEN> |
Name | Description | Type | Attributes and examples |
---|---|---|---|
Authorization | JWT token | string Required |
Get a service account
GET /account/service-accounts/{id}Get the service account of a given ID.
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
id | string Required |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talendVersion | API version | string Optional |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talend-version | API version | string Optional |
Response
200Status 200
Service account is successfully retrieved.
Body
application/json
service account of a given DI is displayed.
403Status 403
Permissions to read service account information are missing.
Delete a service account
DELETE /account/service-accounts/{id}Delete the service account of a given ID.
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
id | string Required |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talendVersion | API version | string Optional |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talend-version | API version | string Optional |
Response
204Status 204
Service account is successfully deleted.
403Status 403
Permissions to delete the service account is missing.
Update a service account
PUT /account/service-accounts/{id}Update the service account of a given account ID. In this update, only the name and the permissions of a service account can be changed.
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
id | string Required |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talendVersion | API version | string Optional |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talend-version | API version | string Optional |
Body
application/json
The service account with updates is displayed
Response
200Status 200
Service account is successfully updated.
Body
application/json
Updated service account is displayed.
400Status 400
Invalid request body. The message varies depending on the cause of the bad request. For example, the cause could be a malformed body or invalid permissions passed in the body.
Body
application/json
409Status 409
The service account name is already used
Body
application/json
Object
Name | Description | Type | Attributes and examples |
---|---|---|---|
detail | Error detail | string Optional |
Status 409
application/json
{
"detail": "The service account name is already used"
}
List service accounts
GET /account/service-accountsList the service accounts in the current tenant.
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
talendVersion | API version | string Optional |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talend-version | API version | string Optional |
Response
200Status 200
Service accounts of the current tenant are retrieved successfully.
Body
application/json
service accounts for tenant are listed.
Name | Description | Type | Attributes and examples | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
array of ServiceAccount |
|
Create a service account
POST /account/service-accountsCreate a service account in the Talend tenant of the currently authenticated user or entity. The returned service account object contains an OAuth client ID and a secret. This client ID and secret must be stored in a secure way without exposing them to unauthorized parties, because these credentials are required for this service account to get the authentication tokens to access Talend services.
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
talendVersion | API version | string Optional |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talend-version | API version | string Optional |
Body
application/json
The new service account is displayed.
Response
201Status 201
Service account is successfully created.
Name | Description | Type | Attributes and examples |
---|---|---|---|
Location | URL location where new resource can be found. | string Required |
Body
application/json
The created service account is displayed.
400Status 400
Invalid request body. The message vares depending on the cause of the bad request. The cause can be a malformed body or invalid permissions passed in the body.
Body
application/json
403Status 403
Permissions to create a service account are missing or the Talend account license does not allow the service account creation.
Body
application/json
409Status 409
The service account name is already used
Body
application/json
Object
Name | Description | Type | Attributes and examples |
---|---|---|---|
detail | Error detail | string Optional |
Status 409
application/json
{
"detail": "The service account name is already used"
}
Get the available permissions
GET /account/service-accounts/permissionsGet the available permissions for Service Accounts feature
Response
200Status 200
List of available permissions retrieved successfully
Body
application/json
Name | Description | Type | Attributes and examples | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
array of string |
|
Status 200
application/json
[
"AUDIT_LOGS_VIEW",
"TMC_CLUSTER_MANAGEMENT",
"TMC_ENVIRONMENT_MANAGEMENT",
"TMC_PIPELINE_MANAGEMENT",
"TMC_PROMOTION_EXECUTION",
"TMC_ENGINE_USE",
"TMC_RUN_PROFILE_MANAGEMENT",
"TMC_OPERATOR",
"TMC_GROUP_MANAGEMENT",
"TMC_ROLE_MANAGEMENT",
"TMC_USER_MANAGEMENT",
"TMC_SERVICE_ACCOUNT_MANAGEMENT"
]
401Status 401
Bearer token is invalid or missing.
Get a number of service accounts
GET /account/service-accounts/countPermissions:
- TMC_SERVICE_ACCOUNT_MANAGEMENT
- TMC_SUBSCRIPTION_MANAGEMENT
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
talendVersion | API version | string Optional |
Name | Description | Type | Attributes and examples |
---|---|---|---|
talend-version | API version | string Optional |
Response
200Status 200
Number of existing Service Accounts for tenant
Body
application/json
Status 200
application/json
{
"count": 2,
"tenantId": "9133741e-d49d-4cd8-a09e-9791fead2583"
}
403Status 403
Permissions required to perform operation are missing
ServiceAccount
A service account represents a non-human user entity which could be a service, a job, a third-party system or alike. This account uses access tokens to authenticate and must have been assigned appropriate permissions to access the Talend services to be used.
Object
Name | Description | Type | Attributes and examples | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
id | OAuth 2 client ID that is internally generated | string Required |
657d47e3-c3b4-4999-93c8-05a1670f6d92 |
|||||||||
secret | OAuth 2 client secret (internally generated and available only upon creation) | string Optional | ||||||||||
name | Meaningful name | string Required |
mock service account |
|||||||||
permissions | array of string Required |
|
||||||||||
createdDate | Creation date | datetime Required | ||||||||||
lastModifiedDate | Last modification date | datetime Required | ||||||||||
lastUsedDate | Last date & time when a token issued for the service account was used to call an API. | datetime Optional | ||||||||||
lastUsedApi | Last Talend API that was called with a service account access token issued for this service account. | string Optional |
ServiceAccountCount
Number of existing Service Accounts for tenant
Object
Name | Description | Type | Attributes and examples |
---|---|---|---|
tenantId | Talend Cloud ID of the tenant | string Required | |
count | Number of existing Service Accounts for tenant | integer Required |
Error
Object returned in case the operation of a service account fails.
Object
Name | Description | Type | Attributes and examples |
---|---|---|---|
status | HTTP status code | integer Required |
400 |
detail | Human readable error description. | string Required |