Pular para o conteúdo

List policy rules

Requisição

List policy rules for the specified wallet

Segurança
TokenAuth
Caminho
vaultIdstringobrigatório

The vault ID

walletIdstringobrigatório

The wallet ID

Corpoapplication/jsonobrigatório
pageSizeinteger, (int32)

The number of results to return per page (default 50, max 1000)

Exemplo:1000
pageTokenstring

The token to retrieve the next page of results

Exemplo:"cGFnZV9zaXplPTEwJnBhZ2VfdG9rZW49MjA="
paginationobject(v2FilterRequest)

Pagination and sorting. Sortable fields: kind, trigger, status, active, created_at, updated_at.

filterobject(v2PolicyRuleFilter)

Optional policy-rule filters. Each populated sub-filter is AND-ed.

searchstring

Case-insensitive search over policy rule ID, vault ID, wallet ID, and asset ID.

Exemplo:"USDC"
curl -i -X POST \
  'https://docs.ripple.com/_mock/pt-br/products/wallet/api-docs/palisade-api/palisade-api/v2/vaults/{vaultId}/wallets/{walletId}/policy-rules:list' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "pageSize": 1000,
    "pageToken": "cGFnZV9zaXplPTEwJnBhZ2VfdG9rZW49MjA=",
    "pagination": {
      "pageSize": 50,
      "pageToken": "cGFnZV9zaXplPTEwJnBhZ2VfdG9rZW49MjA=",
      "orderBy": "created_at",
      "order": "SORT_ORDER_ASC"
    },
    "filter": {
      "id": {
        "eq": "string",
        "notEq": "string",
        "contains": "string",
        "startsWith": "string",
        "endsWith": "string",
        "in": [
          "string"
        ],
        "notIn": [
          "string"
        ],
        "isNull": true
      },
      "vaultId": {
        "eq": "string",
        "notEq": "string",
        "contains": "string",
        "startsWith": "string",
        "endsWith": "string",
        "in": [
          "string"
        ],
        "notIn": [
          "string"
        ],
        "isNull": true
      },
      "walletId": {
        "eq": "string",
        "notEq": "string",
        "contains": "string",
        "startsWith": "string",
        "endsWith": "string",
        "in": [
          "string"
        ],
        "notIn": [
          "string"
        ],
        "isNull": true
      },
      "trigger": "OUTBOUND_INITIATED",
      "assetId": {
        "eq": "string",
        "notEq": "string",
        "contains": "string",
        "startsWith": "string",
        "endsWith": "string",
        "in": [
          "string"
        ],
        "notIn": [
          "string"
        ],
        "isNull": true
      },
      "status": "RULE_CREATED",
      "active": {
        "eq": true,
        "isNull": true
      },
      "createdAt": {
        "eq": "2024-08-08T10:00:00Z",
        "notEq": "2024-08-08T10:00:00Z",
        "before": "2024-08-08T10:00:00Z",
        "after": "2024-08-08T10:00:00Z",
        "gte": "2024-08-08T10:00:00Z",
        "lte": "2024-08-08T10:00:00Z",
        "between": {
          "start": "2024-08-01T00:00:00Z",
          "end": "2024-08-31T23:59:59Z"
        },
        "isNull": true,
        "relativeDays": -7
      },
      "updatedAt": {
        "eq": "2024-08-08T10:00:00Z",
        "notEq": "2024-08-08T10:00:00Z",
        "before": "2024-08-08T10:00:00Z",
        "after": "2024-08-08T10:00:00Z",
        "gte": "2024-08-08T10:00:00Z",
        "lte": "2024-08-08T10:00:00Z",
        "between": {
          "start": "2024-08-01T00:00:00Z",
          "end": "2024-08-31T23:59:59Z"
        },
        "isNull": true,
        "relativeDays": -7
      },
      "kind": "LIMIT"
    },
    "search": "USDC"
  }'

Respostas

A successful response.

Corpoapplication/json
filterobject(v2FilterResponse)
policyRulesArray of objects(v2PolicyRule)
Resposta
{ "filter": { "previousPageToken": "cGFnZV9zaXplPTEwJnBhZ2VfdG9rZW49MjA=", "nextPageToken": "cGFnZV9zaXplPTEwJnBhZ2VfdG9rZW49MjA=", "total": 100 }, "policyRules": [ { … } ] }