Updating the Fine-grained Authentication Status of Data Development Connections in Batches
Function
This API is used to update the fine-grained authentication status of data development connections in batches.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/{project_id}/security/fgac/dlf/datawarehouses
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Project ID and Account ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
workspace |
Yes |
String |
Workspace ID. For details about how to obtain the workspace ID, see Instance ID and Workspace ID. |
|
X-Auth-Token |
Yes |
String |
IAM token, which is obtained by calling the IAM API for obtaining a user token (value of X-Subject-Token in the response header). This parameter is mandatory for token authentication. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
fgac_ids |
No |
Array of FgacSingleUpdateReq objects |
List of fine-grained authentication data development connections. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
dw_id |
No |
String |
Data connection ID. For details about how to obtain the value, see Querying the List of Fine-grained Authentication Data Source Connections. |
|
fgac_flag |
No |
Boolean |
Whether to enable fine-grained authentication. true indicates that fine-grained authentication is enabled, and false indicates that fine-grained authentication is disabled. |
|
fgac_type |
No |
String |
Specifies the fine-grained authentication type. This parameter is valid only when fine-grained authentication is enabled. The value 0 indicates fine-grained authentication in the development state, which supports fine-grained script running and job test running. The value 1 indicates fine-grained authentication in the scheduling state, which supports fine-grained script running, job test running, and job execution scheduling. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
results |
Array of FgacUpdateResult objects |
Fine-grained authentication update result. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Data connection ID. |
|
status |
Boolean |
Indicates whether the update is successful. The value true indicates that the update is successful, and the value false indicates that the update fails. |
|
error_msg |
String |
Fine-grained authentication update error information. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
Example Requests
v1/0833a5737480d53b2f25c010dc1a7b88/security/fgac/dlf/datawarehouses
{
"fgac_ids" : [ {
"dw_id" : "7c8a2d85d917492bb3195377cd9c36be",
"fgac_flag" : true,
"fgac_type" : "1"
} ]
}
Example Responses
Status code: 200
OK
{
"results" : [ {
"id" : "7c8a2d85d917492bb3195377cd9c36be",
"status" : true,
"error_msg" : ""
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.