文档首页 > > 开发指南> API & SDK 对应关系> Java> RTS

RTS

分享
更新时间: 2019/11/15 GMT+08:00

基于Heat v1 API的SDK接口如下,调用方式请参考示例代码。

Interface

Method

API

EventsService

List<? extends Event> list(String stackName, String stackId)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/events

List<? extends Event> list(String stackName, String stackId, String resourceName)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/events

Event show(String stackName, String stackId, String resourceName, String eventId)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/events/{event_id}

ResourcesService

List<? extends Resource> list(String stackNameOrId)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/resources

List<? extends Resource> list(String stackName, String stackId)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/resources

Resource show(String stackName, String stackId, String resourceName)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}

SoftwareConfigService

SoftwareConfig create(SoftwareConfig sc)

POST /V1/{project_id}/software_configs

ActionResponse delete(String configId)

DELETE /V1/{project_id}/software_configs/{software_config_id}

SoftwareConfig show(String configId)

GET /V1/{project_id}/software_configs/{software_config_id}

StackService

Stack create(StackCreate newStack)

POST /V1/{project_id}/stacks

Stack create(String name, String template, Map<String,String> parameters, boolean disableRollback, Long timeOutMins)

POST /V1/{project_id}/stacks

ActionResponse delete(String stackName, String stackId)

DELETE /V1/{project_id}/stacks/{stack_name}/{stack_id}

Stack getDetails(String stackName, String stackId)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}

Stack getStackByName(String name)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}

List<? extends Stack> list()

GET /V1/{project_id}/stacks

ActionResponse update(String stackName, String stackId, StackUpdate stackUpdate)

PUT /V1/{project_id}/stacks/{stack_name}/{stack_id}

TemplateService

Map<String,Object> getTemplateAsMap(String stackNameOrId)

GET /V1/{project_id}/stacks/{stack_name}/template

Map<String,Object> getTemplateAsMap(String stackName, String stackId)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/template

String getTemplateAsString(String stackName, String stackId)

GET /V1/{project_id}/stacks/{stack_name}/{stack_id}/template

TemplateResponse validateTemplate(String template)

POST /V1/{project_id}/validate

TemplateResponse validateTemplate(Template template)

POST /V1/{project_id}/validate

TemplateResponse validateTemplateByURL(String templateURL)

POST /V1/{project_id}/validate

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区