CreateServiceAuth - Create service authorization
Create service authorization using OpenAPI.
|
Applicable editions |
Central edition |
Service endpoints and authorization information
-
Obtain the service endpoint: Replace {domain} in the API request syntax.
-
Obtain the organizationId: Required only for the Central edition. Go to the Organization Management console and open the Basic Information page to obtain the organization ID.
|
Product |
Resource |
Required permission |
|
Pipeline |
Service connection |
Read and write |
Request syntax
Central edition
POST https://{domain}/oapi/v1/flow/organizations/{organizationId}/serviceAuths
Request headers
|
Parameter |
Required |
Description |
Example value |
|
|
x-yunxiao-token |
string |
Yes |
A personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
Yes |
The organization ID. |
5ebbc0228123212b59xxxxx |
|
serviceAuthType |
string |
query |
Yes |
The service authorization type. Only RAM is supported. |
RAM (Resource Access Management) |
Request example
curl -X 'POST' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/serviceAuths?serviceAuthType=RAM' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
|
- |
integer |
The service authorization ID. |
1223 |
Response example
1223
Error codes
For more information, see Error code center.