# Tape Pool supplyDestination from json and supply pool

**URL:** <https://cta-community.web.cern.ch/t/tape-pool-supplydestination-from-json-and-supply-pool/373>\
**Category:** Site Administrators\
**Created:** [12 June 2025 19:41 UTC](https://cta-community.web.cern.ch/t/tape-pool-supplydestination-from-json-and-supply-pool/373 "2025-06-12T19:41:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fnal\_jeff](https://cta-community.web.cern.ch/user_avatar/cta-community.web.cern.ch/fnal_jeff/32/114_2.png) [@fnal\_jeff](https://cta-community.web.cern.ch/u/fnal_jeff)\
**Post date:** [12 June 2025 19:41 UTC](https://cta-community.web.cern.ch/t/tape-pool-supplydestination-from-json-and-supply-pool/373/1 "2025-06-12T19:41:38Z")

</div>

What is the meaning of supplyDestination as seen in command `cta-admin --json tp ls |jq`?

With the same command json output what is the difference between supply and supplySource?

---

<div class="post-metadata">

**Author:** ![kskovola](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/k/c57346/32.png) [@kskovola](https://cta-community.web.cern.ch/u/kskovola)\
**Post date:** [13 June 2025 13:37 UTC](https://cta-community.web.cern.ch/t/tape-pool-supplydestination-from-json-and-supply-pool/373/2 "2025-06-13T13:37:46Z")

</div>

Hi Jeff,  
The meaning of SupplyDestination of a tape pool is that the tape pool acts as supplier for the ones listed in the SupplyDestination field.

So for example if we set ctasystest\_B as the supplier of ctasystest\_C we will get: `cta-admin tp ch --name ctasystest_C --supply ctasystest_B`

```auto
 {
    "name": "ctasystest_B",
    "vo": "vo",
    "numTapes": "0",
    "numPartialTapes": "5",
    "numPhysicalFiles": "0",
    "capacityBytes": "0",
    "dataBytes": "0",
    "encrypt": false,
    "supply": "",
    "created": {
      "username": "ctaadmin1",
      "host": "cta-frontend-0",
      "time": "1749820934"
    },
    "modified": {
      "username": "ctaadmin1",
      "host": "cta-frontend-0",
      "time": "1749820934"
    },
    "comment": "ctasystest_B",
    "supplySource": [],
    "supplyDestination": [
      "ctasystest_C"
    ],
    "encryptionKeyName": "",
    "instanceName": "dev"
  },
  {
    "name": "ctasystest_C",
    "vo": "vo",
    "numTapes": "0",
    "numPartialTapes": "5",
    "numPhysicalFiles": "0",
    "capacityBytes": "0",
    "dataBytes": "0",
    "encrypt": false,
    "supply": "ctasystest_B",
    "created": {
      "username": "ctaadmin1",
      "host": "cta-frontend-0",
      "time": "1749820934"
    },
    "modified": {
      "username": "ctaadmin1",
      "host": "cta-frontend-0",
      "time": "1749821111"
    },
    "comment": "ctasystest_C",
    "supplySource": [
      "ctasystest_B"
    ],
    "supplyDestination": [],
    "encryptionKeyName": "",
    "instanceName": "dev"
  }

```

There is actually no difference in terms of contents between the fields “supply” and “supplySource”, logically they refer to the same thing, which tapepools act as suppliers for the present one, but their format is different.  
`supplySource` is a newer field added in [this merge request](https://gitlab.cern.ch/cta/CTA/-/merge_requests/533), and its contents are a list, making it easier to parse with json.  
For compatibility reasons we have kept the old field `supply`, which returns the list of supplier tapepools concatenated into a string.

I hope this helps, let me know if anything needs further clarification!

Regards,  
Konstantina
