云服务器内容精选

  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 total_count Long 文件总数,与分页无关。 files Array of FileStatusV2 objects 文件列表。 表4 FileStatusV2 参数 参数类型 描述 path_suffix String 文件在当前目录下的后缀,如获取“/tmp”目录,下面的“/tmp/test”文件,此处path_suffix内容为“test”。 owner String 文件拥有者。 group String 文件属组。 permission String 权限信息。 replication Integer 副本数。 block_size Integer 块大小。 length Integer 文件长度。 type String 文件类型: FILE:文件 DIRECTORY:目录 children_num Integer 该目录下的文件条目数。 access_time Long 文件访问时间。 modification_time Long 文件修改时间。
  • 响应示例 状态码: 200 获取指定目录文件列表成功 { "total_count" : 2, "files" : [ { "access_time" : 0, "block_size" : 0, "children_num" : 0, "group" : "hadoop", "length" : 0, "modification_time" : 1587179516623, "owner" : "hdfs", "path_suffix" : "app-logs", "permission" : 777, "replication" : 0, "type" : "DIRECTORY" }, { "access_time" : 1587267212761, "block_size" : 134217728, "children_num" : 0, "group" : "hadoop", "length" : 23666188, "modification_time" : 1587222156003, "owner" : "root", "path_suffix" : "data-m-00000", "permission" : "644", "replication" : 3, "type" : "FILE" } ]}