全球SIM联接 GSL-批量设置自定义属性接口:请求示例

时间:2024-12-20 14:06:24

请求示例

  • 批量设置SIM卡自定义属性。例如:批量设置sim_card_id为“4710200000”和“4710300000”的卡片自定义属性值,自定义属性1为“attr1”。

    POST https://{endpoint}/v1/sim-cards/attributes/batch-set
    
    {
      "attributes" : [ {
        "sim_card_id" : 4710200000,
        "customer_attribute1" : "attr1",
        "customer_attribute2" : "attr2",
        "customer_attribute3" : "attr3",
        "customer_attribute4" : "attr4",
        "customer_attribute5" : "attr5",
        "customer_attribute6" : "attr6"
      }, {
        "sim_card_id" : 4710300000,
        "customer_attribute1" : "attr1",
        "customer_attribute2" : "attr2",
        "customer_attribute3" : "attr3",
        "customer_attribute4" : "attr4",
        "customer_attribute5" : "attr5",
        "customer_attribute6" : "attr6"
      } ]
    }
  • 批量设置SIM卡自定义属性。当参数sim_card_id为最小值时,批量设置卡标识iccid为“8986xxxxxxxxxxxxxxx”和“8987xxxxxxxxxxxxxxx”的卡片自定义属性值,自定义属性1为“attr1”。

    POST https://{endpoint}/v1/sim-cards/attributes/batch-set
    
    {
      "attributes" : [ {
        "sim_card_id" : 0,
        "iccid" : "8986xxxxxxxxxxxxxxx",
        "customer_attribute1" : "attr1",
        "customer_attribute2" : "attr2",
        "customer_attribute3" : "attr3",
        "customer_attribute4" : "attr4",
        "customer_attribute5" : "attr5",
        "customer_attribute6" : "attr6"
      }, {
        "sim_card_id" : 0,
        "iccid" : "8987xxxxxxxxxxxxxxx",
        "customer_attribute1" : "attr1",
        "customer_attribute2" : "attr2",
        "customer_attribute3" : "attr3",
        "customer_attribute4" : "attr4",
        "customer_attribute5" : "attr5",
        "customer_attribute6" : "attr6"
      } ]
    }
support.huaweicloud.com/api-ocgsl/gsl_07_0045.html