Pular para o conteúdo

Create a new tenant

Requisição

Creates a new tenant.

Segurança
Bearer
Corpoapplication/jsonobrigatório
tenant_idstringobrigatório

Tenant ID of the tenant.

Exemplo:"urn:ripplexcurrent-prod:name"
callback_enabledboolean

Flag to denote whether callback is enabled for this tenant.

Padrão:false
Exemplo:false
callback_urlstring, [ 1 .. 256 ] characters^(http[s]?:\/\/)[\w@%.\\+~#=-]{2,256}(:[0-9]{...

URL to be invoked for callback for this tenant. Mandatory if callback_enabled is true.

xcurrent_client_idstring, [ 1 .. 256 ] characters^[a-zA-Z0-9@_,.\s-]*$

Client ID for connecting to RippleNet for this tenant. Mandatory if credentials have to be managed locally.

xcurrent_passwordstring, [ 1 .. 256 ] characters^[a-zA-Z0-9@_,.\s-]*$

Password for connecting to RippleNet for this tenant. Mandatory if credentials have to be managed locally.

xcurrent_connection_timeoutinteger, (int32)

Timeout, in milliseconds, to obtain a connection with RippleNet for this tenant.

Padrão:10000
xcurrent_socket_timeoutinteger, (int32)

Timeout, in milliseconds, to obtain a response for a RippleNet API operation for this tenant.

Padrão:60000
xcurrent_urlstring, [ 1 .. 256 ] characters^(http[s]?:\/\/)[\w@%.\\+~#=-]{2,256}(:[0-9]{...obrigatório

URL of the RippleNet (RN node) system to which orchestration service connects.

curl -i -X POST \
  https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/ripplenet/ripplenet/v4/orchestration/config/tenant \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "tenant_id": "urn:ripplexcurrent-prod:name",
    "callback_enabled": false,
    "callback_url": "string",
    "xcurrent_client_id": "string",
    "xcurrent_password": "string",
    "xcurrent_connection_timeout": 10000,
    "xcurrent_socket_timeout": 60000,
    "xcurrent_url": "string"
  }'

Respostas

Successfully created tenant.

Corpoapplication/json
tenant_idstring

Tenant ID of the tenant.

Exemplo:"urn:ripplexcurrent-prod:name"
callback_enabledboolean

Flag to denote whether callback is enabled for this tenant.

Exemplo:false
callback_urlstring

URL to be invoked for callback for this tenant. Mandatory if callback_enabled is true.

xcurrent_client_idstring

Client ID for connecting to RippleNet for this tenant. Mandatory if credentials have to be managed locally.

xcurrent_passwordstring

Password for connecting to RippleNet for this tenant. Mandatory if credentials have to be managed locally.

xcurrent_connection_timeoutinteger

Timeout, in milliseconds, to obtain a connection with RippleNet for this tenant.

xcurrent_socket_timeoutinteger

Timeout, in milliseconds, to obtain a response for a RippleNet API operation for this tenant.

xcurrent_urlstring

URL of the RippleNet (RN node) system to which orchestration service connects.

Resposta
{ "tenant_id": "urn:ripplexcurrent-prod:name", "callback_enabled": false, "callback_url": "string", "xcurrent_client_id": "string", "xcurrent_password": "string", "xcurrent_connection_timeout": 0, "xcurrent_socket_timeout": 0, "xcurrent_url": "string" }