调用ListFunctionFiles列出指定项目、指定类型的函数文件,支持分页。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | ListFunctionFiles | 
                               系统规定参数。取值:ListFunctionFiles。  | 
                           
                        
| FileType | Integer | 是 | 1 | 
                               文件类型,0:单文件;1:包文件  | 
                           
                        
| ProjectId | String | 是 | PE9FQC48 | 
                               项目ID  | 
                           
                        
| PageIndex | Integer | 否 | 1 | 
                               目标页号,默认为1  | 
                           
                        
| PageSize | Integer | 否 | 10 | 
                               每页所显示的项数,默认为10  | 
                           
                        
| RegionId | String | 否 | cn-shanghai | 
                               地域ID  | 
                           
                        
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| FileList | 
                               文件列表  | 
                           
                        ||
| Files | 
                               文件数组  | 
                           
                        ||
| ContentId | Long | 1 | 
                               文件内容ID  | 
                           
                        
| Description | String | This is description | 
                               文件描述  | 
                           
                        
| GmtCreate | Long | 1535604251000 | 
                               创建时间,精确到毫秒的Unix时间戳  | 
                           
                        
| GmtModified | Long | 1535604251000 | 
                               修改时间,精确到毫秒的Unix时间戳  | 
                           
                        
| Id | Long | 1 | 
                               文件ID  | 
                           
                        
| Name | String | hello.zip | 
                               文件名  | 
                           
                        
| ProductionDeployStatus | Integer | 1 | 
                               生成环境的部署状态。0:未部署,1:已部署  | 
                           
                        
| ProductionDeployTime | Long | 1535604251000 | 
                               生成环境的部署时间,精确到毫秒的Unix时间戳 说明 只有当生成环境的部署状态为已部署,才可获取到该值,否则该字段不返回。
                                  
                               | 
                           
                        
| SandboxDeployStatus | Integer | 1 | 
                               沙箱环境的部署状态。0:未部署,1:已部署  | 
                           
                        
| SandboxDeployTime | Long | 1535604251000 | 
                               沙箱环境的部署时间,精确到毫秒的Unix时间戳 说明 只有当沙箱环境的部署状态为已部署,才可获取到该值,否则该字段不返回。
                                  
                               | 
                           
                        
| Status | Integer | 0 | 
                               文件状态。0:正常;1:已删除  | 
                           
                        
| Pagination | 
                               分页信息  | 
                           
                        ||
| PageIndex | Integer | 1 | 
                               目标页号  | 
                           
                        
| PageSize | Integer | 10 | 
                               每页所显示的项数  | 
                           
                        
| TotalCount | Integer | 11 | 
                               记录总数  | 
                           
                        
| TotalPageCount | Integer | 2 | 
                               记录总页数  | 
                           
                        
| RequestId | String | 629586FE-CB2E-4742-995E-121F952CEB72 | 
                               请求ID  | 
                           
                        
示例
请求示例
https://iovcc.cn-shanghai.aliyuncs.com/?FileType=1
&ProjectId=PE9FQC48
&PageIndex=1
&PageSize=10
&<公共请求参数>
                  正常返回示例
XML 格式
                  
<ListFunctionFilesResponse>
	  <FileList>
		    <Files>
			      <ContentId>5</ContentId>
			      <GmtCreate>1509422113000</GmtCreate>
			      <GmtModified>1510150180000</GmtModified>
			      <Id>17</Id>
			      <Name>hello.zip</Name>
			      <ProductionDeployStatus>0</ProductionDeployStatus>
			      <SandboxDeployStatus>1</SandboxDeployStatus>
			      <SandboxDeployTime>1509422113000</SandboxDeployTime>
			      <Status>0</Status>
		    </Files>
		    <Files>
			      <ContentId>29</ContentId>
			      <Description>This is Desciption</Description>
			      <GmtCreate>1534739368000</GmtCreate>
			      <GmtModified>1534739368000</GmtModified>
			      <Id>41</Id>
			      <Name>hello.zip</Name>
			      <ProductionDeployStatus>1</ProductionDeployStatus>
			      <ProductionDeployTime>1509422113000</ProductionDeployTime>
			      <SandboxDeployStatus>1</SandboxDeployStatus>
			      <SandboxDeployTime>1509422113000</SandboxDeployTime>
			      <Status>0</Status>
		    </Files>
		    <Pagination>
			      <PageIndex>1</PageIndex>
			      <PageSize>10</PageSize>
			      <TotalCount>15</TotalCount>
			      <TotalPageCount>2</TotalPageCount>
		    </Pagination>
	  </FileList>
	  <RequestId>629586FE-CB2E-4742-995E-121F952CEB72</RequestId>
</ListFunctionFilesResponse>
                  JSON 格式
                  
{
	"RequestId":"629586FE-CB2E-4742-995E-121F952CEB72",
	"FileList":{
		"Files":[
			{
				"ProductionDeployStatus":0,
				"Name":"hello.zip",
				"Status":0,
				"SandboxDeployStatus":1,
				"ContentId":5,
				"Id":17,
				"GmtCreate":1509422113000,
				"SandboxDeployTime":1509422113000,
				"GmtModified":1510150180000
			},
			{
				"ProductionDeployStatus":1,
				"Name":"hello.zip",
				"Status":0,
				"SandboxDeployStatus":1,
				"Description":"This is Desciption",
				"ContentId":29,
				"Id":41,
				"GmtCreate":1534739368000,
				"SandboxDeployTime":1509422113000,
				"GmtModified":1534739368000,
				"ProductionDeployTime":1509422113000
			}
		],
		"Pagination":{
			"TotalCount":15,
			"PageSize":10,
			"PageIndex":1,
			"TotalPageCount":2
		}
	}
}
                  错误码
访问错误中心查看更多错误码。