Obtains logon credentials for an Airflow instance hosted by Data Management Service (DMS). Use the returned token and host endpoint to construct a logon URL for the Airflow web UI.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateAirflowLoginToken |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AirflowId |
string |
Yes |
The ID of the Airflow instance. For more information, see Airflow instances. |
af-b3a7f110a6vmvn7xxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
4284D079-30F4-5B23-ADC4-28F291622C9A |
| HttpStatusCode |
integer |
The error code description. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
True |
| Message |
string |
The error message. |
Successful |
| ErrorCode |
string |
The error code.
For more information, see the error codes in this topic. |
Success |
| Data |
object |
The returned data. |
|
| Token |
string |
The generated token. |
f432d77de03b6b95fc24f9**** |
| Host |
string |
The endpoint of the Airflow instance. |
https://data-dms.aliyuncs.com/airflow/x/xxxx/af-ehrmszb**** |
| Code |
string |
The status code. A value of 200 indicates that the request is successful. |
200 |
Examples
Success response
JSON format
{
"RequestId": "4284D079-30F4-5B23-ADC4-28F291622C9A",
"HttpStatusCode": 200,
"Success": true,
"Message": "Successful",
"ErrorCode": "Success",
"Data": {
"Token": "f432d77de03b6b95fc24f9****",
"Host": "https://data-dms.aliyuncs.com/airflow/x/xxxx/af-ehrmszb****"
},
"Code": "200"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.