UiPath Documentation
orchestrator
2021.10
false
Guía de la API de Orchestrator
Importante :
Este contenido se ha localizado parcialmente a partir de un sistema de traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Solicitudes de tenants

Nota:

You must be a host administrator to make tenant requests.

Nota:

Los parámetros AdminEmailAddress, AdminName, AdminSurname, AdminPassword y AdminUserKey siempre se devuelven como null.

Recuperación de tenants activos​

La siguiente solicitud le permite recuperar todos los tenants que están habilitados. Ten en cuenta que el ejemplo de respuesta se ha reducido.

Obtener

{OrchestratorURL}/odata/Tenants?$filter=IsActive eq true

Solicitar encabezados.​

ClaveValor
AutorizaciónPortador

Código de respuesta​

200 OK

Cuerpo de respuesta​

{
    "@odata.context": "{OrchestratorURL}/odata/$metadata#Tenants",
    "@odata.count": 125,
    "value": [{
            "Name": "mynewtenant",
            "AdminEmailAddress": null,
            "AdminName": null,
            "AdminSurname": null,
            "AdminPassword": null,
            "LastLoginTime": "2017-12-04T16:20:58.65Z",
            "IsActive": true,
            "Id": 93,
            "License": null
        },
    {...},
        {
            "Name": "testing_orche",
            "AdminEmailAddress": null,
            "AdminName": null,
            "AdminSurname": null,
            "AdminPassword": null,
            "LastLoginTime": "2018-01-16T03:40:43.073Z",
            "IsActive": true,
            "Id": 100,
            "License": null
        }
    ]
}
{
    "@odata.context": "{OrchestratorURL}/odata/$metadata#Tenants",
    "@odata.count": 125,
    "value": [{
            "Name": "mynewtenant",
            "AdminEmailAddress": null,
            "AdminName": null,
            "AdminSurname": null,
            "AdminPassword": null,
            "LastLoginTime": "2017-12-04T16:20:58.65Z",
            "IsActive": true,
            "Id": 93,
            "License": null
        },
    {...},
        {
            "Name": "testing_orche",
            "AdminEmailAddress": null,
            "AdminName": null,
            "AdminSurname": null,
            "AdminPassword": null,
            "LastLoginTime": "2018-01-16T03:40:43.073Z",
            "IsActive": true,
            "Id": 100,
            "License": null
        }
    ]
}

Recuperar un tenant según su ID​

El siguiente ejemplo te permite ver los detalles del tenant con el 99 Id.

Obtener

{OrchestratorURL}/odata/Tenants(99)

Solicitar encabezados.​

ClaveValor
AutorizaciónPortador

Código de respuesta​

200 OK

Cuerpo de respuesta​

{
  "@odata.context": "{OrchestratorURL}/odata/$metadata#Tenants/$entity",
  "Name": "Documentation",
  "AdminEmailAddress": null,
  "AdminName": null,
  "AdminSurname": null,
  "AdminPassword": null,
  "LastLoginTime": "2018-11-26T11:28:03.56Z",
  "IsActive": true,
  "Id": 99,
  "License": {
    "HostLicenseId": null,
    "CreationTime": "2018-01-12T11:49:48.177Z",
    "Code": "1234567890",
    "Id": 99,
    "Allowed": {
      "Unattended": 99,
      "Attended": 99,
      "NonProduction": 99,
      "Development": 99
    }
  }
}
{
  "@odata.context": "{OrchestratorURL}/odata/$metadata#Tenants/$entity",
  "Name": "Documentation",
  "AdminEmailAddress": null,
  "AdminName": null,
  "AdminSurname": null,
  "AdminPassword": null,
  "LastLoginTime": "2018-11-26T11:28:03.56Z",
  "IsActive": true,
  "Id": 99,
  "License": {
    "HostLicenseId": null,
    "CreationTime": "2018-01-12T11:49:48.177Z",
    "Code": "1234567890",
    "Id": 99,
    "Allowed": {
      "Unattended": 99,
      "Attended": 99,
      "NonProduction": 99,
      "Development": 99
    }
  }
}

Desahabilitar un tenant​

Publicar

{OrchestratorURL}/odata/Tenants/UiPath.Server.Configuration.OData.SetActive

Solicitar encabezados.​

ClaveValor
AutorizaciónPortador

Solicitar cuerpo​

{
    "tenantIds": [375],
    "active": false
}
{
    "tenantIds": [375],
    "active": false
}

Código de respuesta​

200 OK

Deshabilitar una característica​

Esta solicitud deshabilita la función de supervisión para un tenant con el Id de 4.

Para habilitar la función, realiza una solicitud al punto final /odata/Features/UiPath.Server.Configuration.OData.UpdateFeaturesBulk estableciendo el parámetro Monitoring.Enabled en true.

Publicar

{OrchestratorURL}/odata/Features/UiPath.Server.Configuration.OData.UpdateFeaturesBulk

Solicitar encabezados.​

ClaveValor
AutorizaciónPortador

Solicitar cuerpo​

{
    "Name": "Monitoring.Enabled",
    "TenantId": [4]
    "Value": False
}
{
    "Name": "Monitoring.Enabled",
    "TenantId": [4]
    "Value": False
}

Código de respuesta​

200 OK

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte(opens in new window)

¿Quiere aprender? UiPath Academy(opens in new window)

¿Tiene alguna pregunta? Foro de UiPath(opens in new window)

Manténgase actualizado