Lea y revise la documentación de Automation Anywhere

Automation 360

Cerrar contenidos

Contenidos

Abrir contenidos

List credentials using API

  • Actualizado: 2021/02/03
    • Automation 360 v.x
    • Explorar
    • Espacio de trabajo de RPA

List credentials using API

Return a list of the credentials for which you are the owner or have access through a locker. If you have the AAE_Locker Admin role, this endpoint returns all the credentials in the Control Room.

Antes de empezar

Nota: Puede ver el Control Room APIs en el Community Editionpero la funcionalidad de la API es limitada. Necesita una licencia Automation 360 Edition para acceder a toda la funcionalidad de las APIs.
  • Todas las llamadas a la API deben contener un token de autenticación en la cabecera de la solicitud. Utilizar la Autenticación para generar un token web JSON. Véase API de autenticación.
  • You must have access to the credential, either as the credential owner or through a locker.

Procedimiento

  1. Añade el token de autenticación a la cabecera de la solicitud.
  2. Use the POST method and endpoint URL: <your_control_room_url>/credentialvault/credentials.
    Nota: Append the ?consumed=true parameter to the URL to return a list of credentials that have user-input values and are being used in bots.
    Request body: Send an empty request to return all the credentials, sorted in alphabetical order.
    {
        sort: [
            {
                field: "name",
                direction: "asc"
            }
        ]
     }
  3. Envíe la solicitud.
    Response body: The response returns the ID of each attribute and the userProvided parameter, which informs whether the value is set by each user (true) or is standard for all users (false).
    {
        "page": {
            "offset": 0,
            "total": 1,
            "totalFilter": 1
        },
        "list": [
        {
            "id": "1630",
            "name": "Email",
            "description": "",
            "ownerId": "1508",
            "attributes": [
                {
                "id": "3335",
                "name": "hostname",
                "description": "",
                "userProvided": false,
                "masked": false,
                "createdBy": "1508",
                "createdOn": "2020-12-28T22:04:41.366448Z",
                "updatedBy": "1508",
                "updatedOn": "2020-12-28T22:04:41.366450Z",
                "version": "0",
                "passwordFlag": false
            },
            {
                "id": "3336",
                "name": "username",
                "description": "",
                "userProvided": true,
                "masked": false,
                "createdBy": "1508",
                "createdOn": "2020-12-28T22:04:41.366450Z",
                "updatedBy": "1508",
                "updatedOn": "2020-12-28T22:04:41.366450Z",
                "version": "0",
                "passwordFlag": false
            },
            {
                "id": "3337",
                "name": "password",
                "description": "",
                "userProvided": true,
                "masked": true,
                "createdBy": "1508",
                "createdOn": "2020-12-28T22:04:41.366450Z",
                "updatedBy": "1508",
                "updatedOn": "2020-12-28T22:04:41.366450Z",
                "version": "0",
                "passwordFlag": false
            }
         ],   
         "createdBy": "1508",
         "createdOn": "2020-12-28T22:04:41.366460Z",
         "updatedBy": "1508",
         "updatedOn": "2020-12-28T22:06:35.366464Z",
         "version": "2",
         "completed": true
            }
        ]
    }
    La API REST responde a cada solicitud con un código de respuesta HTTP.Para los códigos de respuesta, véase API response codes.

Qué hacer a continuación

Now that you have the IDs of attributes that accept a user-input value, next Asignar valor al atributo mediante la API.

Enviar comentarios