'1.0',
'info' => ['style' => 'RPC', 'product' => 'Linkcard', 'version' => '2021-05-20'],
'directories' => [
[
'children' => ['Renew', 'StopSingleCard', 'ResumeSingleCard', 'RebindResumeSingleCard', 'ForceActivation', 'SetCardStopRule', 'UpdateAutoRechargeSwitch', 'GetCredentialPoolStatistics', 'GetCardFlowInfo', 'GetCardDetail', 'ListCardInfo', 'ListOrder'],
'type' => 'directory',
'title' => '卡',
'id' => 329710,
],
[
'children' => ['AddDirectionalCard', 'AddDirectionalGroup', 'BatchAddDirectionalAddress', 'ListDirectionalAddress', 'ListDirectionalDetail', 'VerifyIotCard'],
'type' => 'directory',
'title' => '定向服务',
'id' => 329723,
],
[
'children' => ['AddTagsToCard', 'GetSimCardStateDistribution', 'AddDirectionalAddress', 'DeleteDirectionalAddress', 'DeleteDirectionalGroup', 'GetCardStatusStatistics', 'GetCardRealStatus', 'GetCardLatestFlow', 'AddCardToDirectionalGroup', 'GetRealNameStatus', 'SendMessage'],
'type' => 'directory',
'title' => '其他',
'id' => 329849,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'AddCardToDirectionalGroup' => [
'methods' => ['post', 'get'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'IccidList',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '卡号的iccid集合,数量小于等于200',
'type' => 'array',
'items' => ['description' => 'ICCID。', 'type' => 'string', 'required' => true, 'example' => '1111****6225'],
'required' => true,
'maxItems' => 200,
],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID。', 'type' => 'string', 'required' => true, 'example' => '10000002595'],
],
[
'name' => 'SerialNo',
'in' => 'query',
'schema' => ['description' => '请求编号,支持幂等。', 'type' => 'string', 'required' => true, 'example' => '123123'],
],
[
'name' => 'AddType',
'in' => 'query',
'schema' => ['description' => '添加的方式:'."\n"
."\n"
.'NEW:仅导入其中待分组的卡'."\n"
."\n"
.'TRANSFER:全量导入(卡从原分组中删除)', 'type' => 'string', 'required' => true, 'example' => 'NEW'],
],
[
'name' => 'MsgNotify',
'in' => 'query',
'schema' => ['description' => '执行成功后是否通过MQ推送,默认false: '."\n"
."\n"
.'false:不推送 '."\n"
."\n"
.'true: 推送', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'ApiProduct',
'in' => 'formData',
'schema' => ['description' => 'Linkcard', 'type' => 'string', 'required' => false, 'example' => 'Linkcard'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'AddCardToDirectionalGroupResponse',
'description' => 'AddCardToDirectionalGroupResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。 false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:调用成功。'."\n"
."\n"
.'其他:调用失败。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '请求结果。',
'type' => 'object',
'properties' => [
'Result' => ['description' => '执行是否成功。'."\n"
."\n"
.'true:添加成功。'."\n"
."\n"
.'false:添加失败。', 'type' => 'boolean', 'example' => 'true'],
'SerialNo' => ['description' => '请求编号,幂等序列号', 'type' => 'string', 'example' => '123213'],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => ''],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"Result\\": true,\\n \\"SerialNo\\": \\"123213\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n InstanceId cannot be empty.\\n InstanceId cannot be empty.\\n \\n true\\n 123213\\n \\n","errorExample":""}]',
'title' => '定向分组添加卡片',
'summary' => '定向分组添加卡片。',
'changeSet' => [],
],
'AddDirectionalAddress' => [
'summary' => '定向分组新增目标地址。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '10000002595'],
],
[
'name' => 'Source',
'in' => 'query',
'schema' => ['description' => '地址类型:'."\n"
."\n"
.'客户配置: user_defined'."\n"
."\n"
.'阿里云预配:aliyun_defined', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'user_defined'],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => ['description' => '目标地址类型:'."\n"
."\n"
.'Ip:Ip'."\n"
."\n"
.'域名:Domain', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Domain'],
],
[
'name' => 'Address',
'in' => 'query',
'schema' => ['description' => '目标地址', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '*.aliyun.com'],
],
[
'name' => 'SerialNo',
'in' => 'query',
'schema' => ['description' => '请求编号,支持幂等。', 'type' => 'string', 'required' => false, 'example' => '123123'],
],
[
'name' => 'MsgNotify',
'in' => 'query',
'schema' => ['description' => '执行成功后是否通过MQ推送,默认false:'."\n"
.'false:不推送'."\n"
.'true: 推送(目前不支持)', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'UrlInsecurityForce',
'in' => 'query',
'schema' => ['description' => '检测到的高危风险域名是否强制添加,默认被拦截,不添加', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回参数。',
'type' => 'object',
'properties' => [
'Data' => ['description' => '地址是否添加成功。'."\n"
."\n"
.'true:添加成功。'."\n"
."\n"
.'false:添加失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。'."\n"
.'false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:调用成功。'."\n"
."\n"
.'其他:调用失败。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n InstanceId cannot be empty.\\n true\\n InstanceId cannot be empty.\\n 200\\n","errorExample":""}]',
'title' => '定向分组新增目标地址',
'changeSet' => [],
],
'AddDirectionalCard' => [
'summary' => '给定向分组中导入定向卡。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '定向分组ID。'."\n"
."\n"
.'您可调用接口[GetCardDetail](~~374328~~)在返回参数中查看定向分组ID(DirectionalGroupId)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5'],
],
[
'name' => 'UploadType',
'in' => 'query',
'schema' => ['description' => '导入类型。'."\n"
."\n"
.'- **NO_GROUP**:仅导入还未分组的定向卡。'."\n"
."\n"
.'- **ALL**:全量导入。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ALL'],
],
[
'name' => 'UploadMethod',
'in' => 'query',
'schema' => ['description' => '导入方式。'."\n"
."\n"
.'- **TAG**:标签,导入指定标签的定向卡。'."\n"
."\n"
.'- **ORDER**:订单,导入指定订单的定向卡。'."\n"
."\n"
.'- **FILE**:批量文件,导入批量文件中的定向卡。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'TAG'],
],
[
'name' => 'TagList',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '标签ID列表。导入方式选择为标签时,需填入该参数。',
'type' => 'array',
'items' => ['description' => '标签ID。导入方式选择为标签时,需填入该参数。'."\n"
."\n"
.'标签ID可在物联网无线连接服务控制台的**SIM卡管理** > **标签管理**页面查看。', 'type' => 'string', 'required' => false, 'example' => '5'],
'required' => true,
'docRequired' => true,
'maxItems' => 100,
],
],
[
'name' => 'OrderList',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '订单编号列表。导入方式选择为订单时,需填入该参数。',
'type' => 'array',
'items' => ['description' => '订单编号。导入方式选择为订单时,需填入该参数。'."\n"
."\n"
.'订单编号可在物联网无线连接服务控制台的**订单统计** > **订单管理**页面查看。', 'type' => 'string', 'required' => false, 'example' => '2172***80589'],
'required' => false,
'maxItems' => 50,
],
],
[
'name' => 'FileUri',
'in' => 'query',
'schema' => ['description' => '批量文件的OSS路径。导入方式选择为批量文件时,需填入该参数。', 'type' => 'string', 'required' => false, 'example' => 'https://linkcard-user-online.oss-cn-zhangjiakou.aliyuncs.com/DIRECTIONAL_GROUP/20220811/xxxx.csv'],
],
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => '定向分组名称。', 'type' => 'string', 'required' => false, 'example' => '测试分组'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '是否导入成功。'."\n"
."\n"
.'- **true**:导入成功。'."\n"
."\n"
.'- **false**:导入失败。', 'type' => 'string', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- 200:调用成功。'."\n"
."\n"
.'- 其他:调用失败。错误码详情,请参见[错误码](~~87387~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": \\"true\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n InstanceId cannot be empty.\\n true\\n InstanceId cannot be empty.\\n 200\\n","errorExample":""}]',
'title' => '定向分组导卡',
'description' => '## 使用说明'."\n"
.'定向卡是指仅能访问指定地址的物联网卡。可以调用接口[VerifyIotCard](~~446797~~)查询物联网卡是否为定向卡。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~30561~~)。',
'changeSet' => [],
],
'AddDirectionalGroup' => [
'summary' => '创建定向分组。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'GroupName',
'in' => 'query',
'schema' => ['description' => '给定向分组设置一个名称。'."\n"
."\n"
.'分组名称支持中文、英文、数字及下划线(_),长度不超过30个字符。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '测试分组', 'maxLength' => 30, 'minLength' => 0],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '定向分组ID。'."\n"
."\n"
.'请记录定向分组ID,后续调用其他接口,例如调用[AddDirectionalCard](~~446808~~)给定向分组里导入物联网卡时需填入定向分组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '6'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => '系统异常'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- 200:调用成功。'."\n"
."\n"
.'- 其他:调用失败。错误码详情,请参见[错误码](~~87387~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => '%s..'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": 6,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n 系统异常\\n true\\n InstanceId cannot be empty.\\n 200\\n","errorExample":""}]',
'title' => '创建定向分组',
'description' => '## 使用说明'."\n"
.'仅新版定向服务菜单支持定向分组功能,如果您使用的是旧版定向服务菜单,无法使用该接口。更多信息,请参见[定向服务](~~279455~~)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddDirectionalGroup'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'linkcard:AddDirectionalGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => 'DirectionalManage', 'arn' => 'acs:linkcard::{#accountId}:directionalmanage/*'],
],
],
],
],
],
'AddTagsToCard' => [
'summary' => '物联网卡添加标签',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在物联网SIM服务控制台的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'TagNameList',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '标签名称。',
'type' => 'array',
'items' => ['description' => '标签名称。'."\n"
."\n"
.'参数为空或者空集合的时候代表从卡上删除所有标签。'."\n"
."\n"
.'如标签不存在,则会自动创建该标签并打标。', 'type' => 'string', 'required' => false, 'example' => '测试标签'],
'required' => false,
'maxItems' => 4,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:表示成功。 其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'Data' => [
'description' => '该卡已有标签的集合。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'TagName' => ['description' => '标签名称。', 'type' => 'string', 'example' => '测试标签'],
'TagId' => ['description' => '标签ID。', 'type' => 'string', 'example' => '14'],
],
'description' => '',
],
],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。 false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => '卡号不能为空。'],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => '卡不存在或已销户'],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => '非法的请求参数。'],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => '%s..'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Data\\": [\\n {\\n \\"TagName\\": \\"测试标签\\",\\n \\"TagId\\": \\"14\\"\\n }\\n ],\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n \\n 测试标签\\n 14\\n \\n InstanceId cannot be empty.\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n","errorExample":""}]',
'title' => '物联网卡添加标签',
'changeSet' => [],
],
'BatchAddDirectionalAddress' => [
'summary' => '给定向分组添加访问地址。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '定向分组ID。'."\n"
."\n"
.'您可调用接口[GetCardDetail](~~374328~~)在返回参数中查看定向分组ID(DirectionalGroupId)。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '5'],
],
[
'name' => 'Source',
'in' => 'query',
'schema' => ['description' => '地址来源。'."\n"
."\n"
.'- **user_defined**:用户配置。'."\n"
."\n"
.'- **aliyun_defined**:阿里云预配。', 'type' => 'string', 'required' => true, 'example' => 'user_defined'],
],
[
'name' => 'AddressType',
'in' => 'query',
'schema' => ['description' => '地址类型。'."\n"
."\n"
.'- **Ip**:IP地址。'."\n"
."\n"
.'- **Domain**:域名。', 'type' => 'string', 'required' => true, 'example' => 'Domain'],
],
[
'name' => 'ListAddress',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '具体定向地址。',
'type' => 'array',
'items' => ['description' => '具体地址,上限10个。', 'type' => 'string', 'required' => false, 'example' => '*.aliyun.com'],
'required' => true,
'maxItems' => 10,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'BatchAddDirectionalAddressResponse',
'description' => 'BatchAddDirectionalAddressResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- 200:调用成功。'."\n"
."\n"
.'- 其他:调用失败。错误码详情,请参见[错误码](~~87387~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => ['description' => '地址是否添加成功。'."\n"
."\n"
.'- true:添加成功。'."\n"
."\n"
.'- false:添加失败。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n InstanceId cannot be empty.\\n InstanceId cannot be empty.\\n true\\n","errorExample":""}]',
'title' => '定向地址添加',
'description' => '## 使用说明'."\n"
.'仅新版定向服务菜单支持定向分组功能,如果您使用的是旧版定向服务菜单,无法使用该接口。更多信息,请参见[定向服务](~~279455~~)。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~30561~~)。',
'changeSet' => [],
],
'DeleteDirectionalAddress' => [
'summary' => '定向分组删除目标地址。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '10000002595'],
],
[
'name' => 'Address',
'in' => 'query',
'schema' => ['description' => '目标地址。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '*.aliyun.com'],
],
[
'name' => 'SerialNo',
'in' => 'query',
'schema' => ['description' => '请求编号,支持幂等。', 'type' => 'string', 'required' => false, 'example' => '123123'],
],
[
'name' => 'MsgNotify',
'in' => 'query',
'schema' => ['description' => '执行成功后是否通过MQ推送,默认false: '."\n"
."\n"
.'false:不推送 '."\n"
."\n"
.'true: 推送', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回参数。',
'type' => 'object',
'properties' => [
'Data' => ['description' => '操作是否成功。'."\n"
."\n"
.'true:成功。'."\n"
."\n"
.'false:失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。 false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:调用成功。'."\n"
."\n"
.'其他:调用失败。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => '请求参数%s非法.'],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => '非法的请求参数。'],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => '%s..'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n InstanceId cannot be empty.\\n true\\n InstanceId cannot be empty.\\n 200\\n","errorExample":""}]',
'title' => '定向分组删除目标地址',
'changeSet' => [],
],
'DeleteDirectionalGroup' => [
'summary' => '删除定向分组。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '分组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '10000002595'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回参数。',
'type' => 'object',
'properties' => [
'Data' => ['description' => '操作是否成功。'."\n"
."\n"
.'true:成功。'."\n"
."\n"
.'false:失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。'."\n"
.'false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:调用成功。'."\n"
."\n"
.'其他:调用失败。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => '请求参数%s非法.'],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => '非法的请求参数。'],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => '%s..'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n InstanceId cannot be empty.\\n true\\n InstanceId cannot be empty.\\n 200\\n","errorExample":""}]',
'title' => '删除定向分组',
'changeSet' => [],
],
'ForceActivation' => [
'summary' => '同档位套餐的卡强制激活,实现共享流量扩池。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'DateType',
'in' => 'query',
'schema' => ['description' => '套餐类型。'."\n"
."\n"
.'- **sameflowcard**:同档位通用流量套餐。'."\n"
."\n"
.'- **directional_sameflowcard**:同档位定向流量套餐。'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'sameflowcard'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '执行结果。'."\n"
."\n"
.'- **true**:执行成功。'."\n"
."\n"
.'- **false**:执行失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => '系统异常'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.ForceActivationSameFlowCard', 'errorMessage' => 'Only cards in the same flow support forced activation.', 'description' => ''],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => ''],
['errorCode' => 'linkcard.check.OnlyUnusedCanForceActivation', 'errorMessage' => 'Only unused cards support forced activation.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n","errorExample":""}]',
'title' => '卡的强制激活',
'description' => '## 使用限制'."\n"
."\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'changeSet' => [],
],
'GetCardDetail' => [
'summary' => '查询卡的详情信息。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的**卡管理页面**查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'ShowPsim',
'in' => 'query',
'schema' => ['description' => '是否展示子卡的详情信息,默认为否。'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'InstanceId',
'in' => 'query',
'schema' => ['description' => '物联网卡的实例ID。'."\n"
."\n"
.'只有查询的物联网卡已销户时(即**DestroyCard**为**true**)需要填入该参数。'."\n"
."\n"
.'您可以调用接口[ListCardInfo](~~425529~~)在返回参数中查看物联网卡的实例ID(VsimInstanceId)。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '411****'],
],
[
'name' => 'DestroyCard',
'in' => 'query',
'schema' => ['description' => '查询的物联网卡是否已销户,默认为否。'."\n"
."\n"
.'- **true**:是。'."\n"
.'- **false**:否。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回参数。',
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '物联网卡的详情信息。',
'type' => 'object',
'properties' => [
'ListPsimCards' => [
'description' => '多网卡的子卡详情。',
'type' => 'array',
'items' => [
'description' => '多网卡的子卡详情。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '物联网卡的状态。'."\n"
."\n"
.'- **10**:可测试。'."\n"
."\n"
.'- **20**:未使用。'."\n"
."\n"
.'- **30**:使用中。'."\n"
."\n"
.'- **35**:已停用。'."\n"
."\n"
.'- **40**:已停机。'."\n"
."\n"
.'- **50**:已销户。', 'type' => 'string', 'example' => '35'],
'PrivateNetworkSegment' => ['description' => '私网网段(定向卡)。', 'type' => 'string', 'example' => '*.2.*.4'],
'OsStatus' => ['description' => '物联网卡的具体状态。'."\n"
."\n"
.'- **10**:测试期。'."\n"
.'- **20**:静默期。'."\n"
.'- **100**:使用中。'."\n"
.'- **130**:测试期换绑停用。'."\n"
.'- **150**:部分使用中。'."\n"
.'- **200**:主动停用。'."\n"
.'- **300**:达量停用。'."\n"
.'- **400**:信控停用。'."\n"
.'- **500**:换绑停用。'."\n"
.'- **600**:实名停用。'."\n"
.'- **700**:异常停用。'."\n"
.'- **40**:已停机。'."\n"
.'- **50**:已销户。', 'type' => 'string', 'example' => '300'],
'CertifyStatus' => ['description' => '实名认证状态。'."\n"
."\n"
.'- **1**:未认证。'."\n"
."\n"
.'- **2**:已认证。', 'type' => 'string', 'example' => '2'],
'ApnName' => ['description' => 'APN名称。', 'type' => 'string', 'example' => 'cmiot'],
'PeriodAddFlow' => ['description' => '周期累计流量。', 'type' => 'string', 'example' => '130.00MB'],
'Iccid' => ['description' => '子卡的ICCID。', 'type' => 'string', 'example' => '89860321******15668'],
'Vendor' => ['description' => '运营商。'."\n"
."\n"
.'- **CMCC**:移动。'."\n"
."\n"
.'- **CUCC**:联通。'."\n"
."\n"
.'- **CTCC**:电信。', 'type' => 'string', 'example' => 'CMCC'],
'PeriodSmsUse' => ['description' => '周期短信用量。', 'type' => 'string', 'example' => '0'],
'Imsi' => [
'description' => '子卡的IMSI。',
'type' => 'array',
'items' => ['description' => '子卡的IMSI。', 'type' => 'string', 'example' => '460081937******'],
],
'Msisdn' => [
'description' => '子卡的MSISDN。',
'type' => 'array',
'items' => ['description' => '子卡的MSISDN。', 'type' => 'string', 'example' => '1411111******'],
],
'OpenSms' => ['description' => '短信功能开通情况。'."\n"
."\n"
.' - **true**:开通。'."\n"
."\n"
.'- **false**:关闭。', 'type' => 'boolean', 'example' => 'true'],
'Ip' => [
'description' => '物联网卡的IP地址。',
'type' => 'array',
'items' => ['description' => '物联网卡的IP地址。', 'type' => 'string', 'example' => '1.1.*.*'],
],
],
],
],
'VsimCardInfo' => [
'description' => '物联网卡的详情。'."\n"
."\n"
.'当查询多网卡时,展示虚拟卡信息。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '物联网卡状态。'."\n"
."\n"
.'- **10**:可测试。'."\n"
."\n"
.'- **20**:未使用。'."\n"
."\n"
.'- **30**:使用中。'."\n"
."\n"
.'- **35**:已停用。'."\n"
."\n"
.'- **40**:已停机。'."\n"
."\n"
.'- **50**:已销户。', 'type' => 'string', 'example' => '35'],
'DataType' => ['description' => '流量类型。'."\n"
."\n"
.'- **singlecard**:单卡通用流量。'."\n"
."\n"
.'- **directionalcard**:单卡定向流量。'."\n"
."\n"
.'- **sameflowcard**:同档位池共享流量。'."\n"
."\n"
.'- **directional_sameflowcard**:同档位池共享定向流量。'."\n"
."\n"
.'- **unityPayPool**:统付池通用流量。'."\n"
."\n"
.'- **GREcard**:统付池定向流量。', 'type' => 'string', 'example' => 'sameflowcard'],
'CardLimitSpeedThreshold' => ['description' => '物联网卡达量限速阈值,单位为KB。(暂不支持)', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
'PeriodRestFlow' => ['description' => '周期剩余流量。', 'type' => 'string', 'example' => '130.00MB'],
'DirectionalGroupName' => ['description' => '定向分组名称。', 'type' => 'string', 'example' => '测试分组'],
'CredentialType' => ['description' => '套餐凭证类型。'."\n"
."\n"
.'- 单卡套餐示例:CT-SC-M-1-30M(运营商-套餐类型-套餐周期-资费版本-流量包档位)。'."\n"
."\n"
.'- 同档位池套餐示例:CM-SF-M-3-100M(运营商-套餐类型-套餐周期-资费版本-流量包档位)。'."\n"
."\n"
.'- 统付池套餐示例:CU-UPG-M-2-池编号(运营商-套餐类型-套餐周期-资费版本-池编号)。', 'type' => 'string', 'example' => 'CT-SC-M-1-30M'],
'PeriodAddFlow' => ['description' => '周期累计流量。', 'type' => 'string', 'example' => '0KB'],
'DirectionalGroupId' => ['description' => '定向分组ID。', 'type' => 'string', 'example' => '22'],
'PeriodSmsUse' => ['description' => '周期短信用量。', 'type' => 'string', 'example' => '0'],
'OsStatus' => ['description' => '物联网卡的具体状态。'."\n"
."\n"
.'- **10**:测试期。'."\n"
."\n"
.'- **20**:静默期。'."\n"
."\n"
.'- **100**:使用中。'."\n"
."\n"
.'- **150**:部分使用中。'."\n"
."\n"
.'- **200**:主动停用。'."\n"
."\n"
.'- **300**:达量停用。'."\n"
."\n"
.'- **400**:信控停用。'."\n"
."\n"
.'- **500**:换绑停用。'."\n"
."\n"
.'- **600**:实名停用。'."\n"
."\n"
.'- **700**:异常停用。'."\n"
."\n"
.'- **40**:已停机。'."\n"
."\n"
.'- **50**:已销户。', 'type' => 'string', 'example' => '200'],
'NotifyId' => ['description' => '自动化规则的通知ID。', 'type' => 'string', 'example' => '11111'],
'DataLevel' => ['description' => '流量包档位。', 'type' => 'string', 'example' => '30MB'],
'TagList' => [
'description' => '物联网卡的标签。',
'type' => 'array',
'items' => [
'description' => '标签列表。',
'type' => 'object',
'properties' => [
'TagName' => ['description' => '标签名称。', 'type' => 'string', 'example' => '测试标签'],
'Id' => ['description' => '标签ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '24'],
],
],
'example' => '测试标签',
],
'AliyunOrderId' => ['description' => '物联网卡关联的订单编号。', 'type' => 'string', 'example' => '211519634******'],
'AliFee' => ['description' => '资费版本。', 'type' => 'string', 'example' => 'ali_2'],
'ActiveType' => ['description' => '激活方式。'."\n"
."\n"
.'- **first_data_record**:首话单激活。'."\n"
."\n"
.'- **carrier_status_push**:运营商状态推送激活。'."\n"
."\n"
.'- **silence_expire**:静默期结束激活。'."\n"
."\n"
.'- **manage**:手动激活。'."\n"
."\n"
.'- **test_flow_depleted**:测试流量超套激活。', 'type' => 'string', 'example' => 'first_data_record'],
'IsAutoRecharge' => ['description' => '套餐是否自动续费。'."\n"
."\n"
.'- **true**:是。'."\n"
."\n"
.'- **false**:否。', 'type' => 'boolean', 'example' => 'true'],
'AutoLimitResume' => ['description' => '达量停用后,次月是否自动复用。'."\n"
."\n"
.'- **true**:是。'."\n"
."\n"
.'- **false**:否。', 'type' => 'boolean', 'example' => 'true'],
'CredentialInstanceId' => ['description' => '凭证实例ID。', 'type' => 'string', 'example' => '2622***'],
'CredentialLimitSpeedThreshold' => ['description' => '凭证达量限速阈值,单位为KB。(暂不支持)。', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
'ExpireTime' => ['description' => '套餐到期时间。', 'type' => 'string', 'example' => '2022-04-30 23:59:59'],
'FlowThresholdUnit' => ['description' => '阈值流量单位。', 'type' => 'string', 'example' => 'KB'],
'ApnName' => ['description' => 'APN名称。', 'type' => 'string', 'example' => 'cmiot'],
'ActiveTime' => ['description' => '激活时间。', 'type' => 'string', 'example' => '2021-11-16 16:35:50'],
'CardLimitStopThreshold' => ['description' => '物联网卡达量停用阈值,单位为KB。(暂不支持)', 'type' => 'integer', 'format' => 'int32', 'example' => '20480'],
'Iccid' => ['description' => '物联网卡的ICCID。', 'type' => 'string', 'example' => '89860321******15668'],
'Vendor' => ['description' => '运营商。'."\n"
."\n"
.'- **CMCC**:移动。'."\n"
."\n"
.'- **CUCC**:联通。'."\n"
."\n"
.'- **CTCC**:电信。'."\n"
."\n"
.'- **VNO**:虚拟运营商。', 'type' => 'string', 'example' => 'CMCC'],
'Period' => ['description' => '套餐结算周期。'."\n"
."\n"
.'- **1101**:月度。'."\n"
."\n"
.'- **1103**:季度。'."\n"
."\n"
.'- **1106**:半年度。'."\n"
."\n"
.'- **1112**:年度。', 'type' => 'string', 'example' => '1101'],
'PrivateNetworkSegment' => ['description' => '私网网段(定向卡)。', 'type' => 'string', 'example' => '1.*.3.*'],
'OpenAccountTime' => ['description' => '开户时间。', 'type' => 'string', 'example' => '2021-11-29 16:12:14'],
'CertifyType' => ['description' => '认证方式。'."\n"
."\n"
.'enterprise:企业认证。', 'type' => 'string', 'example' => 'enterprise'],
'SimType' => ['description' => 'SIM卡类型。'."\n"
."\n"
.'- **nano**:插拔三切卡(消费级)。'."\n"
."\n"
.'- **micro**:插拔双切卡(消费级)。'."\n"
."\n"
.'- **normal**:插拔大卡(消费级)。'."\n"
."\n"
.'- **simplus56**:贴片卡5*6(消费级)。'."\n"
."\n"
.'- **simplus22**:贴片卡2*2(消费级)。'."\n"
."\n"
.'- **industry-normal**:插拔大卡(工业级)。'."\n"
."\n"
.'- **industry-micro**:插拔双切卡(工业级)。'."\n"
."\n"
.'- **industry-nano**:插拔三切卡(工业级)。'."\n"
."\n"
.'- **simplus**:贴片卡5*6(工业级)。'."\n"
."\n"
.'- **industry-simplus22**:贴片卡2*2(工业级)。', 'type' => 'string', 'example' => 'nano'],
'CertifyStatus' => ['description' => '实名认证状态。'."\n"
."\n"
.'- **1**:未认证。'."\n"
."\n"
.'- **2**:已认证。', 'type' => 'string', 'example' => '2'],
'DeviceImei' => ['description' => '设备的IMEI号。', 'type' => 'string', 'example' => '11111111******'],
'VsimInstanceId' => ['description' => '物联网卡的InstanceId值。', 'type' => 'integer', 'format' => 'int32', 'example' => '123456'],
'AutoRebindReuse' => ['description' => '自动换绑重用。'."\n"
."\n"
.'- **true**:开。'."\n"
."\n"
.'- **false**:关。', 'type' => 'boolean', 'example' => 'false'],
'CredentialNo' => ['description' => '套餐凭证。', 'type' => 'string', 'example' => 'CM-***-*-2-**M'],
'CredentialLimitStopThreshold' => ['description' => '凭证达量停用阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '20480'],
'Imsi' => [
'description' => '物联网卡的IMSI。',
'type' => 'array',
'items' => ['description' => '物联网卡的IMSI。', 'type' => 'string', 'example' => '460081937******'],
],
'Msisdn' => [
'description' => '物联网卡的MSISDN。',
'type' => 'array',
'items' => ['description' => '物联网卡的MSISDN。', 'type' => 'string', 'example' => '1440993******'],
],
'OpenSms' => ['description' => '短信功能开通情况。'."\n"
."\n"
.'- true:开通。'."\n"
."\n"
.'- false:关闭。', 'type' => 'boolean', 'example' => 'true'],
'Ip' => [
'description' => '物联网卡的IP地址。',
'type' => 'array',
'items' => ['description' => '物联网卡的IP地址。', 'type' => 'string', 'example' => '190.*.*.*'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.InstanceIdCanNotEmpty', 'errorMessage' => 'InstanceId cannot be empty.', 'description' => ''],
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => ''],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => ''],
['errorCode' => 'linkcard.common.CardNotExist', 'errorMessage' => 'The card does not exist.', 'description' => ''],
['errorCode' => 'CardDisabled', 'errorMessage' => 'The SIM card has been permanently disabled.', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
],
500 => [
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => 'linkcard.common.BusinessProcessError', 'errorMessage' => 'A business processing exception occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"ListPsimCards\\": [\\n {\\n \\"Status\\": \\"35\\",\\n \\"PrivateNetworkSegment\\": \\"*.2.*.4\\",\\n \\"OsStatus\\": \\"300\\",\\n \\"CertifyStatus\\": \\"2\\",\\n \\"ApnName\\": \\"cmiot\\",\\n \\"PeriodAddFlow\\": \\"130.00MB\\",\\n \\"Iccid\\": \\"89860321******15668\\",\\n \\"Vendor\\": \\"CMCC\\",\\n \\"PeriodSmsUse\\": \\"0\\",\\n \\"Imsi\\": [\\n \\"460081937******\\"\\n ],\\n \\"Msisdn\\": [\\n \\"1411111******\\"\\n ],\\n \\"OpenSms\\": true,\\n \\"Ip\\": [\\n \\"1.1.*.*\\"\\n ]\\n }\\n ],\\n \\"VsimCardInfo\\": {\\n \\"Status\\": \\"35\\",\\n \\"DataType\\": \\"sameflowcard\\",\\n \\"CardLimitSpeedThreshold\\": 1024,\\n \\"PeriodRestFlow\\": \\"130.00MB\\",\\n \\"DirectionalGroupName\\": \\"测试分组\\",\\n \\"CredentialType\\": \\"CT-SC-M-1-30M\\",\\n \\"PeriodAddFlow\\": \\"0KB\\",\\n \\"DirectionalGroupId\\": \\"22\\",\\n \\"PeriodSmsUse\\": \\"0\\",\\n \\"OsStatus\\": \\"200\\",\\n \\"NotifyId\\": \\"11111\\",\\n \\"DataLevel\\": \\"30MB\\",\\n \\"TagList\\": [\\n {\\n \\"TagName\\": \\"测试标签\\",\\n \\"Id\\": 24\\n }\\n ],\\n \\"AliyunOrderId\\": \\"211519634******\\",\\n \\"AliFee\\": \\"ali_2\\",\\n \\"ActiveType\\": \\"first_data_record\\",\\n \\"IsAutoRecharge\\": true,\\n \\"AutoLimitResume\\": true,\\n \\"CredentialInstanceId\\": \\"2622***\\",\\n \\"CredentialLimitSpeedThreshold\\": 1024,\\n \\"ExpireTime\\": \\"2022-04-30 23:59:59\\",\\n \\"FlowThresholdUnit\\": \\"KB\\",\\n \\"ApnName\\": \\"cmiot\\",\\n \\"ActiveTime\\": \\"2021-11-16 16:35:50\\",\\n \\"CardLimitStopThreshold\\": 20480,\\n \\"Iccid\\": \\"89860321******15668\\",\\n \\"Vendor\\": \\"CMCC\\",\\n \\"Period\\": \\"1101\\",\\n \\"PrivateNetworkSegment\\": \\"1.*.3.*\\",\\n \\"OpenAccountTime\\": \\"2021-11-29 16:12:14\\",\\n \\"CertifyType\\": \\"enterprise\\",\\n \\"SimType\\": \\"nano\\",\\n \\"CertifyStatus\\": \\"2\\",\\n \\"DeviceImei\\": \\"11111111******\\",\\n \\"VsimInstanceId\\": 123456,\\n \\"AutoRebindReuse\\": false,\\n \\"CredentialNo\\": \\"CM-***-*-2-**M\\",\\n \\"CredentialLimitStopThreshold\\": 20480,\\n \\"Imsi\\": [\\n \\"460081937******\\"\\n ],\\n \\"Msisdn\\": [\\n \\"1440993******\\"\\n ],\\n \\"OpenSms\\": true,\\n \\"Ip\\": [\\n \\"190.*.*.*\\"\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n InstanceId cannot be empty.\\n true\\n InstanceId cannot be empty.\\n \\n \\n 35\\n *.2.*.4\\n 300\\n 2\\n cmiot\\n 130.00MB\\n 89860321******15668\\n CMCC\\n 0\\n 460081937******\\n 1411111******\\n true\\n 1.1.*.*\\n \\n \\n 35\\n sameflowcard\\n 1024\\n 130.00MB\\n 测试分组\\n CT-SC-M-1-30M\\n 0KB\\n 22\\n 0\\n 200\\n 11111\\n 30MB\\n \\n 测试标签\\n 24\\n \\n 211519634******\\n ali_2\\n first_data_record\\n true\\n true\\n 2622***\\n 1024\\n 2022-04-30 23:59:59\\n KB\\n cmiot\\n 2021-11-16 16:35:50\\n 20480\\n 89860321******15668\\n CMCC\\n 1101\\n 1.*.3.*\\n 2021-11-29 16:12:14\\n enterprise\\n nano\\n 2\\n 11111111******\\n 123456\\n false\\n CM-***-*-2-**M\\n 20480\\n 460081937******\\n 1440993******\\n true\\n 190.*.*.*\\n \\n \\n","errorExample":""}]',
'title' => '卡详情查询',
'description' => '## 限制说明'."\n"
."\n\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => ' 调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
],
'GetCardFlowInfo' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'DateList',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
'description' => '需要查询的月份。'."\n"
."\n"
.'最多可以查询6个月,如果为空则获取最近两个月的数据。',
'type' => 'array',
'items' => ['description' => '需要查询的月份。'."\n"
."\n"
.'最多可以查询6个月,如果为空则获取最近两个月的数据。', 'type' => 'string', 'required' => false, 'example' => '["202110","202111"]'],
'required' => false,
'example' => '["202110","202111"]',
'maxItems' => 5,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '物联网卡的流量信息。',
'type' => 'object',
'properties' => [
'ListVendorDetail' => [
'description' => '网络数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'NetWorkDelay' => ['description' => '网络延迟,单位ms。', 'type' => 'string', 'example' => '20'],
'SignalStrength' => ['description' => '信号强度。', 'type' => 'string', 'example' => '20'],
'Vendor' => ['description' => '物联网卡的运营商。'."\n"
.'- CMCC:移动。'."\n"
.'- CUCC:联通。'."\n"
.'- CTCC:电信。'."\n", 'type' => 'string', 'example' => 'CMCC'],
'UsedFlow' => ['description' => '已用流量。', 'type' => 'string', 'example' => '100MB'],
'Ratio' => ['description' => '用量占比。', 'type' => 'string', 'example' => '80%'],
],
'description' => '',
],
],
'ListCardMonthFlow' => [
'description' => '月用量详情。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'FlowCount' => ['description' => '月总流量统计。', 'type' => 'string', 'example' => '200MB'],
'Month' => ['description' => '流量月份。', 'type' => 'string', 'example' => '202112'],
'ListDayFlow' => [
'description' => '每日用量。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Flow' => ['description' => '日用量。', 'type' => 'string', 'example' => '100MB'],
'Day' => ['description' => '流量日期。', 'type' => 'string', 'example' => '20211201'],
],
'description' => '',
],
],
],
'description' => '',
],
],
'ListPackageDTO' => [
'description' => '套餐包信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'EffectiveTime' => ['description' => '套餐生效时间。', 'type' => 'string', 'example' => '2022-03-20 23:59:59'],
'Remark' => ['description' => '备注。', 'type' => 'string', 'example' => '备注内容'],
'PackageName' => ['description' => '套餐名称。', 'type' => 'string', 'example' => '移动-单卡通用流量-月包-30M'],
'ExpireTime' => ['description' => '套餐到期时间。', 'type' => 'string', 'example' => '2022-04-30 23:59:59'],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => '卡号不能为空。'],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => '非法的请求参数。'],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => '卡不存在或已销户'],
['errorCode' => 'linkcard.common.CardNotExist', 'errorMessage' => 'The card does not exist.', 'description' => '卡号有误,卡不存在'],
['errorCode' => 'CardDisabled', 'errorMessage' => 'The SIM card has been permanently disabled.', 'description' => '卡已经被销户'],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
],
500 => [
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => '%s..'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"ListVendorDetail\\": [\\n {\\n \\"NetWorkDelay\\": \\"20\\",\\n \\"SignalStrength\\": \\"20\\",\\n \\"Vendor\\": \\"CMCC\\",\\n \\"UsedFlow\\": \\"100MB\\",\\n \\"Ratio\\": \\"80%\\"\\n }\\n ],\\n \\"ListCardMonthFlow\\": [\\n {\\n \\"FlowCount\\": \\"200MB\\",\\n \\"Month\\": \\"202112\\",\\n \\"ListDayFlow\\": [\\n {\\n \\"Flow\\": \\"100MB\\",\\n \\"Day\\": \\"20211201\\"\\n }\\n ]\\n }\\n ],\\n \\"ListPackageDTO\\": [\\n {\\n \\"EffectiveTime\\": \\"2022-03-20 23:59:59\\",\\n \\"Remark\\": \\"备注内容\\",\\n \\"PackageName\\": \\"移动-单卡通用流量-月包-30M\\",\\n \\"ExpireTime\\": \\"2022-04-30 23:59:59\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n \\n \\n 20\\n 20\\n CMCC\\n \\n \\n 200MB\\n 202112\\n \\n 100MB\\n 20211201\\n \\n \\n \\n 2022-03-20 23:59:59\\n 备注内容\\n 移动-单卡通用流量-月包-30M\\n 2022-04-30 23:59:59\\n \\n \\n","errorExample":""}]',
'title' => '卡流量查询',
'summary' => '查询卡的流量信息。',
'description' => '## 限制说明'."\n"
."\n\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
],
'GetCardLatestFlow' => [
'summary' => '该接口用于查询物联网卡的实时周期用量。',
'methods' => ['post', 'get'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['title' => 'iccid', 'description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/sim/card)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'example' => '89860321******15668'],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'GetCardLatestFlowResponse',
'description' => 'GetCardLatestFlowResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。'."\n"
.'false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:表示成功。'."\n"
."\n"
.'其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => ['description' => '实时周期用量,带流量单位。', 'type' => 'string', 'example' => '1.00MB'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.InvalidAliyunPK', 'errorMessage' => 'AliyunPk is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => ''],
['errorCode' => 'linkcard.common.IccidNotExist', 'errorMessage' => 'IccId does not exist.', 'description' => ''],
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
],
500 => [
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": \\"1.00MB\\"\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n InstanceId cannot be empty.\\n InstanceId cannot be empty.\\n 1.00MB\\n","errorExample":""}]',
'title' => 'GetCardLatestFlow',
'changeSet' => [],
],
'GetCardRealStatus' => [
'methods' => ['post', 'get'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在物联网SIM服务控制台的卡管理页面查看ICCID。', 'type' => 'string', 'required' => false, 'example' => '89860321******15668'],
],
[
'name' => 'Msisdn',
'in' => 'query',
'schema' => ['description' => '物联网卡的MSISDN。', 'type' => 'string', 'required' => false, 'example' => '144******1111'],
],
[
'name' => 'SerialNo',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '轮询查询结果的唯一标识。',
'type' => 'array',
'items' => ['description' => '轮询查询结果的唯一标识。'."\n"
."\n"
.'说明:'."\n"
."\n"
.'1、因该接口运营商能力较弱,查询结果需时,故结合轮询能力使用。'."\n"
."\n"
.'2、在首次请求后,如Status未成功,则返回参数中会带此数据,再用此数据进行结果轮询。', 'type' => 'string', 'required' => false, 'example' => '4f84******7895'],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'GetCardRealStatusResponse',
'description' => 'GetCardRealStatusResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。 false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:表示成功。 其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '返回数据。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'SerialNo' => ['description' => '轮询查询结果的唯一标识。'."\n"
."\n"
.'说明:'."\n"
."\n"
.'1、因该接口运营商能力较弱,查询结果需时,故结合轮询能力使用。'."\n"
."\n"
.'2、在首次请求后,如Status未成功,则返回参数中会带此数据,再用此数据进行结果轮询。', 'type' => 'string', 'example' => '4f84******7895'],
'Iccid' => ['description' => '卡的ICCID,当请求ICCID为多网卡主卡时,此处返回子卡ICCID。', 'type' => 'string', 'example' => '89860321******15668'],
'Gprs' => ['description' => '网络服务状态。'."\n"
."\n"
.'true:开通。'."\n"
."\n"
.'false:关闭。', 'type' => 'boolean', 'example' => 'true'],
'Online' => ['description' => '在线状态。'."\n"
."\n"
.'true:在线。'."\n"
."\n"
.'false:不在线。', 'type' => 'boolean', 'example' => 'true'],
'Status' => ['description' => '查询结果状态: '."\n"
."\n"
.'SUCCESS:成功'."\n"
."\n"
.'FAILURE:失败'."\n"
."\n"
.'PROCESSING'."\0".':处理中', 'type' => 'string', 'example' => 'SUCCESS'],
],
'description' => '',
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
],
500 => [
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => 'linkcard.common.BusinessProcessError', 'errorMessage' => 'A business processing exception occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": [\\n {\\n \\"SerialNo\\": \\"4f84******7895\\",\\n \\"Iccid\\": \\"89860321******15668\\",\\n \\"Gprs\\": true,\\n \\"Online\\": true,\\n \\"Status\\": \\"SUCCESS\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n InstanceId cannot be empty.\\n InstanceId cannot be empty.\\n \\n 4f84b7a5-90******07895\\n 89860321******15668\\n true\\n true\\n SUCCESS\\n \\n","errorExample":""}]',
'title' => '智能诊断-查询卡在运营商侧状态',
'summary' => '智能诊断-查询卡在运营商侧状态',
'changeSet' => [],
],
'GetCardStatusStatistics' => [
'methods' => ['post', 'get'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:表示成功。'."\n"
.'其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。'."\n"
.'false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'UnbindResumeStatisticsDTO' => [
'description' => '换绑停用数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'FlowOutStatisticsDTO' => [
'description' => '信控停用数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'ErrorStopStatisticsDTO' => [
'description' => '异常停用数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'ExhaustStopStatisticsDTO' => [
'description' => '达量停用数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'UnCertifiedStopStatisticsDTO' => [
'description' => '未实名停用数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'ManageStopStatisticsDTO' => [
'description' => '主动停用数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'ExpireStopStatisticsDTO' => [
'description' => '套餐到期停机数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'WeekWarnStatisticsDTO' => [
'description' => '套餐7天到期预警数据统计。',
'type' => 'object',
'properties' => [
'PoolCount' => ['description' => '统付池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'SingleCardCount' => ['description' => '单卡套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'SameFlowCardCount' => ['description' => '同档位池套餐卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'TotalCount' => ['description' => '总卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '60'],
],
],
'RiskWaringStatisticsDTO' => [
'description' => '风险告警统计。与控制台风险告警板块数据一致。',
'type' => 'object',
'properties' => [
'WarningCount' => ['description' => '到期预警数。(7天内套餐到期)', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'WaringTotalCount' => ['description' => '总告警数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'StopCount' => ['description' => '停机/停用数。', 'type' => 'integer', 'format' => 'int64', 'example' => '40'],
'LeftFlowPercentageWarnCount' => ['description' => '余量预警数。(单卡套餐余量不足10%)', 'type' => 'integer', 'format' => 'int64', 'example' => '40'],
],
],
'SingCardPeriodLeftFlowWarnDTO' => [
'description' => '套餐余量不足数据统计。',
'type' => 'object',
'properties' => [
'LessFlowPercentage10Count' => ['description' => '单卡周期套餐余量不足10%的告警数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
'LessFlowPercentage30Count' => ['description' => '单卡周期套餐余量不足30%的告警数量.', 'type' => 'integer', 'format' => 'int64', 'example' => '8'],
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"UnbindResumeStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"FlowOutStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"ErrorStopStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"ExhaustStopStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"UnCertifiedStopStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"ManageStopStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"ExpireStopStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"WeekWarnStatisticsDTO\\": {\\n \\"PoolCount\\": 10,\\n \\"SingleCardCount\\": 20,\\n \\"SameFlowCardCount\\": 30,\\n \\"TotalCount\\": 60\\n },\\n \\"RiskWaringStatisticsDTO\\": {\\n \\"WarningCount\\": 20,\\n \\"WaringTotalCount\\": 100,\\n \\"StopCount\\": 40,\\n \\"LeftFlowPercentageWarnCount\\": 40\\n },\\n \\"SingCardPeriodLeftFlowWarnDTO\\": {\\n \\"LessFlowPercentage10Count\\": 5,\\n \\"LessFlowPercentage30Count\\": 8\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n \\n DCBDCDBC-0E54-53AC-97A4-6194849CC6BC\\n \\n \\n 8\\n 0\\n 4\\n 4\\n \\n \\n 20\\n 20\\n 0\\n 0\\n \\n \\n 12\\n 7\\n 0\\n 5\\n \\n \\n 15\\n 0\\n \\n \\n 1\\n 0\\n 0\\n 1\\n \\n \\n 652\\n 506\\n 146\\n 0\\n \\n \\n 1\\n 0\\n 0\\n 1\\n \\n \\n 1\\n 0\\n 0\\n 1\\n \\n \\n 20\\n 825\\n 15\\n 860\\n \\n \\n 150\\n 57\\n 31\\n 62\\n \\n \\n \\n \\n true\\n \\n \\n 200\\n DCBDCDBC-0E54-53AC-97A4-6194849CC6BC\\n true\\n","errorExample":""}]',
'title' => '概览页风险告警',
'summary' => '概览页风险告警',
'changeSet' => [],
],
'GetCredentialPoolStatistics' => [
'summary' => '查询套餐凭证对应的池信息。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Date',
'in' => 'query',
'schema' => ['description' => '要查询的套餐流量使用详情的月份。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '202108'],
],
[
'name' => 'CredentialNO',
'in' => 'query',
'schema' => ['description' => '套餐凭证。获取方法如下:'."\n"
."\n"
.'- 在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的**套餐凭证**页面,查看套餐凭证。'."\n"
."\n"
.'- 调用接口[GetCardDetail](~~374328~~),在返回参数中查看套餐凭证(CredentialNo)。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'CM-SF-M-2-12G'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的出错信息。', 'type' => 'string', 'example' => '系统异常'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'- true:调用成功。'."\n"
."\n"
.'- false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '套餐流量使用详情。',
'type' => 'object',
'properties' => [
'PoolUsed' => ['description' => '当月已用流量。', 'type' => 'string', 'example' => '0KB'],
'CredentialNO' => ['description' => '套餐凭证。', 'type' => 'string', 'example' => 'CM-SF-M-2-12G'],
'PoolOutUsed' => ['description' => '当月套餐外流量。', 'type' => 'string', 'example' => '0KB'],
'PoolGrandTotalUsed' => ['description' => '套餐流量使用总量,仅统付池套餐显示该参数。', 'type' => 'string', 'example' => '6.00GB'],
'CredentialType' => ['description' => '套餐凭证类型。'."\n"
."\n"
.'- 单卡套餐示例:CT-SC-M-1-30M(运营商-套餐类型-套餐周期-资费版本-流量包档位)。'."\n"
."\n"
.'- 同档位池套餐示例:CM-SF-M-3-100M(运营商-套餐类型-套餐周期-资费版本-流量包档位)。'."\n"
."\n"
.'- 统付池套餐示例:CU-UPG-M-2-池编号(运营商-套餐类型-套餐周期-资费版本-池编号)。', 'type' => 'string', 'example' => 'CT-SC-M-1-30M'],
'CardTotalNum' => ['description' => '套餐内总卡数。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'PoolGrandTotal' => ['description' => '套餐总流量,仅统付池套餐显示该参数。', 'type' => 'string', 'example' => '12.00GB'],
'CardActiveNum' => ['description' => '套餐内的生效卡数(已激活且未停机未销户)。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'EffectiveTotalFlow' => ['description' => '套餐总流量,仅同档位池套餐显示该参数。', 'type' => 'string', 'example' => '12.00GB'],
'EffectiveAvailableFlow' => ['description' => '套餐内可用余量,仅同档位池套餐显示该参数。', 'type' => 'string', 'example' => '6.00GB'],
'PoolAvaiable' => ['description' => '套餐内可用余量,仅统付池套餐显示该参数。', 'type' => 'string', 'example' => '6.00GB'],
'MonthFeatureFee' => ['description' => '月功能费份数,仅统付池套餐显示该参数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'CredentialInstanceId' => ['description' => '凭证实例ID。', 'type' => 'string', 'example' => '259****'],
'SmsUsed' => ['description' => '短信用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'MonthUsedAmount' => ['description' => '月度流量使用总量。', 'type' => 'integer', 'format' => 'int64', 'example' => '3.00GB'],
'MonthExceedFee' => ['description' => '当月功能费超套份数。'."\n"
."\n"
.'大于0代表功能费已超套;等于0或null代表未超套。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.TimeFormatError', 'errorMessage' => 'Time format error.', 'description' => ''],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => 'linkcard.common.BusinessProcessError', 'errorMessage' => 'A business processing exception occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"PoolUsed\\": \\"0KB\\",\\n \\"CredentialNO\\": \\"CM-SF-M-2-12G\\",\\n \\"PoolOutUsed\\": \\"0KB\\",\\n \\"PoolGrandTotalUsed\\": \\"6.00GB\\",\\n \\"CredentialType\\": \\"CT-SC-M-1-30M\\",\\n \\"CardTotalNum\\": 20,\\n \\"PoolGrandTotal\\": \\"12.00GB\\",\\n \\"CardActiveNum\\": 10,\\n \\"EffectiveTotalFlow\\": \\"12.00GB\\",\\n \\"EffectiveAvailableFlow\\": \\"6.00GB\\",\\n \\"PoolAvaiable\\": \\"6.00GB\\",\\n \\"MonthFeatureFee\\": 100,\\n \\"CredentialInstanceId\\": \\"259****\\",\\n \\"SmsUsed\\": 0,\\n \\"MonthUsedAmount\\": 0,\\n \\"MonthExceedFee\\": 200\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n \\n 0KB\\n CM-SF-M-2-12G\\n 0KB\\n 6.00GB\\n CM-SF-M-2-12G\\n 20\\n 12.00GB\\n 10\\n 12.00GB\\n 6.00GB\\n 6.00GB\\n 100\\n 259****\\n 0\\n \\n","errorExample":""}]',
'title' => '套餐凭证信息查询',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
],
'GetRealNameStatus' => [
'summary' => '该接口用于查询物联网卡的个人实名状态。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/sim/card)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'example' => '89860321******15668'],
],
[
'name' => 'ListMsisdns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '多网卡子卡MSISDN。',
'type' => 'array',
'items' => ['description' => '物联网卡的MSISDN。', 'type' => 'string', 'required' => false, 'example' => '144******1111'],
'required' => false,
'maxItems' => 10,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'GetRealNameStatusResponse',
'description' => 'GetRealNameStatusResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。'."\n"
.'false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:表示成功。'."\n"
.'其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'RealNameStatus' => ['description' => '个人实名认证状态。'."\n"
.'NOT_CERTIFIED:未认证'."\n"
.'APPROVING:认证审核中'."\n"
.'CERTIFIED:已认证', 'type' => 'string', 'example' => 'CERTIFIED'],
'Desc' => ['description' => '认证状态描述。', 'type' => 'string', 'example' => '已认证'],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.InvalidAliyunPK', 'errorMessage' => 'AliyunPk is invalid.', 'description' => ''],
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => ''],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => ''],
['errorCode' => 'linkcard.common.IccidFormatError', 'errorMessage' => 'Iccid format error.', 'description' => ''],
['errorCode' => 'linkcard.common.VnoCardNotSupported', 'errorMessage' => 'This function does not support vno card.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
],
500 => [
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"RealNameStatus\\": \\"CERTIFIED\\",\\n \\"Desc\\": \\"已认证\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n \\n NOT_CERTIFIED\\n 未认证\\n \\n D3778AAD-6A0E-16F8-8074-C4AF604E21B3\\n true\\n","errorExample":""}]',
'title' => 'GetRealNameStatus',
'changeSet' => [],
],
'GetSimCardStateDistribution' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'CredentialNO',
'in' => 'query',
'schema' => ['description' => '套餐凭证编号,您可在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/sim/license)的凭证管理页面查看。', 'type' => 'string', 'required' => false, 'example' => 'CT-SC-M-2-100M'],
],
[
'name' => 'Date',
'in' => 'query',
'schema' => ['description' => '查询的日期。'."\n"
."\n"
.'格式:yyyyMM。', 'type' => 'string', 'required' => true, 'example' => '202209'],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:表示成功。'."\n"
."\n"
.'其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。'."\n"
.'false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
'CardCount' => ['description' => '卡总数。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'TestCount' => ['description' => '可测试卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
'UnusedCount' => ['description' => '未使用卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'StopCount' => ['description' => '已停用卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
'DestoryedCount' => ['description' => '已销户卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'UsingCount' => ['description' => '使用中卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'],
'ShutDownCount' => ['description' => '已停机卡数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.check.TimeFormatError', 'errorMessage' => 'Time format error.', 'description' => ''],
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.CredentialInstanceNotExist', 'errorMessage' => 'The credential instance does not exist.', 'description' => ''],
['errorCode' => 'linkcard.common.CredentialNoNotExist', 'errorMessage' => 'The credentialNo does not exist', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"CardCount\\": 100,\\n \\"TestCount\\": 20,\\n \\"UnusedCount\\": 10,\\n \\"StopCount\\": 5,\\n \\"DestoryedCount\\": 0,\\n \\"UsingCount\\": 50,\\n \\"ShutDownCount\\": 10\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n \\n 5C06CF1A-959D-10A9-9C56-003EDF663BAF\\n \\n 166\\n 50098\\n 426\\n 902847\\n 340498\\n 511007\\n 652\\n \\n true\\n \\n 200\\n 5C06CF1A-959D-10A9-9C56-003EDF663BAF\\n true\\n","errorExample":""}]',
'title' => '获取卡状态分布',
'summary' => '获取卡状态分布',
'changeSet' => [],
],
'ListCardInfo' => [
'summary' => '查询卡列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'ActiveTimeEnd',
'in' => 'query',
'schema' => ['description' => '物联网卡的激活时间区间:结束时间。'."\n"
."\n"
.'格式为:`yyyy-MM-dd HH:mm:ss`。', 'type' => 'string', 'required' => false, 'example' => '2022-05-25 23:59:59'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页的数量,支持10、15、25、40。'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '10'],
],
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的**卡管理页面**查看ICCID。', 'type' => 'string', 'required' => false, 'example' => '89860321******15668'],
],
[
'name' => 'CredentialNo',
'in' => 'query',
'schema' => ['description' => '套餐凭证。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'CM-***-*-2-**M'],
],
[
'name' => 'Vendor',
'in' => 'query',
'schema' => ['description' => '运营商。'."\n"
."\n"
.'- **CMCC**:移动。'."\n"
."\n"
.'- **CUCC**:联通。'."\n"
."\n"
.'- **CTCC**:电信。'."\n"
."\n"
.'- **VNO**:虚拟运营商。', 'type' => 'string', 'required' => false, 'example' => 'CMCC'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['description' => '查询页数,需结合**PageSize**参数组合使用。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1'],
],
[
'name' => 'Msisdn',
'in' => 'query',
'schema' => ['description' => '物联网卡的MSISDN。', 'type' => 'string', 'required' => false, 'example' => '1440993******'],
],
[
'name' => 'AliyunOrderId',
'in' => 'query',
'schema' => ['description' => '物联网卡关联的订单编号。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => '211519634******'],
],
[
'name' => 'AliFee',
'in' => 'query',
'schema' => ['description' => '资费版本。', 'type' => 'string', 'required' => false, 'example' => 'ali_2'],
],
[
'name' => 'Period',
'in' => 'query',
'schema' => ['description' => '套餐结算周期。'."\n"
."\n"
.'- **1101**:月度。'."\n"
."\n"
.'- **1103**:季度。'."\n"
."\n"
.'- **1106**:半年度。'."\n"
."\n"
.'- **1112**:年度。', 'type' => 'string', 'required' => false, 'example' => '1101'],
],
[
'name' => 'DataType',
'in' => 'query',
'schema' => ['description' => '流量类型。'."\n"
."\n"
.'- **singlecard**:单卡通用流量。'."\n"
."\n"
.'- **directionalcard**:单卡定向流量。'."\n"
."\n"
.'- **sameflowcard**:同档位池共享流量。'."\n"
."\n"
.'- **directional_sameflowcard**:同档位池共享定向流量。'."\n"
."\n"
.'- **unityPayPool**:统付池通用流量。'."\n"
."\n"
.'- **GREcard** :统付池定向流量。', 'type' => 'string', 'required' => false, 'example' => 'sameflowcard'],
],
[
'name' => 'ActiveTimeStart',
'in' => 'query',
'schema' => ['description' => '物联网卡的激活时间区间:开始时间。'."\n"
."\n"
.'格式为:`yyyy-MM-dd HH:mm:ss`。', 'type' => 'string', 'required' => false, 'example' => '2022-05-25 23:59:59'],
],
[
'name' => 'SimType',
'in' => 'query',
'schema' => ['description' => 'SIM卡类型。'."\n"
."\n"
.'- **nano**:插拔三切卡(消费级)。'."\n"
."\n"
.'- **micro**:插拔双切卡(消费级)。'."\n"
."\n"
.'- **normal**:插拔大卡(消费级)。'."\n"
."\n"
.'- **simplus56**:贴片卡5*6(消费级)。'."\n"
."\n"
.'- **simplus22**:贴片卡2*2(消费级)。'."\n"
."\n"
.'- **industry-normal**:插拔大卡(工业级)。'."\n"
."\n"
.'- **industry-micro**:插拔双切卡(工业级)。'."\n"
."\n"
.'- **industry-nano**:插拔三切卡(工业级)。'."\n"
."\n"
.'- **simplus**:贴片卡5*6(工业级)。'."\n"
."\n"
.'- **industry-simplus22**:贴片卡2*2(工业级)。', 'type' => 'string', 'required' => false, 'example' => 'nano'],
],
[
'name' => 'ExpireTimeEnd',
'in' => 'query',
'schema' => ['description' => '物联网卡的套餐结束时间。'."\n"
."\n"
.'格式为:`yyyy-MM-dd HH:mm:ss`', 'type' => 'string', 'required' => false, 'example' => '2022-05-25 23:59:59'],
],
[
'name' => 'IsAutoRecharge',
'in' => 'query',
'schema' => ['description' => '套餐是否自动续费。'."\n"
."\n"
.'- **true**:是。'."\n"
."\n"
.'- **false**:否。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
[
'name' => 'ExpireTimeStart',
'in' => 'query',
'schema' => ['description' => '物联网卡的套餐开始时间。'."\n"
."\n"
.'格式为:`yyyy-MM-dd HH:mm:ss`', 'type' => 'string', 'required' => false, 'example' => '2022-05-25 23:59:59'],
],
[
'name' => 'OsStatus',
'in' => 'query',
'schema' => ['description' => '物联网卡的具体状态。'."\n"
."\n"
.'- **10**:测试期。'."\n"
."\n"
.'- **20**:静默期。'."\n"
."\n"
.'- **100**:使用中。'."\n"
."\n"
.'- **150**:部分使用中。'."\n"
."\n"
.'- **200**:主动停用。'."\n"
."\n"
.'- **300**:达量停用。'."\n"
."\n"
.'- **400**:信控停用。'."\n"
."\n"
.'- **500**:换绑停用。'."\n"
."\n"
.'- **600**:实名停用。'."\n"
."\n"
.'- **700**:异常停用。'."\n"
."\n"
.'- **40**:已停机。'."\n"
."\n"
.'- **50**:已销户。', 'type' => 'string', 'required' => false, 'example' => '300'],
],
[
'name' => 'NotifyId',
'in' => 'query',
'schema' => ['description' => '自动化规则的通知ID。', 'type' => 'string', 'required' => false, 'example' => '11111'],
],
[
'name' => 'DataLevel',
'in' => 'query',
'schema' => ['description' => '流量包档位。', 'type' => 'string', 'required' => false, 'example' => '30MB'],
],
[
'name' => 'Status',
'in' => 'query',
'schema' => ['description' => '物联网卡的状态。'."\n"
."\n"
.'- **10**:可测试。'."\n"
."\n"
.'- **20**:未使用。'."\n"
."\n"
.'- **30**:使用中。'."\n"
."\n"
.'- **35**:已停用。'."\n"
."\n"
.'- **40**:已停机。'."\n"
."\n"
.'- **50**:已销户。', 'type' => 'string', 'required' => false, 'example' => '35'],
],
[
'name' => 'TagName',
'in' => 'query',
'schema' => ['description' => '标签名称。'."\n", 'type' => 'string', 'required' => false, 'example' => '测试标签'],
],
[
'name' => 'CertifyType',
'in' => 'query',
'schema' => ['description' => '认证方式。'."\n"
."\n"
.'仅支持enterprise:企业认证。', 'type' => 'string', 'required' => false, 'example' => 'enterprise'],
],
[
'name' => 'DirectionalGroupId',
'in' => 'query',
'schema' => ['description' => '定向分组ID。', 'type' => 'string', 'required' => false, 'example' => '22'],
],
[
'name' => 'ApnName',
'in' => 'query',
'schema' => ['description' => 'APN名称。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'cmiot'],
],
[
'name' => 'Imsi',
'in' => 'query',
'schema' => ['description' => '物联网卡的IMSI。', 'type' => 'string', 'required' => false, 'example' => '460081937******'],
],
[
'name' => 'PoolId',
'in' => 'query',
'schema' => ['description' => '池编号。', 'type' => 'string', 'required' => false, 'example' => 'test1'],
],
[
'name' => 'MinFlow',
'in' => 'query',
'schema' => ['description' => '周期用量区间筛选:最小用量(单位MB)。', 'type' => 'string', 'required' => false, 'example' => '20'],
],
[
'name' => 'MaxFlow',
'in' => 'query',
'schema' => ['description' => '周期用量区间筛选:最大用量(单位MB)。', 'type' => 'string', 'required' => false, 'example' => '30'],
],
[
'name' => 'MaxRestFlowPercentage',
'in' => 'query',
'schema' => ['description' => '单卡周期流量剩余比例,仅支持如下三个参数。'."\n"
.'0.1:剩余10%'."\n"
.'0.2:剩余20%'."\n"
.'0.3:剩余30%', 'type' => 'number', 'format' => 'double', 'required' => false, 'example' => '0.2'],
],
[
'name' => 'NetworkType',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['description' => '网络制式:4G,5G。', 'type' => 'string', 'required' => false, 'example' => '4G'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'- true:调用成功。'."\n"
."\n"
.'- false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '返回页面信息。',
'type' => 'object',
'properties' => [
'PageNo' => ['description' => '查询页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '每页显示的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageCount' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
'Total' => ['description' => '符合条件的物联网卡总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '199'],
'List' => [
'description' => '卡列表。',
'type' => 'array',
'items' => [
'description' => '卡列表。',
'type' => 'object',
'properties' => [
'Status' => ['description' => '卡的状态。'."\n"
."\n"
.'- **10**:可测试。'."\n"
."\n"
.'- **20**:未使用。'."\n"
."\n"
.'- **30**:使用中。'."\n"
."\n"
.'- **35**:已停用。'."\n"
."\n"
.'- **40**:已停机。'."\n"
."\n"
.'- **50**:已销户。', 'type' => 'string', 'example' => '35'],
'DataType' => ['description' => '流量类型。'."\n"
."\n"
.'- **singlecard**:单卡通用流量。'."\n"
."\n"
.'- **directionalcard**:单卡定向流量。'."\n"
."\n"
.'- **sameflowcard**:同档位池共享流量。'."\n"
."\n"
.'- **directional_sameflowcard**:同档位池共享定向流量。'."\n"
."\n"
.'- **unityPayPool**:统付池通用流量。'."\n"
."\n"
.'- **GREcard** :统付池定向流量。', 'type' => 'string', 'example' => 'sameflowcard'],
'DirectionalGroupName' => ['description' => '定向分组名称。', 'type' => 'string', 'example' => '测试分组'],
'PeriodRestFlow' => ['description' => '周期剩余流量。', 'type' => 'string', 'example' => '130.00MB'],
'CredentialType' => ['description' => '套餐凭证类型。', 'type' => 'string', 'example' => 'unityPayPool'],
'PeriodAddFlow' => ['description' => '周期累计流量。', 'type' => 'string', 'example' => '0KB'],
'PeriodSmsUse' => ['description' => '周期短信用量。', 'type' => 'string', 'example' => '0'],
'DataLevel' => ['description' => '流量包档位。', 'type' => 'string', 'example' => '30MB'],
'OsStatus' => ['description' => '物联网卡的具体状态。'."\n"
."\n"
.'- **10**:测试期。'."\n"
."\n"
.'- **20**:静默期。'."\n"
."\n"
.'- **100**:使用中。'."\n"
."\n"
.'- **150**:部分使用中。'."\n"
."\n"
.'- **200**:主动停用。'."\n"
."\n"
.'- **300**:达量停用。'."\n"
."\n"
.'- **400**:信控停用。'."\n"
."\n"
.'- **500**:换绑停用。'."\n"
."\n"
.'- **600**:实名停用。'."\n"
."\n"
.'- **700**:异常停用。'."\n"
."\n"
.'- **40**:已停机。'."\n"
."\n"
.'- **50**:已销户。', 'type' => 'string', 'example' => '300'],
'NotifyId' => ['description' => '自动化规则的通知ID。', 'type' => 'string', 'example' => '11111'],
'AliFee' => ['description' => '资费版本。', 'type' => 'string', 'example' => 'ali_2'],
'AliyunOrderId' => ['description' => '物联网卡关联的订单编号。', 'type' => 'string', 'example' => '211519634******'],
'ActiveType' => ['description' => '物联网卡的激活方式。'."\n"
."\n"
.'- **firstdatarecord**:首话单激活。'."\n"
."\n"
.'- **carrierstatuspush**:运营商状态推送激活。'."\n"
."\n"
.'- **silence_expire**:沉默期结束激活。'."\n"
."\n"
.'- **manage**:手动激活。'."\n"
."\n"
.'- **testflowdepleted**:测试期流量超出后激活。', 'type' => 'string', 'example' => 'first_data_record'],
'IsAutoRecharge' => ['description' => '套餐是否自动续费。'."\n"
."\n"
.'- true:是。'."\n"
."\n"
.'- false:否。', 'type' => 'boolean', 'example' => 'true'],
'CredentialInstanceId' => ['description' => '凭证实例ID。', 'type' => 'string', 'example' => '2622***'],
'ExpireTime' => ['description' => '套餐到期时间。', 'type' => 'string', 'example' => '2022-04-30 23:59:59'],
'ApnName' => ['description' => 'APN名称。', 'type' => 'string', 'example' => 'cmiot'],
'ActiveTime' => ['description' => '激活时间。', 'type' => 'string', 'example' => '2021-11-16 16:35:50'],
'Iccid' => ['description' => '物联网卡的ICCID。', 'type' => 'string', 'example' => '89860321******15668'],
'Vendor' => ['description' => '运营商。'."\n"
."\n"
.'- **CMCC**:移动。'."\n"
."\n"
.'- **CUCC**:联通。'."\n"
."\n"
.'- **CTCC**:电信。'."\n"
."\n"
.'- **VNO**:虚拟运营商。', 'type' => 'string', 'example' => 'CMCC'],
'Period' => ['description' => '套餐结算周期。'."\n"
."\n"
.'- **1101**:月度。'."\n"
."\n"
.'- **1103**:季度。'."\n"
."\n"
.'- **1106**:半年度。'."\n"
."\n"
.'- **1112**:年度。', 'type' => 'string', 'example' => '1101'],
'CertifyType' => ['description' => '认证方式。'."\n"
."\n"
.'enterprise:企业认证。', 'type' => 'string', 'example' => 'enterprise'],
'PrivateNetworkSegment' => ['description' => '私网网段(定向卡)。', 'type' => 'string', 'example' => '1.*.3.*'],
'OpenAccountTime' => ['description' => '开户时间。', 'type' => 'string', 'example' => '2021-11-29 16:12:14'],
'SimType' => ['description' => 'SIM卡类型。'."\n"
."\n"
.'- **nano**:插拔三切卡(消费级)。'."\n"
."\n"
.'- **micro**:插拔双切卡(消费级)。'."\n"
."\n"
.'- **normal**:插拔大卡(消费级)。'."\n"
."\n"
.'- **simplus56**:贴片卡5*6(消费级)。'."\n"
."\n"
.'- **simplus22**:贴片卡2*2(消费级)。'."\n"
."\n"
.'- **industry-normal**:插拔大卡(工业级)。'."\n"
."\n"
.'- **industry-micro**:插拔双切卡(工业级)。'."\n"
."\n"
.'- **industry-nano**:插拔三切卡(工业级)。'."\n"
."\n"
.'- **simplus**:贴片卡5*6(工业级)。'."\n"
."\n"
.'- **industry-simplus22**:贴片卡2*2(工业级)。', 'type' => 'string', 'example' => 'nano'],
'VsimInstanceId' => ['description' => '物联网卡的InstanceId值。', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'],
'CredentialNo' => ['description' => '套餐凭证。', 'type' => 'string', 'example' => 'CM-***-*-2-**M'],
'TagList' => [
'description' => '物联网卡的标签。',
'type' => 'array',
'items' => [
'description' => '标签列表。',
'type' => 'object',
'properties' => [
'TagName' => ['description' => '标签名称。', 'type' => 'string', 'example' => '测试标签'],
'Id' => ['description' => '标签ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '24'],
],
],
],
'Imsi' => [
'description' => '物联网卡的IMSI。',
'type' => 'array',
'items' => ['description' => '物联网卡的IMSI。', 'type' => 'string', 'example' => '460081937******'],
],
'Msisdn' => [
'description' => '物联网卡的MSISDN。',
'type' => 'array',
'items' => ['description' => '物联网卡的MSISDN。', 'type' => 'string', 'example' => '1440993******'],
],
'Remark' => ['description' => '备注信息。', 'type' => 'string', 'example' => '备注信息'],
'DirectionalGroupId' => ['description' => '定向分组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '55'],
'NetworkType' => ['description' => '网络制式:4G,5G。', 'type' => 'string', 'example' => '4G'],
'FlowLatestModifiedTime' => ['description' => '用量更新时间', 'type' => 'string', 'example' => '2023-08-15 18:20:11'],
],
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.common.InvalidAliyunPK', 'errorMessage' => 'AliyunPk is invalid.', 'description' => ''],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => 'linkcard.common.BusinessProcessError', 'errorMessage' => 'A business processing exception occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"PageCount\\": 20,\\n \\"Total\\": 199,\\n \\"List\\": [\\n {\\n \\"Status\\": \\"35\\",\\n \\"DataType\\": \\"sameflowcard\\",\\n \\"DirectionalGroupName\\": \\"测试分组\\",\\n \\"PeriodRestFlow\\": \\"130.00MB\\",\\n \\"CredentialType\\": \\"unityPayPool\\",\\n \\"PeriodAddFlow\\": \\"0KB\\",\\n \\"PeriodSmsUse\\": \\"0\\",\\n \\"DataLevel\\": \\"30MB\\",\\n \\"OsStatus\\": \\"300\\",\\n \\"NotifyId\\": \\"11111\\",\\n \\"AliFee\\": \\"ali_2\\",\\n \\"AliyunOrderId\\": \\"211519634******\\",\\n \\"ActiveType\\": \\"first_data_record\\",\\n \\"IsAutoRecharge\\": true,\\n \\"CredentialInstanceId\\": \\"2622***\\",\\n \\"ExpireTime\\": \\"2022-04-30 23:59:59\\",\\n \\"ApnName\\": \\"cmiot\\",\\n \\"ActiveTime\\": \\"2021-11-16 16:35:50\\",\\n \\"Iccid\\": \\"89860321******15668\\",\\n \\"Vendor\\": \\"CMCC\\",\\n \\"Period\\": \\"1101\\",\\n \\"CertifyType\\": \\"enterprise\\",\\n \\"PrivateNetworkSegment\\": \\"1.*.3.*\\",\\n \\"OpenAccountTime\\": \\"2021-11-29 16:12:14\\",\\n \\"SimType\\": \\"nano\\",\\n \\"VsimInstanceId\\": 123456,\\n \\"CredentialNo\\": \\"CM-***-*-2-**M\\",\\n \\"TagList\\": [\\n {\\n \\"TagName\\": \\"测试标签\\",\\n \\"Id\\": 24\\n }\\n ],\\n \\"Imsi\\": [\\n \\"460081937******\\"\\n ],\\n \\"Msisdn\\": [\\n \\"1440993******\\"\\n ],\\n \\"Remark\\": \\"备注信息\\",\\n \\"DirectionalGroupId\\": 55,\\n \\"NetworkType\\": \\"4G\\",\\n \\"FlowLatestModifiedTime\\": \\"2023-08-15 18:20:11\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n InstanceId cannot be empty.\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n InstanceId cannot be empty.\\n \\n 1\\n 10\\n 20\\n 199\\n \\n 35\\n sameflowcard\\n 测试分组\\n 130.00MB\\n unityPayPool\\n 0KB\\n 0\\n 30MB\\n 300\\n 11111\\n ali_2\\n 211519634******\\n first_data_record\\n true\\n 2622***\\n 2022-04-30 23:59:59\\n cmiot\\n 2021-11-16 16:35:50\\n 89860321******15668\\n CMCC\\n 1101\\n enterprise\\n 1.*.3.*\\n 2021-11-29 16:12:14\\n nano\\n 123456\\n CM-***-*-2-**M\\n \\n 测试标签\\n 24\\n \\n 460081937******\\n 1440993******\\n 备注信息\\n 55\\n
\\n \\n","errorExample":""}]',
'title' => '查询卡列表',
'description' => '### 使用说明'."\n"
.'该接口的请求参数您可以在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)查看并获取,或者调用接口[GetCardDetail](~~374328~~)在返回参数中查看并获取(后者更为推荐)。'."\n",
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'changeSet' => [],
],
'ListDirectionalAddress' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页的数量,支持10、15、25、40。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '200', 'minimum' => '1', 'example' => '10'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['description' => '查询页数,需结合PageSize参数使用。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'minimum' => '1', 'example' => '1'],
],
[
'name' => 'GroupId',
'in' => 'query',
'schema' => ['description' => '定向分组ID。'."\n"
."\n"
.'您可调用接口[GetCardDetail](~~374328~~)在返回参数中查看定向分组ID(DirectionalGroupId)。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '5'],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- 200:调用成功。'."\n"
."\n"
.'- 其他:调用失败。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '返回的访问地址。',
'type' => 'object',
'properties' => [
'PageNo' => ['description' => '查询页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '每页的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageCount' => ['description' => '列表总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '9'],
'Total' => ['description' => '列表总数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
'List' => [
'description' => '访问地址。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'Address' => ['description' => '定向访问地址。', 'type' => 'string', 'example' => '*.aliyun.com'],
'AddressType' => ['description' => '地址类型。'."\n"
."\n"
.'- **Ip**:IP地址。'."\n"
."\n"
.'- **Domain**:域名。', 'type' => 'string', 'example' => 'Domain'],
'Source' => ['description' => '地址来源。'."\n"
."\n"
.'- **user_defined**:用户配置。'."\n"
."\n"
.'- **aliyun_defined**:阿里云预配。', 'type' => 'string', 'example' => 'user_defined'],
'GroupId' => ['description' => '定向分组ID。', 'type' => 'string', 'example' => '5'],
'State' => ['description' => '地址状态。'."\n"
."\n"
.'- **100**:新增处理中。'."\n"
."\n"
.'- **200**:删除处理中。'."\n"
."\n"
.'- **300**:新增失败。'."\n"
."\n"
.'- **400**:删除失败。'."\n"
."\n"
.'- **500**:新增成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
],
'description' => '',
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"PageCount\\": 9,\\n \\"Total\\": 90,\\n \\"List\\": [\\n {\\n \\"Address\\": \\"*.aliyun.com\\",\\n \\"AddressType\\": \\"Domain\\",\\n \\"Source\\": \\"user_defined\\",\\n \\"GroupId\\": \\"5\\",\\n \\"State\\": 500\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n InstanceId cannot be empty.\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n InstanceId cannot be empty.\\n \\n 1\\n 10\\n 9\\n 90\\n \\n *.aliyun.com\\n Domain\\n user_defined\\n 5\\n 500\\n
\\n \\n","errorExample":""}]',
'title' => '查询定向分组信息',
'summary' => '查询定向分组的访问地址列表。',
'description' => '## 使用说明'."\n"
.'仅新版定向服务菜单支持定向分组功能,如果您使用的是旧版定向服务菜单,无法使用该接口。更多信息,请参见[定向服务](~~279455~~)。',
'changeSet' => [],
],
'ListDirectionalDetail' => [
'summary' => '查询物联网卡所在的定向分组及访问地址列表。',
'methods' => ['post', 'get'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在物联网SIM服务控制台的卡管理页面,查看ICCID。', 'type' => 'string', 'required' => true, 'example' => '89860321******15668'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['description' => '查询的页数,不能为0。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页的数量,支持10、15、25、40。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'ListDirectionalDetailResponse',
'description' => 'ListDirectionalDetailResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- 200:调用成功。'."\n"
."\n"
.'- 其他:调用失败。错误码详情,请参见[错误码](~~87387~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '返回的分组信息及分组内的访问地址清单。',
'type' => 'object',
'properties' => [
'DirectionalGroupId' => ['description' => '定向分组ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
'DirectionalName' => ['description' => '定向分组名称。', 'type' => 'string', 'example' => '测试分组'],
'PaginationResult' => [
'description' => '定向分组内的访问地址列表。',
'type' => 'object',
'properties' => [
'PageNo' => ['description' => '当前页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '每页的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'Total' => ['description' => '列表总数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
'PageCount' => ['description' => '列表总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '9'],
'List' => [
'description' => '定向地址列表。',
'type' => 'array',
'items' => [
'description' => '定向地址列表。',
'type' => 'object',
'properties' => [
'GroupId' => ['description' => '定向分组ID。', 'type' => 'string', 'example' => '5'],
'Address' => ['description' => '定向访问地址。', 'type' => 'string', 'example' => '*.aliyun.com'],
'Source' => ['description' => '地址来源。'."\n"
."\n"
.'- **user_defined**:用户配置。'."\n"
."\n"
.'- **aliyun_defined**:阿里云预配。', 'type' => 'string', 'example' => 'user_defined'],
'AddressType' => ['description' => '地址类型。'."\n"
."\n"
.'- **Ip**:IP地址。'."\n"
."\n"
.'- **Domain**:域名。', 'type' => 'string', 'example' => 'Domain'],
'State' => ['description' => '地址状态。'."\n"
."\n"
.'- **100**:新增处理中。'."\n"
."\n"
.'- **200**:删除处理中。'."\n"
."\n"
.'- **300**:新增失败。'."\n"
."\n"
.'- **400**:删除失败。'."\n"
."\n"
.'- **500**:新增成功。', 'type' => 'string', 'example' => '500'],
],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.directional.notExist', 'errorMessage' => 'Can not find direction group.', 'description' => ''],
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.CardNotExist', 'errorMessage' => 'The card does not exist.', 'description' => ''],
['errorCode' => 'CardDisabled', 'errorMessage' => 'The SIM card has been permanently disabled.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"DirectionalGroupId\\": 5,\\n \\"DirectionalName\\": \\"测试分组\\",\\n \\"PaginationResult\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"Total\\": 90,\\n \\"PageCount\\": 9,\\n \\"List\\": [\\n {\\n \\"GroupId\\": \\"5\\",\\n \\"Address\\": \\"*.aliyun.com\\",\\n \\"Source\\": \\"user_defined\\",\\n \\"AddressType\\": \\"Domain\\",\\n \\"State\\": \\"500\\"\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n InstanceId cannot be empty.\\n InstanceId cannot be empty.\\n \\n 5\\n 测试分组\\n \\n 1\\n 10\\n 90\\n 9\\n \\n 5\\n *.aliyun.com\\n user_defined\\n Domain\\n 500\\n
\\n \\n \\n","errorExample":""}]',
'title' => '查询卡的定向信息',
'description' => '## 使用说明'."\n"
.'仅新版定向服务菜单支持定向分组,如果您使用的是旧版定向服务菜单,无法使用该接口。更多信息,请参见[定向服务](~~279455~~)。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~30561~~)。',
'changeSet' => [],
],
'ListOrder' => [
'summary' => '查询订单列表。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'OrderId',
'in' => 'query',
'schema' => ['description' => '订单ID。', 'type' => 'string', 'required' => false, 'example' => '21450******0275'],
],
[
'name' => 'StartDate',
'in' => 'query',
'schema' => ['description' => '订单购买的时间区间(开始日期)。'."\n"
."\n"
.'格式:`YYYY-MM-dd`', 'type' => 'string', 'required' => false, 'example' => '2022-04-05'],
],
[
'name' => 'EndDate',
'in' => 'query',
'schema' => ['description' => '订单购买的时间区间(结束日期)。'."\n"
."\n"
.'格式:`YYYY-MM-dd`', 'type' => 'string', 'required' => false, 'example' => '2022-04-05'],
],
[
'name' => 'OrderType',
'in' => 'query',
'schema' => ['description' => '订单类型。'."\n"
."\n"
.'- **NEW**:新购。'."\n"
."\n"
.'- **ADD_FLOW**:扩池。'."\n"
."\n"
.'- **ADD_CARD**:补卡。'."\n"
."\n"
.'- **FUNCTION**:购月功能费。'."\n"
."\n"
.'- **FLOW_PLUS**:购买叠加包。'."\n"
."\n"
.'- **RENEW**:续订套餐。'."\n"
."\n"
.'- **AUTO_RENEW**:自动续订套餐。'."\n", 'type' => 'string', 'required' => false, 'example' => 'NEW'],
],
[
'name' => 'OrderStatus',
'in' => 'query',
'schema' => ['description' => '订单状态。'."\n"
."\n"
.'- **processing**:处理中。'."\n"
."\n"
.'- **failure**:失败。'."\n"
."\n"
.'- **completed**:处理完成。'."\n"
."\n"
.'- **unpaid**:待支付。'."\n"
."\n"
.'- **refunded**:已退款。', 'type' => 'string', 'required' => false, 'example' => 'processing'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['description' => '查询页数,需结合`PageSize`参数使用。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['description' => '每页的数量,支持10、15、25、40。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '10'],
],
[
'name' => 'CredentialNo',
'in' => 'query',
'schema' => ['description' => '套餐凭证。', 'type' => 'string', 'required' => false, 'example' => 'CT-SF-M-2-100M'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['description' => '是否调用成功。'."\n"
."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => [
'description' => '返回信息。',
'type' => 'object',
'properties' => [
'PageNo' => ['description' => '查询页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '每页的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageCount' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'Total' => ['description' => '符合条件的总订单数。', 'type' => 'integer', 'format' => 'int32', 'example' => '48'],
'List' => [
'description' => '订单列表。',
'type' => 'array',
'items' => [
'description' => '订单列表。',
'type' => 'object',
'properties' => [
'BillingCycle' => ['description' => '套餐结算周期。'."\n"
."\n"
.'- **1101**:月度。'."\n"
."\n"
.'- **1103**:季度。'."\n"
."\n"
.'- **1106**:半年度。'."\n"
."\n"
.'- **1112**:年度。', 'type' => 'string', 'example' => '1101'],
'BuyNum' => ['description' => '购买张数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'PoolCapacityUnit' => ['description' => '池容量单位。', 'type' => 'string', 'example' => 'GB'],
'CardPayCount' => ['description' => '支付时间。', 'type' => 'integer', 'format' => 'int32', 'example' => '2022-04-11 16:43:00'],
'CredentialPackage' => ['description' => '套餐凭证。', 'type' => 'string', 'example' => 'AL-UPG-******3_beika4'],
'Vendor' => ['description' => '运营商。'."\n"
."\n"
.'- **CMCC**:移动。'."\n"
."\n"
.'- **CUCC**:联通。'."\n"
."\n"
.'- **CTCC**:电信。'."\n"
."\n"
.'- **VNO**:虚拟运营商。', 'type' => 'string', 'example' => 'CMCC'],
'DataLevel' => ['description' => '流量包档位。', 'type' => 'string', 'example' => '30MB'],
'PayDuration' => ['description' => '购买时长。', 'type' => 'string', 'example' => '12月'],
'AliFee' => ['description' => '资费版本。', 'type' => 'string', 'example' => 'ali_2'],
'OrderStatus' => ['description' => '订单状态。'."\n"
."\n"
.'- **processing**:处理中。'."\n"
."\n"
.'- **failure**:失败。'."\n"
."\n"
.'- **completed**:处理完成。'."\n"
."\n"
.'- **unpaid**:待支付。'."\n"
."\n"
.'- **refunded**:已退款。', 'type' => 'string', 'example' => 'processing'],
'PoolNo' => ['description' => '池编号。', 'type' => 'string', 'example' => 'beika4'],
'FunctionFee' => ['description' => '月功能费份数(统付池专用)。', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
'PayTime' => ['description' => '购买时间。', 'type' => 'string', 'example' => '2022-04-11 16:43:00'],
'FlowType' => ['description' => '流量类型。'."\n"
."\n"
.'- **singlecard**:单卡通用流量。'."\n"
."\n"
.'- **directionalcard**:单卡定向流量。'."\n"
."\n"
.'- **sameflowcard**:同档位池共享流量。'."\n"
."\n"
.'- **directional_sameflowcard**:同档位池共享定向流量。'."\n"
."\n"
.'- **unityPayPool**:统付池通用流量。'."\n"
."\n"
.'- **GREcard**:统付池定向流量。', 'type' => 'string', 'example' => 'singlecard'],
'PoolCapacity' => ['description' => '池容量,单位参见**PoolCapacityUnit**字段。', 'type' => 'string', 'example' => '200'],
'OrderInfo' => ['description' => '订单信息。', 'type' => 'string', 'example' => '123123'],
'OrderType' => ['description' => '订单类型。'."\n"
."\n"
.'- **NEW**:新购。'."\n"
."\n"
.'- **ADD_FLOW**:扩池。'."\n"
."\n"
.'- **ADD_CARD**:补卡。'."\n"
."\n"
.'- **FUNCTION**:购月功能费。'."\n"
."\n"
.'- **FLOW_PLUS**:购买叠加包。'."\n"
."\n"
.'- **RENEW**:续订套餐。'."\n"
."\n"
.'- **AUTO_RENEW**:自动续订套餐。'."\n", 'type' => 'string', 'example' => 'NEW'],
'OrderId' => ['description' => '订单编号。', 'type' => 'string', 'example' => '21450******0275'],
'CredentialNo' => ['description' => '套餐凭证。', 'type' => 'string', 'example' => 'CM-***-*-2-**M'],
'ExpressNoList' => [
'description' => '物流信息。',
'type' => 'array',
'items' => ['description' => '物流单号。', 'type' => 'string', 'example' => '123123123'],
],
'DeliveryInfo' => [
'description' => '收货信息。',
'type' => 'object',
'properties' => [
'ZipCode' => ['description' => '收货信息:邮编。', 'type' => 'string', 'example' => '100000'],
'Address' => ['description' => '收货信息:地址。', 'type' => 'string', 'example' => '收货地址'],
'Mail' => ['description' => '收货信息:邮箱。', 'type' => 'string', 'example' => 'xxx@xxx.com'],
'Receiver' => ['description' => '收货信息:收件人。', 'type' => 'string', 'example' => '收件人'],
'BuyerMessage' => ['description' => '收货信息:收件电话。', 'type' => 'string', 'example' => '收件电话'],
],
],
'OrderDetailUrl' => ['description' => '订单详情链接。', 'type' => 'string', 'example' => 'https://us******60589'],
'ApnName' => ['description' => 'APN名称。', 'type' => 'string', 'example' => 'CMIOTCZHZA.JS'],
'ApnRegion' => ['description' => 'APN地域。', 'type' => 'string', 'example' => 'cn-hangzhou'],
'ResourceQuantity' => ['description' => 'IP购买数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '10000'],
'NetworkType' => ['description' => '网络制式:4G,5G。', 'type' => 'string', 'example' => '4G'],
],
],
],
],
],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => '非法的请求参数。'],
['errorCode' => 'linkcard.common.InvalidAliyunPK', 'errorMessage' => 'AliyunPk is invalid.', 'description' => '阿里云账号无效。'],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
['errorCode' => 'linkcard.common.BusinessProcessError', 'errorMessage' => 'A business processing exception occurred.', 'description' => '业务处理异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": {\\n \\"PageNo\\": 1,\\n \\"PageSize\\": 10,\\n \\"PageCount\\": 5,\\n \\"Total\\": 48,\\n \\"List\\": [\\n {\\n \\"BillingCycle\\": \\"1101\\",\\n \\"BuyNum\\": 100,\\n \\"PoolCapacityUnit\\": \\"GB\\",\\n \\"CardPayCount\\": 0,\\n \\"CredentialPackage\\": \\"AL-UPG-******3_beika4\\",\\n \\"Vendor\\": \\"CMCC\\",\\n \\"DataLevel\\": \\"30MB\\",\\n \\"PayDuration\\": \\"12月\\",\\n \\"AliFee\\": \\"ali_2\\",\\n \\"OrderStatus\\": \\"processing\\",\\n \\"PoolNo\\": \\"beika4\\",\\n \\"FunctionFee\\": 90,\\n \\"PayTime\\": \\"2022-04-11 16:43:00\\",\\n \\"FlowType\\": \\"singlecard\\",\\n \\"PoolCapacity\\": \\"200\\",\\n \\"OrderInfo\\": \\"123123\\",\\n \\"OrderType\\": \\"NEW\\",\\n \\"OrderId\\": \\"21450******0275\\",\\n \\"CredentialNo\\": \\"CM-***-*-2-**M\\",\\n \\"ExpressNoList\\": [\\n \\"123123123\\"\\n ],\\n \\"DeliveryInfo\\": {\\n \\"ZipCode\\": \\"100000\\",\\n \\"Address\\": \\"收货地址\\",\\n \\"Mail\\": \\"xxx@xxx.com\\",\\n \\"Receiver\\": \\"收件人\\",\\n \\"BuyerMessage\\": \\"收件电话\\"\\n },\\n \\"OrderDetailUrl\\": \\"https://us******60589\\",\\n \\"ApnName\\": \\"CMIOTCZHZA.JS\\",\\n \\"ApnRegion\\": \\"cn-hangzhou\\",\\n \\"ResourceQuantity\\": 10000,\\n \\"NetworkType\\": \\"4G\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n \\n 1\\n 10\\n 5\\n 48\\n \\n 1101\\n 100\\n GB\\n AL-UPG-******3_beika4\\n CMCC\\n 30MB\\n 12月\\n ali_2\\n processing\\n beika4\\n 90\\n 2022-04-11 16:43:00\\n singlecard\\n 200\\n 123123\\n NEW\\n 21450******0275\\n CM-***-*-2-**M\\n 123123123\\n \\n 100000\\n 收货地址\\n xxx@xxx.com\\n 收件人\\n 收件电话\\n \\n https://us******60589\\n
\\n \\n","errorExample":""}]',
'title' => '查询订单列表',
'description' => '## 使用限制'."\n"
."\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'changeSet' => [],
],
'RebindResumeSingleCard' => [
'summary' => '将状态为“换绑停用”的单卡操作为“换绑复用”。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'OptMsisdns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '是否对子卡进行操作,填入子卡的MSISDN。'."\n"
."\n"
.'- 普通单网卡无需传入此参数。'."\n"
.'- 虚拟运营商:'."\n"
.' - 如果传入该参数,则对指定的子卡进行操作。'."\n"
.' - 如果不传入该参数,则对所有子卡进行操作。',
'type' => 'array',
'items' => ['description' => '子卡的MSISDN。', 'type' => 'string', 'required' => false, 'example' => '141******1111'],
'required' => false,
'example' => ' ["1112******826","1112******827"] ',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '执行结果。'."\n"
."\n"
.'- **true**:执行成功。'."\n"
."\n"
.'- **false**:执行失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。'."\n", 'type' => 'string', 'example' => '系统异常'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'Iccid cannot be empty. '],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => '卡号不能为空。'],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => '卡不存在或已销户'],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"Iccid cannot be empty.\\\\t\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n","errorExample":""}]',
'title' => '卡的换绑复用',
'description' => '## 使用说明'."\n"
."\n\n"
.'物联网卡与设备是一一对应关系,在物联网卡首次插入设备通电使用产生流量时,就与设备进行了绑定。如果将卡更换至其他设备中使用,将导致卡被锁定,用户可以使用此接口进行解卡。'."\n"
."\n",
'requestParamsDescription' => ' 调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'linkcard:RebindResumeSingleCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'Renew' => [
'summary' => '卡的套餐续订和叠加包订购,仅适用于单卡套餐和同档位池套餐(统付池套餐请通过控制台进行扩池和购功能费)。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'ApiProduct',
'in' => 'formData',
'schema' => ['description' => '接口Code。', 'type' => 'string', 'required' => false, 'example' => 'linkcard'],
],
[
'name' => 'ApiRevision',
'in' => 'formData',
'schema' => ['description' => '接口版本。', 'type' => 'string', 'required' => false, 'example' => '2021-05-20'],
],
[
'name' => 'Iccid',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在物联网SIM服务控制台的卡管理页面,查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'RechargeType',
'in' => 'query',
'schema' => ['description' => '充值类型。'."\n"
."\n"
.'- STANDARD:续订套餐。'."\n"
."\n"
.'- OVERLAY :订购叠加包。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'STANDARD'],
],
[
'name' => 'SerialNo',
'in' => 'query',
'schema' => ['description' => '自定义的订单编号,编号需唯一且保持幂等性。'."\n"
."\n"
.'如果您的充值,涉及自有平台的订单管理,如给下游客户充值等,您可填入自有平台已生成的外部订单编号,该接口调用成功后,会生成一个订单编号(OrderNo)。该参数可以方便您将生成的订单编号与外部订单号关联起来。如果非此场景,你可填入任意正整数,例如0。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '12345678'],
],
[
'name' => 'OfferCode',
'in' => 'query',
'schema' => ['description' => '充值类型为订购叠加包时需填写。'."\n"
."\n"
.'具体Code请咨询技术对接人员。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'COM***0203'],
],
[
'name' => 'BuyNum',
'in' => 'query',
'schema' => ['description' => '订购份数。根据物联网卡本身的套餐类型选择订购份数。'."\n"
.'- 续订月套餐:支持1、2、3、6、9、12。'."\n"
."\n"
.'- 续订年套餐:支持1、2、3。'."\n"
."\n"
.'- 订购叠加包:支持1、2、3。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '12'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => '系统异常'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Data' => [
'description' => '返回的订单编号数据。',
'type' => 'object',
'properties' => [
'OrderNo' => ['description' => '接口调用成功后生成的订单编号。', 'type' => 'string', 'example' => '21450******0275'],
'SerialNo' => ['description' => '自定义的订单编号(SerialNo)。', 'type' => 'string', 'example' => '12345678'],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => ''],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"OrderNo\\": \\"21450******0275\\",\\n \\"SerialNo\\": \\"12345678\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n 200\\n true\\n \\n 21450******0275\\n 12345678\\n \\n","errorExample":""}]',
'title' => '充值',
'description' => '## 使用限制'."\n"
."\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'changeSet' => [],
],
'ResumeSingleCard' => [
'summary' => '将状态为“主动停用”、“大量停用”的单卡操作为“复用”。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'OptMsisdns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '是否对子卡进行操作,填入子卡的MSISDN。'."\n"
."\n"
.'- 普通单网卡无需传入此参数。'."\n"
.'- 虚拟运营商:'."\n"
.' - 如果传入该参数,则对指定的子卡进行操作。'."\n"
.' - 如果不传入该参数,则对所有子卡进行操作。',
'type' => 'array',
'items' => ['description' => '子卡的MSISDN。', 'type' => 'string', 'required' => false, 'example' => '141******1111'],
'required' => false,
'example' => '["111******6826","11*******6827"]',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '执行结果。'."\n"
."\n"
.'- **true**:执行成功。'."\n"
."\n"
.'- **false**:执行失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => '系统异常'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty. '],
'Code' => ['description' => '接口返回码:'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\\\t\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n","errorExample":""}]',
'title' => '卡的主动复用',
'description' => '## 限制说明'."\n"
."\n\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。'."\n",
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
],
'SendMessage' => [
'summary' => '平台短信下发。',
'methods' => ['post', 'get'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskName',
'in' => 'formData',
'schema' => ['description' => '自定义任务名称,不能包含特殊字符,最长40个字符。', 'type' => 'string', 'required' => true, 'example' => '任务0912'],
],
[
'name' => 'MessageTemplateId',
'in' => 'formData',
'schema' => ['title' => '模版ID', 'description' => '短信模版编号,可以在控制台查看。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '14'],
],
[
'name' => 'MessageVariableParam',
'in' => 'formData',
'schema' => ['title' => '请求参数', 'description' => '动态参数短信,替换的参数,格式{1}{2}', 'type' => 'string', 'required' => false, 'example' => '{参数1}{参数2}{参数3}'],
],
[
'name' => 'MessageSendTime',
'in' => 'formData',
'schema' => ['title' => '单位:s', 'description' => '时间戳,单位:秒 。'."\n"
."\n"
.'当时间早于当前时间则立即发送,晚于当前时间为定时发送。'."\n"
."\n"
.'最晚不能超过一个月。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1694401634'],
],
[
'name' => 'Msisdns',
'in' => 'formData',
'style' => 'json',
'schema' => [
'description' => '发送短信的目标MSISDN列表',
'type' => 'array',
'items' => ['description' => '发送短信的目标MSISDN', 'type' => 'string', 'required' => false, 'example' => '1411234123412'],
'required' => false,
],
],
[
'name' => 'ApiProduct',
'in' => 'formData',
'schema' => ['description' => 'Linkcard', 'type' => 'string', 'required' => false, 'example' => 'Linkcard'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'SendMessageResponse',
'description' => 'SendMessageResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
."\n"
.'true:调用成功。 false:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'200:调用成功。'."\n"
."\n"
.'其他:调用失败。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => ' '."\n"
.'调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'DynamicCode' => ['description' => '错误码', 'type' => 'string', 'example' => 'InvokeError'],
'DynamicMessage' => ['description' => '错误码信息', 'type' => 'string', 'example' => '入参不能为空,或不能包含空格'],
'Data' => ['description' => '地址是否添加成功。'."\n"
."\n"
.'true:添加成功。'."\n"
."\n"
.'false:添加失败。', 'type' => 'integer', 'format' => 'int64', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.common.InvalidAliyunPK', 'errorMessage' => 'AliyunPk is invalid.', 'description' => '阿里云账号无效。'],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => '非法的请求参数。'],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => '%s..'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"DynamicCode\\": \\"InvokeError\\",\\n \\"DynamicMessage\\": \\"入参不能为空,或不能包含空格\\",\\n \\"Data\\": 0\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n InstanceId cannot be empty.\\n InstanceId cannot be empty.\\n","errorExample":""}]',
'title' => 'SendMessage',
'changeSet' => [],
],
'SetCardStopRule' => [
'summary' => '设置卡的达量停用规则,仅支持同档位池套餐和统付池套餐。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'FlowLimit',
'in' => 'query',
'schema' => ['description' => '达量停用的数值,仅支持正整数,单位:MB。'."\n"
."\n"
.'当月流量达到此数值时将自动停用,可主动复用。'."\n"
."\n\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '100'],
],
[
'name' => 'AutoRestore',
'in' => 'query',
'schema' => ['description' => '达量停用后,次月是否自动复用。'."\n"
."\n"
.'- true(默认值):次月自动复用。'."\n"
."\n"
.'- false:次月不自动复用。', 'type' => 'boolean', 'required' => true, 'docRequired' => true, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '执行结果。'."\n"
."\n"
.'- **true**:执行成功。'."\n"
."\n"
.'- **false**:执行失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => '系统异常'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.RuleMaxValueLimit', 'errorMessage' => 'The maximum value of Rule must be less than 9007199254740991.', 'description' => '达量停用策略数值,必须小于9007199254740991。'],
['errorCode' => 'linkcard.check.RuleMustBePositiveInteger', 'errorMessage' => 'The valid values of Rule are positive integers and zero.', 'description' => '达量停用策略数值,仅支持正整数和0。'],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => '%s..', 'errorMessage' => '%s..', 'description' => '%s..'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n","errorExample":""}]',
'title' => '设置卡的达量停用规则',
'description' => '## 使用限制'."\n"
."\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'changeSet' => [],
],
'StopSingleCard' => [
'summary' => '将状态为“使用中”的单卡进行自主停用。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的卡管理页面,查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'OptMsisdns',
'in' => 'query',
'style' => 'json',
'schema' => [
'description' => '是否对子卡进行操作,填入子卡的MSISDN。'."\n"
."\n"
.'- 普通单网卡无需传入此参数。'."\n"
.'- 虚拟运营商:'."\n"
.' - 如果传入该参数,则对指定的子卡进行操作。'."\n"
.' - 如果不传入该参数,则对所有子卡进行操作。',
'type' => 'array',
'items' => ['description' => '子卡的MSISDN。', 'type' => 'string', 'required' => false, 'example' => '141******1111'],
'required' => false,
'example' => '["1112******826","1112******827"] ',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '执行结果。'."\n"
."\n"
.'- **true**:执行成功。'."\n"
."\n"
.'- **false**:执行失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。'."\n", 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => '系统异常'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty. '],
'Code' => ['description' => '接口返回码:'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => ''],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => ''],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => ''],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\\\t\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n","errorExample":""}]',
'title' => '卡的主动停用',
'description' => '## 限制说明'."\n"
."\n\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
],
'UpdateAutoRechargeSwitch' => [
'summary' => '该接口用于开启或关闭卡的自动续费功能,仅适用于单卡套餐和同档位池套餐。',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在[物联网SIM服务控制台](https://dyiotnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.6a072d25p4pUg8)的卡管理页面查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
[
'name' => 'Open',
'in' => 'query',
'schema' => ['description' => '自动续费开关。'."\n"
."\n"
.'- **true**:开启自动续费。'."\n"
."\n"
.'- **false**:关闭自动续费。', 'type' => 'boolean', 'required' => true, 'docRequired' => true, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Data' => ['description' => '执行结果。'."\n"
."\n"
.'- **true**:执行成功。'."\n"
."\n"
.'- **false**:执行失败。', 'type' => 'boolean', 'example' => 'true'],
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => '系统异常'],
'Success' => ['description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- **200**:表示成功。'."\n"
.'- 其它:表示错误码。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => '卡不存在或已销户'],
],
403 => [
['errorCode' => '%s.', 'errorMessage' => '%s.', 'description' => '%s.'],
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => '没有RAM权限。'],
],
500 => [
['errorCode' => 'linkcard.system.RPCInvokeError', 'errorMessage' => 'An RPC invoking error occurred', 'description' => 'RPC远程请求错误'],
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => '系统内部异常'],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"ErrorMessage\\": \\"系统异常\\",\\n \\"Success\\": true,\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Code\\": \\"200\\"\\n}","errorExample":""},{"type":"xml","example":"\\n true\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n","errorExample":""}]',
'title' => 'UpdateAutoRechargeSwitch',
'description' => '## 使用限制'."\n"
."\n"
.'单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为20。'."\n"
."\n"
.'> RAM用户共享阿里云账号配额。',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~375336~~)。',
'changeSet' => [],
],
'VerifyIotCard' => [
'summary' => '查询物联网卡是否为定向卡。',
'methods' => ['post', 'get'],
'schemes' => ['https', 'http'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Iccid',
'in' => 'query',
'schema' => ['description' => '物联网卡的ICCID。'."\n"
."\n"
.'您可在物联网卡上查看ICCID,或者在物联网SIM服务控制台的卡管理页面,查看ICCID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '89860321******15668'],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'VerifyIotCardResponse',
'description' => 'VerifyIotCardResponse',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID,阿里云为该请求生成的标识符。', 'type' => 'string', 'example' => 'E4F94B97-1D64-4080-BFD2-67461667AA43'],
'Success' => ['title' => '必填', 'description' => '是否调用成功。'."\n"
.'- **true**:调用成功。'."\n"
.'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
'Code' => ['description' => '接口返回码。'."\n"
."\n"
.'- 200:调用成功。'."\n"
."\n"
.'- 其他:调用失败。错误码详情,请参见[错误码](~~375339~~)。', 'type' => 'string', 'example' => '200'],
'ErrorMessage' => ['description' => '调用失败时,返回的错误信息。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'LocalizedMessage' => ['description' => '根据当前所在地展示对应语言的错误提示。', 'type' => 'string', 'example' => 'InstanceId cannot be empty.'],
'Data' => ['description' => '是否为定向卡。'."\n"
."\n"
.'- **true**:是定向卡。'."\n"
."\n"
.'- **false**:不是定向卡。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'linkcard.check.IccidCanNotEmpty', 'errorMessage' => 'Iccid cannot be empty.', 'description' => ''],
['errorCode' => 'linkcard.system.IllegalRequest', 'errorMessage' => 'The request parameter is invalid.', 'description' => ''],
['errorCode' => 'linkcard.common.CardDestroy', 'errorMessage' => 'The card do not exist or destroy.', 'description' => ''],
['errorCode' => 'CardDisabled', 'errorMessage' => 'The SIM card has been permanently disabled.', 'description' => ''],
['errorCode' => 'linkcard.common.CardNotExist', 'errorMessage' => 'The card does not exist.', 'description' => ''],
['errorCode' => 'IllegalParameter', 'errorMessage' => 'The request parameter %s is invalid.', 'description' => ''],
],
403 => [
['errorCode' => 'linkcard.common.RamActionPermissionDeny', 'errorMessage' => 'You do not have the RAM permission.', 'description' => ''],
['errorCode' => 'linkcard.common.RamActionPermissionDeny ', 'errorMessage' => 'You do not have the RAM permission. ', 'description' => ''],
],
500 => [
['errorCode' => 'Service.InternalError', 'errorMessage' => 'An internal error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"E4F94B97-1D64-4080-BFD2-67461667AA43\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"200\\",\\n \\"ErrorMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"LocalizedMessage\\": \\"InstanceId cannot be empty.\\",\\n \\"Data\\": true\\n}","errorExample":""},{"type":"xml","example":"\\n E4F94B97-1D64-4080-BFD2-67461667AA43\\n true\\n 200\\n InstanceId cannot be empty.\\n InstanceId cannot be empty.\\n true\\n","errorExample":""}]',
'title' => '定向卡查询',
'requestParamsDescription' => '调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见[公共参数文档](~~30561~~)。',
'changeSet' => [],
],
],
'endpoints' => [
['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-2', 'regionName' => '澳大利亚(悉尼)已关停', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-north-2-gov-1', 'regionName' => '北京政务云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'linkcard.aliyuncs.com', 'endpoint' => 'linkcard.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => '%s.', 'message' => '%s.', 'http_code' => 403, 'description' => '%s.'],
['code' => '%s..', 'message' => '%s..', 'http_code' => 500, 'description' => '%s..'],
['code' => 'BBC.FAIL', 'message' => 'A business processing exception occurred.', 'http_code' => 400, 'description' => '业务处理异常'],
['code' => 'CardDisabled', 'message' => 'The SIM card has been permanently disabled.', 'http_code' => 400, 'description' => '卡已经被销户'],
['code' => 'IdempotentParameterMismatch', 'message' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'http_code' => 400, 'description' => '请使用不同的客户端令牌'],
['code' => 'IllegalParameter', 'message' => 'The request parameter %s is invalid.', 'http_code' => 400, 'description' => '请求参数%s非法.'],
['code' => 'linkcard.cha.PolicyAlreadyBound', 'message' => 'Cha policy has already been bound', 'http_code' => 400, 'description' => '组策略已经绑定到其他分组'],
['code' => 'linkcard.cha.ResourceNotExist', 'message' => 'Cha resource does not exist.', 'http_code' => 404, 'description' => '找不到指定的资源。'],
['code' => 'linkcard.check.DataLevelCanNotEmpty', 'message' => 'Data level cannot be empty.', 'http_code' => 400, 'description' => '充值类型为叠加包时,流量档位不能为空。'],
['code' => 'linkcard.check.DataTypeCanNotEmpty', 'message' => 'Data type cannot be empty.', 'http_code' => 400, 'description' => '流量类型不能为空'],
['code' => 'linkcard.check.ForceActivationSameFlowCard', 'message' => 'Only cards in the same flow support forced activation.', 'http_code' => 400, 'description' => '强制激活仅支持同档位的卡。'],
['code' => 'linkcard.check.IccidCanNotEmpty', 'message' => 'Iccid cannot be empty.', 'http_code' => 400, 'description' => '卡号不能为空。'],
['code' => 'linkcard.check.InstanceIdCanNotEmpty', 'message' => 'InstanceId cannot be empty.', 'http_code' => 400, 'description' => '卡实例ID不能为空。'],
['code' => 'linkcard.check.NonCard', 'message' => 'The number of cards triggered by the condition is zero.', 'http_code' => 400, 'description' => '筛选的卡数量为零'],
['code' => 'linkcard.check.OnlyUnusedCanForceActivation', 'message' => 'Only unused cards support forced activation.', 'http_code' => 400, 'description' => '仅支持可测试和未使用状态的卡强制激活。'],
['code' => 'linkcard.check.OssFileFormatError', 'message' => 'The file format is invalid.', 'http_code' => 400, 'description' => '文件格式错误。'],
['code' => 'linkcard.check.OverCardCount', 'message' => 'The number of cards triggered by the condition exceeds the limit.', 'http_code' => 400, 'description' => '筛选的卡数量超限,最多500000张'],
['code' => 'linkcard.check.OverExportCount', 'message' => 'The number of cards owned by the user exceeds the limit.', 'http_code' => 400, 'description' => '导出数量超限。'],
['code' => 'linkcard.check.OverExportCount', 'message' => 'OverExportCount', 'http_code' => 400, 'description' => '最多支持导出数量最多500000张'],
['code' => 'linkcard.check.OverRuleCount', 'message' => 'The number of rules owned by the user exceeds the limit.', 'http_code' => 400, 'description' => '规则超限。'],
['code' => 'linkcard.check.OverThreshold', 'message' => 'The number of Trigger Condition Usage setting exceeds the limit.', 'http_code' => 400, 'description' => '触发条件的用量设置超限。'],
['code' => 'linkcard.check.RuleMaxValueLimit', 'message' => 'The maximum value of Rule must be less than 9007199254740991.', 'http_code' => 400, 'description' => '达量停用策略数值,必须小于9007199254740991。'],
['code' => 'linkcard.check.RuleMustBePositiveInteger', 'message' => 'The valid values of Rule are positive integers and zero.', 'http_code' => 400, 'description' => '达量停用策略数值,仅支持正整数和0。'],
['code' => 'linkcard.check.SerialNoCanNotEmpty', 'message' => 'Serial Number cannot be empty.', 'http_code' => 400, 'description' => '唯一序列号不能为空'],
['code' => 'linkcard.check.SerialNoNotExist', 'message' => 'Serial Number not exist.', 'http_code' => 400, 'description' => '唯一序列号serialNo不存在'],
['code' => 'linkcard.check.StartTimeLessEndTime', 'message' => 'The StartTime must be earlier than the EndTime.', 'http_code' => 400, 'description' => '起始时间必须小于结束时间'],
['code' => 'linkcard.check.TagIdCanNotEmpty', 'message' => 'The TagId must not be empty.', 'http_code' => 400, 'description' => '标签ID不能为空'],
['code' => 'linkcard.check.TimeFormatError', 'message' => 'Time format error.', 'http_code' => 400, 'description' => '传参时间格式错误。'],
['code' => 'linkcard.check.UploadFileBeyondLimit', 'message' => 'The uploaded file exceeds the limit.', 'http_code' => 400, 'description' => '上传文件超出限制。'],
['code' => 'linkcard.check.UploadFileDuplicateCard', 'message' => 'Iccid is duplicated.', 'http_code' => 400, 'description' => '上传文件内有重复卡号。'],
['code' => 'linkcard.check.UploadFileInvalidCard', 'message' => 'Iccid is invalid.', 'http_code' => 400, 'description' => '上传文件内有卡号不合法。'],
['code' => 'linkcard.common.Ambiguous', 'message' => 'The input value is ambiguous.', 'http_code' => 400, 'description' => '输入值存在歧义'],
['code' => 'linkcard.common.BusinessProcessError', 'message' => 'A business processing exception occurred.', 'http_code' => 500, 'description' => '业务处理异常'],
['code' => 'linkcard.common.CardDestroy', 'message' => 'The card do not exist or destroy.', 'http_code' => 400, 'description' => '卡不存在或已销户'],
['code' => 'linkcard.common.CardNotExist', 'message' => 'The card does not exist.', 'http_code' => 400, 'description' => '卡号有误,卡不存在'],
['code' => 'linkcard.common.CredentialInstanceNotExist', 'message' => 'The credential instance does not exist.', 'http_code' => 400, 'description' => '凭证实例不存在'],
['code' => 'linkcard.common.CredentialNoNotExist', 'message' => 'The credentialNo does not exist', 'http_code' => 400, 'description' => '凭证号不存在'],
['code' => 'linkcard.common.IccidFormatError', 'message' => 'Iccid format error.', 'http_code' => 400, 'description' => 'iccid格式错误'],
['code' => 'linkcard.common.IccidNotExist', 'message' => 'IccId does not exist.', 'http_code' => 400, 'description' => 'iccid不存在'],
['code' => 'linkcard.common.InvalidAliyunPK', 'message' => 'AliyunPk is invalid.', 'http_code' => 400, 'description' => '阿里云账号无效。'],
['code' => 'linkcard.common.InvalidCallerTypeError', 'message' => 'This access mode is not supported.', 'http_code' => 400, 'description' => '不支持的访问方式。'],
['code' => 'linkcard.common.RamActionPermissionDeny', 'message' => 'You do not have the RAM permission.', 'http_code' => 403, 'description' => '没有RAM权限。'],
['code' => 'linkcard.common.Retry', 'message' => 'Please try again later', 'http_code' => 400, 'description' => '请稍后重试'],
['code' => 'linkcard.common.SignVerificationFailed', 'message' => 'Sign verification failed.', 'http_code' => 400, 'description' => '验签失败'],
['code' => 'linkcard.common.VnoCardNotSupported', 'message' => 'This function does not support vno card.', 'http_code' => 400, 'description' => '该功能暂不支云鹰卡'],
['code' => 'linkcard.directional.notExist', 'message' => 'Can not find direction group.', 'http_code' => 400, 'description' => '找不到定向网络组'],
['code' => 'linkcard.service.forbidden', 'message' => 'Please cancel agree write to RocketMq before delete', 'http_code' => 403, 'description' => '请在删除前取消写入RocketMq的权限'],
['code' => 'linkcard.system.BatchOperationFailed', 'message' => 'An internal error occurred. Try again later.', 'http_code' => 500, 'description' => '批量操作异常。'],
['code' => 'linkcard.system.CarrierNotSupport', 'message' => 'The carrier of the card does not support.', 'http_code' => 400, 'description' => '卡归属的运营商不支持此功能'],
['code' => 'linkcard.system.IllegalRequest', 'message' => 'The request parameter is invalid.', 'http_code' => 400, 'description' => '非法的请求参数。'],
['code' => 'linkcard.system.RPCInvokeError', 'message' => 'An RPC invoking error occurred', 'http_code' => 500, 'description' => 'RPC远程请求错误'],
['code' => 'RamActionPermissionDeny', 'message' => 'You do not have the RAM permission.', 'http_code' => 403, 'description' => '没有RAM权限。'],
['code' => 'Service.InternalError', 'message' => 'An internal error occurred.', 'http_code' => 500, 'description' => '系统内部异常'],
['code' => 'YX.BusinessError', 'message' => 'A business processing exception occurred.', 'http_code' => 500, 'description' => '业务处理异常'],
['code' => 'YX.RpcError', 'message' => 'An RPC invoking error occurred.', 'http_code' => 500, 'description' => '服务请求出错'],
['code' => 'YX.SystemInvokeError', 'message' => '%s.', 'http_code' => 500, 'description' => '%s.'],
],
'changeSet' => [
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'AddCardToDirectionalGroup'],
['description' => '错误码发生变更', 'api' => 'BatchAddDirectionalAddress'],
['description' => '错误码发生变更', 'api' => 'DeleteDirectionalGroup'],
['description' => '错误码发生变更', 'api' => 'ForceActivation'],
],
'createdAt' => '2025-11-27T07:56:50.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ListCardInfo'],
['description' => '响应参数发生变更', 'api' => 'ListOrder'],
],
'createdAt' => '2023-08-03T02:46:41.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ForceActivation'],
],
'createdAt' => '2023-06-29T06:52:29.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'AddTagsToCard'],
],
'createdAt' => '2023-06-29T05:50:58.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetCredentialPoolStatistics'],
],
'createdAt' => '2023-06-28T06:33:04.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'AddDirectionalAddress'],
],
'createdAt' => '2023-05-15T08:05:05.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'ListOrder'],
],
'createdAt' => '2023-04-12T04:59:49.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'GetCardDetail'],
['description' => '错误码发生变更、响应参数发生变更', 'api' => 'GetCardFlowInfo'],
],
'createdAt' => '2023-03-24T08:24:58.000Z',
'description' => '',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetRealNameStatus'],
],
'createdAt' => '2023-03-24T08:24:17.000Z',
'description' => '',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ListDirectionalDetail'],
],
'createdAt' => '2023-03-24T08:20:41.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ListDirectionalAddress'],
],
'createdAt' => '2023-01-09T08:11:33.000Z',
'description' => '定向组中地址列表增加限制条件',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'GetCardDetail'],
],
'createdAt' => '2022-12-08T06:04:54.000Z',
'description' => '卡详情增加销户提示错误码',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'Renew'],
],
'createdAt' => '2022-11-07T06:20:21.000Z',
'description' => '充值接口增加错误码',
],
[
'apis' => [
['description' => '错误码发生变更', 'api' => 'ForceActivation'],
['description' => '错误码发生变更', 'api' => 'ListDirectionalDetail'],
['description' => '错误码发生变更、响应参数发生变更', 'api' => 'ListOrder'],
['description' => '错误码发生变更、请求参数发生变更', 'api' => 'RebindResumeSingleCard'],
['description' => '错误码发生变更、请求参数发生变更', 'api' => 'ResumeSingleCard'],
['description' => '错误码发生变更、请求参数发生变更', 'api' => 'StopSingleCard'],
['description' => '错误码发生变更', 'api' => 'UpdateAutoRechargeSwitch'],
],
'createdAt' => '2022-10-28T11:23:46.000Z',
'description' => '变更对外开放接口的格式',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'ListCardInfo'],
],
'createdAt' => '2022-09-29T01:48:49.000Z',
'description' => '八月份迭代上线',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'AddDirectionalGroup'],
['description' => 'OpenAPI 下线', 'api' => 'BatchAddDirectionalAddress'],
['description' => 'OpenAPI 下线', 'api' => 'ListDirectionalDetail'],
],
'createdAt' => '2022-08-09T12:00:42.000Z',
'description' => '定向网相关的api发布',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'GetMqConfig'],
['description' => 'OpenAPI 下线', 'api' => 'ListMqService'],
['description' => 'OpenAPI 下线', 'api' => 'UpdateMqConfig'],
],
'createdAt' => '2022-06-16T08:05:03.000Z',
'description' => 'MQ业务新增接口',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'Renew'],
],
'createdAt' => '2022-04-20T06:14:10.000Z',
'description' => '变更充值接口offerCode参数文档非必填',
],
[
'apis' => [
['description' => 'OpenAPI 下线', 'api' => 'Renew'],
],
'createdAt' => '2022-04-19T03:32:17.000Z',
'description' => '增加充值接口',
],
[
'apis' => [
['description' => '响应参数发生变更', 'api' => 'GetCardDetail'],
],
'createdAt' => '2022-01-20T06:00:57.000Z',
'description' => '发布接口,向上兼容, 开放平台SDK在本次迭代发布后才会上传',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAutoRechargeSwitch'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddDirectionalGroup'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCardLatestFlow'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RebindResumeSingleCard'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddDirectionalAddress'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ResumeSingleCard'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDirectionalGroup'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCardRealStatus'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SetCardStopRule'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddDirectionalCard'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddTagsToCard'],
['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCardFlowInfo'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCardInfo'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Renew'],
['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDirectionalAddress'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopSingleCard'],
['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRealNameStatus'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListOrder'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSimCardStateDistribution'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ForceActivation'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDirectionalDetail'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCardDetail'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCardStatusStatistics'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VerifyIotCard'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddCardToDirectionalGroup'],
['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCredentialPoolStatistics'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDirectionalAddress'],
['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BatchAddDirectionalAddress'],
],
],
'ram' => [
'productCode' => 'Dyiot',
'productName' => '物联网无线连接服务',
'ramCodes' => ['linkcard', 'dyiot'],
'ramLevel' => '操作级',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'GetCardDetail',
'description' => 'GetCardDetail',
'operationType' => '',
'ramAction' => [
'action' => 'linkcard:GetCardDetail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetCardLatestFlow',
'description' => 'GetCardLatestFlow',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:GetCardLatestFlow',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => 'CardManage', 'arn' => 'acs:linkcard::{#accountId}:cardmanage/{#cardmanageId}'],
],
],
],
[
'apiName' => 'ForceActivation',
'description' => '卡的强制激活',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkcard:ForceActivation',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'SendMessage',
'description' => 'SendMessage',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkcard:SendMessage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'RebindResumeSingleCard',
'description' => '卡的换绑复用',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkcard:RebindResumeSingleCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListDirectionalDetail',
'description' => '查询卡的定向信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:ListDirectionalDetail',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ResumeSingleCard',
'description' => 'ResumeSingleCard',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkcard:ResumeSingleCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'VerifyIotCard',
'description' => '定向卡查询',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:VerifyIotCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListDirectionalAddress',
'description' => '查询定向分组信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:ListDirectionalAddress',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteDirectionalGroup',
'description' => '删除定向分组',
'operationType' => '',
'ramAction' => [
'action' => 'linkcard:DeleteDirectionalGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteDirectionalAddress',
'description' => '定向分组删除目标地址',
'operationType' => '',
'ramAction' => [
'action' => 'linkcard:DeleteDirectionalAddress',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'BatchAddDirectionalAddress',
'description' => '定向地址添加',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkcard:BatchAddDirectionalAddress',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'StopSingleCard',
'description' => '卡的主动停用',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkcard:StopSingleCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'AddDirectionalAddress',
'description' => '定向分组新增目标地址',
'operationType' => '',
'ramAction' => [
'action' => 'linkcard:AddDirectionalAddress',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'Renew',
'description' => '充值',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkcard:Renew',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetCardStatusStatistics',
'description' => '概览页风险告警',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:GetCardStatusStatistics',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetCredentialPoolStatistics',
'description' => 'GetCredentialPoolStatistics',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:GetCredentialPoolStatistics',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetCardRealStatus',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:GetCardRealStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'AddTagsToCard',
'description' => '物联网卡添加标签',
'operationType' => '',
'ramAction' => [
'action' => 'linkcard:AddTagsToCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetSimCardStateDistribution',
'description' => '获取卡状态分布',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:GetSimCardStateDistribution',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'SetCardStopRule',
'description' => '设置卡的达量停用规则',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkcard:SetCardStopRule',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateAutoRechargeSwitch',
'description' => 'UpdateAutoRechargeSwitch',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkcard:UpdateAutoRechargeSwitch',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'AddCardToDirectionalGroup',
'description' => '定向分组添加卡片',
'operationType' => '',
'ramAction' => [
'action' => 'linkcard:AddCardToDirectionalGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => 'DirectionalManage', 'arn' => 'acs:linkcard:*:{#accountId}:directionalmanage/{#DirectionalManageId}'],
],
],
],
[
'apiName' => 'GetRealNameStatus',
'description' => 'GetRealNameStatus',
'operationType' => '',
'ramAction' => [
'action' => 'linkcard:GetRealNameStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'AddDirectionalCard',
'description' => '定向分组导卡',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkcard:AddDirectionalCard',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'AddDirectionalGroup',
'description' => '创建定向分组',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkcard:AddDirectionalGroup',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => 'DirectionalManage', 'arn' => 'acs:linkcard::{#accountId}:directionalmanage/*'],
],
],
],
[
'apiName' => 'GetCardFlowInfo',
'description' => '卡流量查询',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkcard:GetCardFlowInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Dyiot', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'CardManage', 'arn' => 'acs:linkcard::{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'CardManage', 'arn' => 'acs:linkcard::{#accountId}:cardmanage/{#cardmanageId}'],
['validationType' => 'always', 'resourceType' => 'CardManage', 'arn' => 'acs:linkcard::{#accountId}:cardmanage/*'],
['validationType' => 'always', 'resourceType' => 'SmsManage', 'arn' => 'acs:linkcard:{#regionId}:{#accountId}:smsmanage/*'],
['validationType' => 'always', 'resourceType' => 'DirectionalManage', 'arn' => 'acs:linkcard::{#accountId}:directionalmanage/*'],
['validationType' => 'always', 'resourceType' => 'DashboardManage', 'arn' => 'acs:linkcard::{#accountId}:dashboardmanage/*'],
['validationType' => 'always', 'resourceType' => 'CredentialManage', 'arn' => 'acs:linkcard::{#accountId}:credentialmanage/*'],
['validationType' => 'always', 'resourceType' => 'TagManage', 'arn' => 'acs:linkcard::{#accountId}:tagmanage/*'],
['validationType' => 'always', 'resourceType' => 'DirectionalManage', 'arn' => 'acs:linkcard:*:{#accountId}:directionalmanage/{#DirectionalManageId}'],
],
],
];