From bad151d52ff9864365b5abd1884686a51e9e10ab Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Sun, 28 Mar 2021 11:48:40 -0400 Subject: [PATCH] Add block4site Rucio API --- maps/rucio.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/maps/rucio.yml b/maps/rucio.yml index dee954e..13c735b 100644 --- a/maps/rucio.yml +++ b/maps/rucio.yml @@ -13,6 +13,17 @@ das_map : [ {"das_key":"site", "rec_key":"site.se", "api_arg":"se", "pattern":"([a-zA-Z0-9-_]+\\.){2}"}, ] --- +urn : block4site +url : "http://cms-rucio.cern.ch/replicas/rse" +expire : 3600 +params : {"se":"optional", "node":"optional"} +lookup : block +das_map : [ + {"das_key":"block", "rec_key":"block.name", "api_arg":"block"}, + {"das_key":"site", "rec_key":"site.name", "api_arg": "node", "pattern":"^T[0-3]_"}, + {"das_key":"site", "rec_key":"site.se", "api_arg":"se", "pattern":"([a-zA-Z0-9-_]+\\.){2}"}, +] +--- # we need ending slash since Rucio rules API requires /dids/cms//a/b/c pattern urn : block4dataset url : "http://cms-rucio.cern.ch/dids/cms/"