NAS API调用出现问题时,会返回各种错误码信息。

错误码组成

错误码由以下4部分组成:

组成部分释义
HttpCodeHTTP响应码,符合HTTP协议语义
Code错误标识
Message错误消息
Advice建议处理方式

错误码列表

HttpCodeCodeMessageAdvice
500InternalErrorThe request processing has failed due to some unknown error.请稍后重试。如果重试后仍无法解决您的问题,请联系NAS技术支持进行咨询。
503ServiceUnavailableThe request has failed due to a temporary failure of the server.给您带来的不便,深感抱歉,请稍后再试。
504ServiceTimeoutThe request processing has failed due to timeout.请稍后再试。
503SecurityToken.CheckFailedThe security token check has failed due to some internal error.STS token权限检查过程中,由于内部调用失败导致检查失败,请稍后再试。
503SecurityToken.DecodeFailedThe security token decode has failed due to some internal error.STS token解码过程中,由于内部调用失败导致解码失败,请稍后再试。
503SubRam.CheckFailedThe sub user ram check has failed due to some internal error.阿里云账号或RAM用户权限检查过程中,由于内部调用失败导致检查失败,请稍后再试。
503VpcRam.CheckFailedThe Vpc ram check has failed due to some internal error.VPC权限检查过程中,由于内部调用失败导致检查失败,请稍后再试。
503VpcSubRam.CheckFailedThe Vpc sub user ram check has failed due to some internal error.VPC主子账号检查过程中,由于内部调用失败导致检查失败,请稍后再试。
400MissingParameter.callerUidParameter `callerUid` is mandatory for this action.请加入callerUid请求参数。
400MissingParameter.RegionIdParameter `RegionId` in endpoint is mandatory for this action.请在域名中加入RegionId字段信息。
400MissingParameter.VSwitchIdParameter `VSwitchId` is mandatory for this action.请加入VSwitchId请求参数。
400MissingParameter.VpcIdParameter `VpcId` is mandatory for this action.请加入VpcId请求参数。
400InvalidParameter.StorageTypeParameter `StorageType` is mandatory for this action.合法的StorageType请求参数有PerformanceCapacity
400InvalidParameter.ProtocalTypeParameter ProtocalType is mandatory for this action.合法的ProtocalType请求参数有NFSSMB
400InvalidParameter.DescriptionParameter Description is mandatory for this action.Description的合法字符包括中英文字母和以下字符:at(@)、井号(#)、美元符号($)、下划线(_)、加号(+)、短划线(-)。
404InvalidFileSystem.NotFoundThe specified FileSystem does not exist.您指定的文件系统不存在或已删除。
403InvalidFileSystem.AlreadyExistedThe specified FileSystem has been already existed.您指定的文件系统已存在,您可以通过调用DescribeFileSystems并指定该文件系统ID查看相关信息。
404InvalidMountTarget.NotFoundThe specified MountTarget does not exist.您指定的挂载点不存在或已删除。
404InvalidAccessGroup.NotFoundThe specified AccessGroup does not exist.您指定的权限组不存在或已删除。
403InvalidAccessGroup.AlreadyExistedThe specified AccessGroup has been already existed.您指定的权限组已存在,您可以通过调用DescribeMountTargets并指定该权限组查看相关信息。
403InvalidAccessGroup.AlreadyAttachedThe specified AccessGroup is still attached by some MountTarget(s).指定权限组还绑有相关挂载点,请先解绑相关挂载点再删除该权限组。
404InvalidAccessRule.NotFoundThe specified AccessRule does not exist.您指定的权限规则不存在或已删除。
404InvalidLocatin.NotFoundThe specified Location is not found or is not supported.请求的Location不存在或暂未提供服务。
404InvalidRegionId.NotFoundThe specified Region is not found.请求的Region不存在或暂未提供服务。
404InvalidAZone.NotFoundThe specified AZone is not found.请求的Zone不存在或暂未提供服务。
404InvalidVpc.NotFoundThe specified Vpc is not found.您指定的VPC不存在,请先创建专有网络VPC。
404InvalidVip.NotFoundThe specified Vip is not found.您指定的VPC没有找到,请检查您的 VPC信息正确有效。
404InvalidLBid.NotFoundThe specified LBid is not found.系统创建LBid失败,请稍后重试。
404InvalidVpcTunnelId.NotFoundThe specified vpc tunnelId is not found.指定的VPC tunnelId 不存在,请先检查VPC信息。
404InvalidVpc.CreationFailedThe specified vpc instance creation failed.指定的VPC实例创建失败,请检查您的VPC信息正确有效且有可用IP空间可供创建,并再次重试。
403OperationDenied.DefaultAccessGroupCannotDeleteThe default AccessGroup can not be deleted.您可以编辑操作自定义的权限组。
403OperationDenied.DefaultAccessGroupCannotModifyThe default AccessGroup can not be modified.您可以编辑操作自定义的权限组。
403OperationDenied.NetworkTypeNotMatchedThe NetworkType of MountTarget is not matched with AccessGroup.请确保挂载点的NetworkType与权限组的AccessGroupType保持一致。
403OperationDenied.MountTargetNotEmptyThere are still MountTarget(s) on the specified FileSystem.指定文件系统仍存在挂载点,请先删除挂载点。
403OperationDenied.FileSystemCountsExceededThe amount of FileSystem has reached its limits(maximum 10).

如需提高上限,请联系NAS技术支持进行咨询。

403OperationDenied.MountTargetCountsExceededThe amount of MountTarget has reached its limits(maximum 2 per FileSystem).如需提高上限,请联系NAS技术支持进行咨询。
403OperationDenied.AccessGroupCountsExceededThe amount of AccessGroup has reached its limits.如需提高上限,请联系NAS技术支持进行咨询。
403OperationDenied.AccessRuleCountsExceededThe amount of AccessRule has reached its limits.如需提高上限,请联系NAS技术支持进行咨询。
403User.DisabledYour account does not open Nas Service yet or balance is insufficient.

如果您尚未开通NAS服务,请先前往开通NAS服务。

如果您账户欠费,请先续费。

403Forbidden.InvalidUserTypeThe operation is not permitted due to type of account.NAS API暂不支持您的账户类型,请见谅。
403Forbidden.RamUser not authorized to operate on the specified resource, or this API doesn't support RAM.您的账户RAM权限校验失败,请前往RAM确保授权NAS相关权限。
403Forbidden.EcsTokenNotAuthorizedUser not authorized to check ecs on creating MountTarget of classic network type.请前往RAM授权NAS访问ECS校验接口。
403NotQualifiedUser has not been approved for the trail application.

请您先发起相关新特性的试用申请,如果长时间未审批通过,请联系NAS技术支持进行咨询。

错误码返回示例

  • XML示例

    <?xml version="1.0" encoding="UTF-8"?>
    <Error>
      <RequestId>B71B4C68-6C6B-4D4B-AD70-8951BD7D188E</RequestId>
      <HostId>nas.cn-hangzhou.aliyuncs.com</HostId>
      <Code>InvalidFileSystem.NotFound</Code>
      <Message>指定文件系统不存在</Message>
    </Error>
    
                        
  • JSON示例

    {
      "RequestId": "B71B4C68-6C6B-4D4B-AD70-8951BD7D188E",
      "HostId": " nas.cn-hangzhou.aliyuncs.com ",
      "Code": "InvalidFileSystem.NotFound",
      "Message": "指定文件系统不存在"
    }