閱讀及檢閱 Automation Anywhere 文件

Automation 360

關閉內容

內容

開啟內容

刷新令牌

  • 已更新:2022/04/07
    • Automation 360 v.x
    • 管理
    • RPA 工作區

刷新令牌

使用有效的現有令牌生成 JSON Web 令牌。此端點為您提供一個新令牌,而無需在每次令牌過期時收集和驗證憑據。默認情況下,令牌的有效期為 20 分鐘。

要求

POST https://{{ControlRoomURL}}/v1/authentication/token
Header: X-Authorization <<authentication token>>
所有 API 調用都必須包含來自 驗證 API (生成 JSON Web 令牌)或來自 OAuth 服務的不記名令牌。 您不能在 API 中同時使用兩者。
要求本文
{
    "token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxIiwiY2xpZW50VHlwZSI6IldFQiIsImxpY2Vuc2VzIjpbXSwiYW5hbHl0aWNzTGljZW5zZXNQdXJjaGFzZWQiOnsiQW5hbHl0aWNzQ2xpZW50Ijp0cnVlLCJBbmFseXRpY3NBUEkiOnRydWV9LCJpYXQiOjE1NzMxMDgwNjEsImV4cCI6MTU3MzEwOTI2MSwiaXNzIjoiQXV0b21hdGlvbkFueXdoZXJlIiwibmFub1RpbWUiOjM2NTc3NTA4OTY5NzUxMDAsImNzcmZUb2tlbiI6ImJiNjgzMGJhMDY5MWYwYjZiM2M3MDE4NGY0OGM0MWY1In0.f3kPRspfm0sei9DGHd9NoyLK-iCO-vs--8b_pLG9XSUR0186uvXFopB75eVAaG-1l_AZhR78UE6Voi7_UggzHkLRrEpQ-szR7cmFDpLxZ28xLnFJYhaIuMNdw9dWDVquBWTQSpYGNJd56D-tFFHBodwVdNamqWHxaQebq1zMyUyQV6Q-gKdgubpT5gwuXnp-BwScjHOYM3Fpj_nt0nEbJC5uWpJNtLQBpVzhsRwwlRKNOHQVbo6X7zkvKBoij8ewa5FWQwX7T-760BeqfssR6mmMUo0zRaneUKAYAskz0B-X5PcyCkrVJju2XqItQ9XMGNP7h_MaUDotU_CJyguPZA"
}

要求參數

參數 類型 必填 說明
權杖 字串 輸入您要刷新的令牌。

如果令牌無效,您必須使用其中一種身份驗證方法生成令牌:驗證(用戶名和密碼) 或者 驗證(用戶名和 apiKey).

回應

200 OK
{
    "token": "eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIzIiwiY2xpZW50VHlwZSI6IldFQiIsImxpY2Vuc2VzIjpbIkRFVkVMT1BNRU5UIl0sImFuYWx5dGljc0xpY2Vuc2VzUHVyY2hhc2VkIjp7IkFuYWx5dGljc0NsaWVudCI6ZmFsc2V9LCJ0ZW5hbnRVdWlkIjoiMjgyOTc4YzQtNjM4Ni1jMTNhLTkyYWMtNTAwOWUzY2ZkNmIzIiwiaHlicmlkVGVuYW50IjoiIiwibXVsdGlwbGVMb2dpbiI6ZmFsc2UsImlhdCI6MTY0OTQ1NDg3MSwiZXhwIjoxNjQ5NDU2MDcxLCJpc3MiOiJBdXRvbWF0aW9uQW55d2hlcmUiLCJuYW5vVGltZSI6NDAyNzk2NTMyNjQ5NTY5fQ.vMQMyhw3-FQSjPe_3n5YffALFWbrZlW7IMxqCUVFApMhJbNA8-4FZX34j1JTz0NWm0SPn8R-rQCCM4tr5K8xTMlX7Ba04UWgmDCDltUOvP_NOcPOxlaeWyeu1-JOj35mdtTrfkxgVJLCIShRtnf1ScYDFPevsN1-zDWTsg_amriYZOtUWbTLV7TcbTlnqBK6My3ZKTparWhxi68N9P5-b1Ngj22mUJjm4iQ_DFPjv4wsSdQJCkCqV25o47cxos5MpLU5_ZAzlSJhCkZm4WpqvqRB8MJDJ3ZWd1P3LBK3KSe8ZdpYlis1RWGBLjKX3LLR7by6Lrkj5YRpwSOSyVEucw",
    "user": {
        "id": 3,
        "username": "jdoe_user",
        "domain": null,
        "firstName": "John",
        "lastName": "Doe",
        "version": 268,
        "principalId": 3,
        "deleted": false,
        "roles": [
            {
                "name": "Device_admin",
                "id": 24,
                "version": 3
            }
        ],
        "sysAssignedRoles": [],
        "groupNames": [],
        "permissions": [
            {
                "id": 163,
                "action": "own",
                "resourceId": "1",
                "resourceType": "queue"
            },
            {
                "id": 141,
                "action": "cancelcheckout",
                "resourceId": null,
                "resourceType": "repositorymanager"
            },
            {
                "id": 165,
                "action": "own",
                "resourceId": "1",
                "resourceType": "pool"
            },
            {
                "id": 97,
                "action": "register",
                "resourceId": null,
                "resourceType": "devices"
            },
            {
                "id": 161,
                "action": "participate",
                "resourceId": "1",
                "resourceType": "queue"
            },
            {
                "id": 29,
                "action": "view",
                "resourceId": null,
                "resourceType": "repositorymanager"
            },
            {
                "id": 164,
                "action": "manage",
                "resourceId": "1",
                "resourceType": "pool"
            },
            {
                "id": 31,
                "action": "export",
                "resourceId": null,
                "resourceType": "repositorymanager"
            },
            {
                "id": 32,
                "action": "import",
                "resourceId": null,
                "resourceType": "repositorymanager"
            }
        ],
        "licenseFeatures": [
            "DEVELOPMENT"
        ],
        "emailVerified": true,
        "passwordSet": true,
        "questionsSet": true,
        "enableAutoLogin": true,
        "disabled": false,
        "clientRegistered": false,
        "description": "",
        "createdBy": 1,
        "createdOn": "2022-03-17T19:33:06Z",
        "updatedBy": 1,
        "updatedOn": "2022-04-08T21:54:29Z",
        "publicKey": null,
        "appType": null,
        "routingName": null,
        "appUrl": null,
        "email": "jdoe@aa.com",
        "lastLoginTime": "2022-04-08T21:54:15Z",
        "deviceCredentialAttested": false,
        "multipleLoginAllowed": true
    },
    "tenantUuid": "282978c4-6386-c13a-92ac-5009e3cfd6b3",
    "mfaAuthResponse": null
}

回應參數

參數