您可以使用 GetLimits 方法获取通过 API 设置的限制值。这些值可能因 Element 版本而异,但如果不更新系统,这些值就不会发生更改。了解由 API 设置的限制值有助于为面向用户的工具编写 API 脚本。
此方法没有任何输入参数。
此方法将返回一个 JSON 对象,其中包含名称-值对(包括 API 限制)。
此方法的请求类似于以下示例:
{ "method": "GetLimits", "id" : 1 }
此方法返回类似于以下示例的响应:
{ "id": 1, "result": { "accountCountMax": 5000, "accountNameLengthMax": 64, "accountNameLengthMin": 1, "backupTargetNameLengthMax": 64, "backupTargetNameLengthMin": 1, "bulkVolumeJobsPerNodeMax": 8, "bulkVolumeJobsPerVolumeMax": 2, "cloneJobsPerNodeMax": 8, "cloneJobsPerVirtualVolumeMax": 8, "cloneJobsPerVolumeMax": 2, "clusterAdminAccountMax": 5000, "clusterAdminInfoNameLengthMax": 1024, "clusterAdminInfoNameLengthMin": 1, "clusterPairsCountMax": 4, "fibreChannelVolumeAccessMax": 16384, "initiatorAliasLengthMax": 224, "initiatorCountMax": 10000, "initiatorNameLengthMax": 224, "initiatorsPerVolumeAccessGroupCountMax": 128, "iscsiSessionsFromFibreChannelNodesMax": 4096, "qosPolicyCountMax": 500, "qosPolicyNameLengthMax": 64, "qosPolicyNameLengthMin": 1, "scheduleNameLengthMax": 244, "secretLengthMax": 16, "secretLengthMin": 12, "snapMirrorEndpointIPAddressesCountMax": 64, "snapMirrorEndpointsCountMax": 4, "snapMirrorLabelLengthMax": 31, "snapMirrorObjectAttributeValueInfoCountMax": 9900000, "snapshotNameLengthMax": 255, "snapshotsPerVolumeMax": 32, "virtualVolumeCountMax": 4000, "virtualVolumesPerAccountCountMax": 10000, "volumeAccessGroupCountMax": 1000, "volumeAccessGroupLunMax": 16383, "volumeAccessGroupNameLengthMax": 64, "volumeAccessGroupNameLengthMin": 1, "volumeAccessGroupsPerInitiatorCountMax": 1, "volumeAccessGroupsPerVolumeCountMax": 64, "volumeBurstIOPSMax": 200000, "volumeBurstIOPSMin": 100, "volumeCountMax": 2000, "volumeMaxIOPSMax": 200000, "volumeMaxIOPSMin": 100, "volumeMinIOPSMax": 15000, "volumeMinIOPSMin": 50, "volumeNameLengthMax": 64, "volumeNameLengthMin": 1, "volumeSizeMax": 8796093022208, "volumeSizeMin": 1000000000, "volumesPerAccountCountMax": 2000, "volumesPerGroupSnapshotMax": 32, "volumesPerVolumeAccessGroupCountMax": 2000 } }