搜索本产品文档关键词
版本操作
所有文档
menu

函数计算 CFC

版本操作

各接口的请求参数和响应参数说明请参考版本操作

获取函数版本列表

如下代码用于查询用户函数所有版本:

Plain Text
1public void testListVersionsByFunction(CfcClient cfcClient) {
2        ListVersionsByFunctionResponse response = cfcClient.listVersionsByFunction("test-1557387367523", null, null);
3        System.out.println(response);
4    }

发布版本

如下代码用于发布函数版本:

Plain Text
1public void testPublishVersion(CfcClient cfcClient) {
2        PublishVersionResponse response = cfcClient.publishVersion("test-1557387367523", "1123", null);
3        System.out.println(response);
4    }
上一篇
函数调用
下一篇
别名操作