Automation Anywhere 설명서 읽기 및 검토

Automation 360

콘텐츠 닫기

콘텐츠

콘텐츠 열기

Get Masked credentials

  • 업데이트: 2022/01/31
    • Automation 360 v.x
    • 관리
    • RPA Workspace
    • API 문서

Get Masked credentials

Use the attribute values endpoint of the Credential Vault API to get the masked credentials.

전제 조건

주: Community Edition에서 Control Room APIs을 볼 수 있지만, API 기능은 제한됩니다. API의 전체 기능에 액세스하려면 라이선스가 인가된 Automation 360 에디션이 필요합니다.
  • 인증 API를 이용하여 JSON 웹 토큰을 생성합니다. 인증 API를 참고하십시오.
  • You will be able to retreive your masked attributes using the API and with View and edit ALL credentials attributes permission.

프로시저

  1. Use the POST method and endpoint URL: <control_room_URL>/v2/credentialvault/credentials/list.
    Request body:
    The following example will look for the credential called ED10355 using POST with the endpoint <control_room_URL>/v2/credentialvault/credentials/list
    {
       "filter":{
          "operator":"and",
          "operands":[
             {
                "operator":"eq",
                "field":"name",
                "value":"ED10355"
             }
          ]
       }
    }
  2. Send the request.
    Response body:
    {
      "page": {
        "offset": 0,
        "total": 6,
        "totalFilter": 1
      },
      "list": [
        {
          "id": "25",
          "name": "ED10355",
          "description": "",
          "ownerId": "132",
          "attributes": [
            {
              "id": "90",
              "name": "name",
              "description": "",
              "userProvided": false,
              "masked": true,
              "createdBy": "132",
              "createdOn": "2022-01-28T19:21:59.388237Z",
              "updatedBy": "132",
              "updatedOn": "2022-01-28T19:45:57.351698900Z",
              "version": "2",
              "passwordFlag": false
            }
          ],
          "createdBy": "132",
          "createdOn": "2022-01-28T19:21:59.388237Z",
          "updatedBy": "132",
          "updatedOn": "2022-01-28T19:45:57.353647200Z",
          "version": "2",
          "completed": false,
          "externalVaultCredentialName": ""
        }
      ]
    }
    주: The response shows the credential id ("id": "25") and credential attribute id ("id": "90"). In case if you want to retreive the attribute id, to see if it has masked values or not. Use the GET method with the v2/credentialvault/credentials/25 to list the attributes pertaining to the credential id ("id": "25") .
  3. To get the masked attribute value, use the GET method method with the endpoint <control_room_URL>/v2/credentialvault/credentials/25/attributevalues?credentialAttributeId=90
    주: You will be able to view your masked credential attributes, only if you have the View and edit ALL credentials attributes. You will not be able to view the masked credential attributes of other users.
  4. Send the request.
    Response body:
    {
      "list": [
        {
          "id": "46",
          "credentialAttributeId": "90",
          "value": "maskedsecret",
          "createdBy": "132",
          "createdOn": "2022-01-28T19:21:59.635310800Z",
          "updatedBy": "132",
          "updatedOn": "2022-01-28T19:40:04.495291100Z",
          "version": "1",
          "password": false
        }
      ]
    }
    The REST API responds to each request with an HTTP response code. For details about the response codes, see API 응답 코드.
피드백을 보내주십시오