diff --git a/docs/rts/api-ref/ALL_META.TXT.json b/docs/rts/api-ref/ALL_META.TXT.json new file mode 100644 index 000000000..0869e3dc2 --- /dev/null +++ b/docs/rts/api-ref/ALL_META.TXT.json @@ -0,0 +1,492 @@ +[ + { + "uri":"en-us_topic_0082242144.html", + "product_code":"rts", + "code":"1", + "des":"Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform ", + "doc_type":"api", + "kw":"API Usage Guidelines,API Reference", + "title":"API Usage Guidelines", + "githuburl":"" + }, + { + "uri":"en-us_topic_0126459261.html", + "product_code":"rts", + "code":"2", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"APIs", + "title":"APIs", + "githuburl":"" + }, + { + "uri":"rts_03_0014.html", + "product_code":"rts", + "code":"3", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"General Information", + "title":"General Information", + "githuburl":"" + }, + { + "uri":"rts_03_0016.html", + "product_code":"rts", + "code":"4", + "des":"In the Heat API, the stack ID consists of stack_name and stack_id. When the system calls APIs to access resources such as stacks, templates, events, and actions, if only ", + "doc_type":"api", + "kw":"Redirection Description,General Information,API Reference", + "title":"Redirection Description", + "githuburl":"" + }, + { + "uri":"rts_03_0017.html", + "product_code":"rts", + "code":"5", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"API Version Management", + "title":"API Version Management", + "githuburl":"" + }, + { + "uri":"rts_03_0018.html", + "product_code":"rts", + "code":"6", + "des":"This API is used to query all available versions.GET /N/Aversions structure informationNoneThe following code will be returned if the system is operating normally.", + "doc_type":"api", + "kw":"Querying API Versions,API Version Management,API Reference", + "title":"Querying API Versions", + "githuburl":"" + }, + { + "uri":"rts_03_0019.html", + "product_code":"rts", + "code":"7", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Stack Management", + "title":"Stack Management", + "githuburl":"" + }, + { + "uri":"rts_03_0020.html", + "product_code":"rts", + "code":"8", + "des":"This API is used to query stacks of a specified tenant.GET /v1/{project_id}/stacksFor details about the parameters, see Table 1.stacks structure information", + "doc_type":"api", + "kw":"Querying the Stacks,Stack Management,API Reference", + "title":"Querying the Stacks", + "githuburl":"" + }, + { + "uri":"rts_03_0021.html", + "product_code":"rts", + "code":"9", + "des":"This API is used to create a stack. Heat verifies a request body and parses the template. After that, Heat invokes the API of the target component based on resource depen", + "doc_type":"api", + "kw":"Creating a Stack,Stack Management,API Reference", + "title":"Creating a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0022.html", + "product_code":"rts", + "code":"10", + "des":"This API is used to preview a stack.POST /v1/{project_id}/stacks/previewFor details about the parameters, see Table 1.stack structure information", + "doc_type":"api", + "kw":"Previewing a Stack,Stack Management,API Reference", + "title":"Previewing a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0025.html", + "product_code":"rts", + "code":"11", + "des":"This API is used to query details of a stack.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}This API supports redirection. During the calling, you can specify only st", + "doc_type":"api", + "kw":"Querying Details of a Stack,Stack Management,API Reference", + "title":"Querying Details of a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0026.html", + "product_code":"rts", + "code":"12", + "des":"This API is used to update a stack.PUT /v1/{project_id}/stacks/{stack_name}/{stack_id}For details about the parameters, see Table 1.N/ANone", + "doc_type":"api", + "kw":"Updating a Stack,Stack Management,API Reference", + "title":"Updating a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0027.html", + "product_code":"rts", + "code":"13", + "des":"This API is used to delete a stack.DELETE /v1/{project_id}/stacks/{stack_name}/{stack_id}For details about the parameters, see Table 1.N/AThis request does not return any", + "doc_type":"api", + "kw":"Deleting a Stack,Stack Management,API Reference", + "title":"Deleting a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0028.html", + "product_code":"rts", + "code":"14", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Stack Resource Management", + "title":"Stack Resource Management", + "githuburl":"" + }, + { + "uri":"rts_03_0029.html", + "product_code":"rts", + "code":"15", + "des":"This API is used to query resources of a stack.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resourcesThis API supports redirection. During the calling, you can spe", + "doc_type":"api", + "kw":"Querying Resources of a Stack,Stack Resource Management,API Reference", + "title":"Querying Resources of a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0030.html", + "product_code":"rts", + "code":"16", + "des":"This API is used to query details of a stack resource.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}For details about the parameters, see T", + "doc_type":"api", + "kw":"Querying Details of a Stack Resource,Stack Resource Management,API Reference", + "title":"Querying Details of a Stack Resource", + "githuburl":"" + }, + { + "uri":"rts_03_0031.html", + "product_code":"rts", + "code":"17", + "des":"This API is used to query metadata of a stack resource.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/metadataFor details about the paramet", + "doc_type":"api", + "kw":"Querying Metadata of a Stack Resource,Stack Resource Management,API Reference", + "title":"Querying Metadata of a Stack Resource", + "githuburl":"" + }, + { + "uri":"rts_03_0032.html", + "product_code":"rts", + "code":"18", + "des":"This API is used to send a signal to a stack resource to change the resource orchestration.POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/", + "doc_type":"api", + "kw":"Sending a Signal to a Stack Resource,Stack Resource Management,API Reference", + "title":"Sending a Signal to a Stack Resource", + "githuburl":"" + }, + { + "uri":"rts_03_0033.html", + "product_code":"rts", + "code":"19", + "des":"This API is used to mark the status of a specified resource as unhealthy.PATCH /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name_or_physical_id}For", + "doc_type":"api", + "kw":"Marking a Resource as Unhealthy,Stack Resource Management,API Reference", + "title":"Marking a Resource as Unhealthy", + "githuburl":"" + }, + { + "uri":"rts_03_0034.html", + "product_code":"rts", + "code":"20", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Stack Action Management", + "title":"Stack Action Management", + "githuburl":"" + }, + { + "uri":"rts_03_0035.html", + "product_code":"rts", + "code":"21", + "des":"This API is used to cancel updating a stack.POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/actionsFor details about the parameters, see Table 1.This operation does ", + "doc_type":"api", + "kw":"Canceling Stack Updates,Stack Action Management,API Reference", + "title":"Canceling Stack Updates", + "githuburl":"" + }, + { + "uri":"rts_03_0036.html", + "product_code":"rts", + "code":"22", + "des":"This API is used to check whether a stack is in the expected status.POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/actionsFor details about the parameters, see Tabl", + "doc_type":"api", + "kw":"Checking a Stack,Stack Action Management,API Reference", + "title":"Checking a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0037.html", + "product_code":"rts", + "code":"23", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Stack Event Management", + "title":"Stack Event Management", + "githuburl":"" + }, + { + "uri":"rts_03_0038.html", + "product_code":"rts", + "code":"24", + "des":"This API is used to query events of a stack.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/eventsThis API supports redirection. During the calling, you can specify o", + "doc_type":"api", + "kw":"Querying Events of a Stack,Stack Event Management,API Reference", + "title":"Querying Events of a Stack", + "githuburl":"" + }, + { + "uri":"rts_03_0040.html", + "product_code":"rts", + "code":"25", + "des":"This API is used to query events of a stack resource.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/eventsFor details about the parameters,", + "doc_type":"api", + "kw":"Querying Events of a Stack Resource,Stack Event Management,API Reference", + "title":"Querying Events of a Stack Resource", + "githuburl":"" + }, + { + "uri":"rts_03_0041.html", + "product_code":"rts", + "code":"26", + "des":"This API is used to query details of a stack resource event.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/events/{event_id}For details abo", + "doc_type":"api", + "kw":"Querying Details of a Stack Resource Event,Stack Event Management,API Reference", + "title":"Querying Details of a Stack Resource Event", + "githuburl":"" + }, + { + "uri":"rts_03_0042.html", + "product_code":"rts", + "code":"27", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Template Management", + "title":"Template Management", + "githuburl":"" + }, + { + "uri":"rts_03_0043.html", + "product_code":"rts", + "code":"28", + "des":"This API is used to query a stack template.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/templateThis API supports redirection. During the calling, you can specify ", + "doc_type":"api", + "kw":"Querying a Stack Template,Template Management,API Reference", + "title":"Querying a Stack Template", + "githuburl":"" + }, + { + "uri":"rts_03_0044.html", + "product_code":"rts", + "code":"29", + "des":"This API is used to check whether the template syntax meets requirements.POST /v1/{project_id}/validateFor details about the parameters, see Table 1.", + "doc_type":"api", + "kw":"Validating a Template,Template Management,API Reference", + "title":"Validating a Template", + "githuburl":"" + }, + { + "uri":"rts_03_0048.html", + "product_code":"rts", + "code":"30", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Building Information", + "title":"Building Information", + "githuburl":"" + }, + { + "uri":"rts_03_0049.html", + "product_code":"rts", + "code":"31", + "des":"This API is used to query the building information.GET /v1/{project_id}/build_infoFor details about the parameters, see Table 1.N/A", + "doc_type":"api", + "kw":"Querying the Building Information,Building Information,API Reference", + "title":"Querying the Building Information", + "githuburl":"" + }, + { + "uri":"rts_03_0050.html", + "product_code":"rts", + "code":"32", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Software Configuration Management", + "title":"Software Configuration Management", + "githuburl":"" + }, + { + "uri":"rts_03_0051.html", + "product_code":"rts", + "code":"33", + "des":"This API is used to create one or more software configurations.POST /v1/{project_id}/software_configsFor details about the parameters, see Table 1.software_config structu", + "doc_type":"api", + "kw":"Creating One or More Software Configurations,Software Configuration Management,API Reference", + "title":"Creating One or More Software Configurations", + "githuburl":"" + }, + { + "uri":"rts_03_0052.html", + "product_code":"rts", + "code":"34", + "des":"This API is used to query the software configurations.GET /v1/{project_id}/software_configsFor details about the parameters, see Table 1.software_configs structure inform", + "doc_type":"api", + "kw":"Querying Software Configurations,Software Configuration Management,API Reference", + "title":"Querying Software Configurations", + "githuburl":"" + }, + { + "uri":"rts_03_0053.html", + "product_code":"rts", + "code":"35", + "des":"This API is used to query details of a software configuration.GET /v1/{project_id}/software_configs/{config_id}For details about the parameters, see Table 1.N/Asoftware_c", + "doc_type":"api", + "kw":"Querying Details of a Software Configuration,Software Configuration Management,API Reference", + "title":"Querying Details of a Software Configuration", + "githuburl":"" + }, + { + "uri":"rts_03_0054.html", + "product_code":"rts", + "code":"36", + "des":"This API is used to delete a software configuration.DELETE /v1/{project_id}/software_configs/{config_id}For details about the parameters, see Table 1.N/AThis request does", + "doc_type":"api", + "kw":"Deleting a Software Configuration,Software Configuration Management,API Reference", + "title":"Deleting a Software Configuration", + "githuburl":"" + }, + { + "uri":"rts_03_0055.html", + "product_code":"rts", + "code":"37", + "des":"This API is used to create one or more software deployments.POST /v1/{project_id}/software_deploymentsFor details about the parameters, see Table 1.software_deployment st", + "doc_type":"api", + "kw":"Creating One or More Software Deployments,Software Configuration Management,API Reference", + "title":"Creating One or More Software Deployments", + "githuburl":"" + }, + { + "uri":"rts_03_0056.html", + "product_code":"rts", + "code":"38", + "des":"This API is used to query software deployments.GET /v1/{project_id}/software_deploymentsFor details about the parameters, see Table 1.software_deployments structure infor", + "doc_type":"api", + "kw":"Querying Software Deployments,Software Configuration Management,API Reference", + "title":"Querying Software Deployments", + "githuburl":"" + }, + { + "uri":"rts_03_0057.html", + "product_code":"rts", + "code":"39", + "des":"This API is used to query details of a software deployment.GET /v1/{project_id}/software_deployments/{deployment_id}For details about the parameters, see Table 1.N/Asoftw", + "doc_type":"api", + "kw":"Querying Details of a Software Deployment,Software Configuration Management,API Reference", + "title":"Querying Details of a Software Deployment", + "githuburl":"" + }, + { + "uri":"rts_03_0058.html", + "product_code":"rts", + "code":"40", + "des":"This API is used to update a software deployment.PUT /v1/{project_id}/software_deployments/{deployment_id}For details about the parameters, see Table 1.software_deploymen", + "doc_type":"api", + "kw":"Updating a Software Deployment,Software Configuration Management,API Reference", + "title":"Updating a Software Deployment", + "githuburl":"" + }, + { + "uri":"rts_03_0059.html", + "product_code":"rts", + "code":"41", + "des":"This API is used to delete a software deployment.DELETE /v1/{project_id}/software_deployments/{deployment_id}For details about the parameters, see Table 1.N/AThis request", + "doc_type":"api", + "kw":"Deleting a Software Deployment,Software Configuration Management,API Reference", + "title":"Deleting a Software Deployment", + "githuburl":"" + }, + { + "uri":"rts_03_0060.html", + "product_code":"rts", + "code":"42", + "des":"This API is used to view the metadata configured on a server.GET /v1/{project_id}/software_deployments/metadata/{server_id}For details about the parameters, see Table 1.N", + "doc_type":"api", + "kw":"Viewing Metadata Configured on a Server,Software Configuration Management,API Reference", + "title":"Viewing Metadata Configured on a Server", + "githuburl":"" + }, + { + "uri":"rts_03_0062.html", + "product_code":"rts", + "code":"43", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Resource Type Management", + "title":"Resource Type Management", + "githuburl":"" + }, + { + "uri":"rts_03_0047.html", + "product_code":"rts", + "code":"44", + "des":"This API is used to query resource types.GET /v1/{project_id}/resource_typesFor details about the parameters, see Table 1.N/A", + "doc_type":"api", + "kw":"Querying Resource Types,Resource Type Management,API Reference", + "title":"Querying Resource Types", + "githuburl":"" + }, + { + "uri":"rts_03_0045.html", + "product_code":"rts", + "code":"45", + "des":"This API is used to query the template of a resource type.The output template parameters of this API are related to the input parameters that you have specified, but the ", + "doc_type":"api", + "kw":"Querying the Template of a Resource Type,Resource Type Management,API Reference", + "title":"Querying the Template of a Resource Type", + "githuburl":"" + }, + { + "uri":"rts_03_0046.html", + "product_code":"rts", + "code":"46", + "des":"This API is used to query the type of a resource.GET /v1/{project_id}/resource_types/{type_name}For details about the parameters, see Table 1.N/A", + "doc_type":"api", + "kw":"Querying the Type of a Resource,Resource Type Management,API Reference", + "title":"Querying the Type of a Resource", + "githuburl":"" + }, + { + "uri":"rts_03_0005.html", + "product_code":"rts", + "code":"47", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Common Parameters", + "title":"Common Parameters", + "githuburl":"" + }, + { + "uri":"rts_03_0015.html", + "product_code":"rts", + "code":"48", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Return Code,Common Parameters,API Reference", + "title":"Return Code", + "githuburl":"" + }, + { + "uri":"en-us_topic_0130737188.html", + "product_code":"rts", + "code":"49", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Change History,API Reference", + "title":"Change History", + "githuburl":"" + } +] \ No newline at end of file diff --git a/docs/rts/api-ref/CLASS.TXT.json b/docs/rts/api-ref/CLASS.TXT.json new file mode 100644 index 000000000..e0d6dd536 --- /dev/null +++ b/docs/rts/api-ref/CLASS.TXT.json @@ -0,0 +1,443 @@ +[ + { + "desc":"Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform ", + "product_code":"rts", + "title":"API Usage Guidelines", + "uri":"en-us_topic_0082242144.html", + "doc_type":"api", + "p_code":"", + "code":"1" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"APIs", + "uri":"en-us_topic_0126459261.html", + "doc_type":"api", + "p_code":"", + "code":"2" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"General Information", + "uri":"rts_03_0014.html", + "doc_type":"api", + "p_code":"2", + "code":"3" + }, + { + "desc":"In the Heat API, the stack ID consists of stack_name and stack_id. When the system calls APIs to access resources such as stacks, templates, events, and actions, if only ", + "product_code":"rts", + "title":"Redirection Description", + "uri":"rts_03_0016.html", + "doc_type":"api", + "p_code":"3", + "code":"4" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"API Version Management", + "uri":"rts_03_0017.html", + "doc_type":"api", + "p_code":"2", + "code":"5" + }, + { + "desc":"This API is used to query all available versions.GET /N/Aversions structure informationNoneThe following code will be returned if the system is operating normally.", + "product_code":"rts", + "title":"Querying API Versions", + "uri":"rts_03_0018.html", + "doc_type":"api", + "p_code":"5", + "code":"6" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Stack Management", + "uri":"rts_03_0019.html", + "doc_type":"api", + "p_code":"2", + "code":"7" + }, + { + "desc":"This API is used to query stacks of a specified tenant.GET /v1/{project_id}/stacksFor details about the parameters, see Table 1.stacks structure information", + "product_code":"rts", + "title":"Querying the Stacks", + "uri":"rts_03_0020.html", + "doc_type":"api", + "p_code":"7", + "code":"8" + }, + { + "desc":"This API is used to create a stack. Heat verifies a request body and parses the template. After that, Heat invokes the API of the target component based on resource depen", + "product_code":"rts", + "title":"Creating a Stack", + "uri":"rts_03_0021.html", + "doc_type":"api", + "p_code":"7", + "code":"9" + }, + { + "desc":"This API is used to preview a stack.POST /v1/{project_id}/stacks/previewFor details about the parameters, see Table 1.stack structure information", + "product_code":"rts", + "title":"Previewing a Stack", + "uri":"rts_03_0022.html", + "doc_type":"api", + "p_code":"7", + "code":"10" + }, + { + "desc":"This API is used to query details of a stack.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}This API supports redirection. During the calling, you can specify only st", + "product_code":"rts", + "title":"Querying Details of a Stack", + "uri":"rts_03_0025.html", + "doc_type":"api", + "p_code":"7", + "code":"11" + }, + { + "desc":"This API is used to update a stack.PUT /v1/{project_id}/stacks/{stack_name}/{stack_id}For details about the parameters, see Table 1.N/ANone", + "product_code":"rts", + "title":"Updating a Stack", + "uri":"rts_03_0026.html", + "doc_type":"api", + "p_code":"7", + "code":"12" + }, + { + "desc":"This API is used to delete a stack.DELETE /v1/{project_id}/stacks/{stack_name}/{stack_id}For details about the parameters, see Table 1.N/AThis request does not return any", + "product_code":"rts", + "title":"Deleting a Stack", + "uri":"rts_03_0027.html", + "doc_type":"api", + "p_code":"7", + "code":"13" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Stack Resource Management", + "uri":"rts_03_0028.html", + "doc_type":"api", + "p_code":"2", + "code":"14" + }, + { + "desc":"This API is used to query resources of a stack.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resourcesThis API supports redirection. During the calling, you can spe", + "product_code":"rts", + "title":"Querying Resources of a Stack", + "uri":"rts_03_0029.html", + "doc_type":"api", + "p_code":"14", + "code":"15" + }, + { + "desc":"This API is used to query details of a stack resource.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}For details about the parameters, see T", + "product_code":"rts", + "title":"Querying Details of a Stack Resource", + "uri":"rts_03_0030.html", + "doc_type":"api", + "p_code":"14", + "code":"16" + }, + { + "desc":"This API is used to query metadata of a stack resource.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/metadataFor details about the paramet", + "product_code":"rts", + "title":"Querying Metadata of a Stack Resource", + "uri":"rts_03_0031.html", + "doc_type":"api", + "p_code":"14", + "code":"17" + }, + { + "desc":"This API is used to send a signal to a stack resource to change the resource orchestration.POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/", + "product_code":"rts", + "title":"Sending a Signal to a Stack Resource", + "uri":"rts_03_0032.html", + "doc_type":"api", + "p_code":"14", + "code":"18" + }, + { + "desc":"This API is used to mark the status of a specified resource as unhealthy.PATCH /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name_or_physical_id}For", + "product_code":"rts", + "title":"Marking a Resource as Unhealthy", + "uri":"rts_03_0033.html", + "doc_type":"api", + "p_code":"14", + "code":"19" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Stack Action Management", + "uri":"rts_03_0034.html", + "doc_type":"api", + "p_code":"2", + "code":"20" + }, + { + "desc":"This API is used to cancel updating a stack.POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/actionsFor details about the parameters, see Table 1.This operation does ", + "product_code":"rts", + "title":"Canceling Stack Updates", + "uri":"rts_03_0035.html", + "doc_type":"api", + "p_code":"20", + "code":"21" + }, + { + "desc":"This API is used to check whether a stack is in the expected status.POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/actionsFor details about the parameters, see Tabl", + "product_code":"rts", + "title":"Checking a Stack", + "uri":"rts_03_0036.html", + "doc_type":"api", + "p_code":"20", + "code":"22" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Stack Event Management", + "uri":"rts_03_0037.html", + "doc_type":"api", + "p_code":"2", + "code":"23" + }, + { + "desc":"This API is used to query events of a stack.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/eventsThis API supports redirection. During the calling, you can specify o", + "product_code":"rts", + "title":"Querying Events of a Stack", + "uri":"rts_03_0038.html", + "doc_type":"api", + "p_code":"23", + "code":"24" + }, + { + "desc":"This API is used to query events of a stack resource.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/eventsFor details about the parameters,", + "product_code":"rts", + "title":"Querying Events of a Stack Resource", + "uri":"rts_03_0040.html", + "doc_type":"api", + "p_code":"23", + "code":"25" + }, + { + "desc":"This API is used to query details of a stack resource event.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/events/{event_id}For details abo", + "product_code":"rts", + "title":"Querying Details of a Stack Resource Event", + "uri":"rts_03_0041.html", + "doc_type":"api", + "p_code":"23", + "code":"26" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Template Management", + "uri":"rts_03_0042.html", + "doc_type":"api", + "p_code":"2", + "code":"27" + }, + { + "desc":"This API is used to query a stack template.GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/templateThis API supports redirection. During the calling, you can specify ", + "product_code":"rts", + "title":"Querying a Stack Template", + "uri":"rts_03_0043.html", + "doc_type":"api", + "p_code":"27", + "code":"28" + }, + { + "desc":"This API is used to check whether the template syntax meets requirements.POST /v1/{project_id}/validateFor details about the parameters, see Table 1.", + "product_code":"rts", + "title":"Validating a Template", + "uri":"rts_03_0044.html", + "doc_type":"api", + "p_code":"27", + "code":"29" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Building Information", + "uri":"rts_03_0048.html", + "doc_type":"api", + "p_code":"2", + "code":"30" + }, + { + "desc":"This API is used to query the building information.GET /v1/{project_id}/build_infoFor details about the parameters, see Table 1.N/A", + "product_code":"rts", + "title":"Querying the Building Information", + "uri":"rts_03_0049.html", + "doc_type":"api", + "p_code":"30", + "code":"31" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Software Configuration Management", + "uri":"rts_03_0050.html", + "doc_type":"api", + "p_code":"2", + "code":"32" + }, + { + "desc":"This API is used to create one or more software configurations.POST /v1/{project_id}/software_configsFor details about the parameters, see Table 1.software_config structu", + "product_code":"rts", + "title":"Creating One or More Software Configurations", + "uri":"rts_03_0051.html", + "doc_type":"api", + "p_code":"32", + "code":"33" + }, + { + "desc":"This API is used to query the software configurations.GET /v1/{project_id}/software_configsFor details about the parameters, see Table 1.software_configs structure inform", + "product_code":"rts", + "title":"Querying Software Configurations", + "uri":"rts_03_0052.html", + "doc_type":"api", + "p_code":"32", + "code":"34" + }, + { + "desc":"This API is used to query details of a software configuration.GET /v1/{project_id}/software_configs/{config_id}For details about the parameters, see Table 1.N/Asoftware_c", + "product_code":"rts", + "title":"Querying Details of a Software Configuration", + "uri":"rts_03_0053.html", + "doc_type":"api", + "p_code":"32", + "code":"35" + }, + { + "desc":"This API is used to delete a software configuration.DELETE /v1/{project_id}/software_configs/{config_id}For details about the parameters, see Table 1.N/AThis request does", + "product_code":"rts", + "title":"Deleting a Software Configuration", + "uri":"rts_03_0054.html", + "doc_type":"api", + "p_code":"32", + "code":"36" + }, + { + "desc":"This API is used to create one or more software deployments.POST /v1/{project_id}/software_deploymentsFor details about the parameters, see Table 1.software_deployment st", + "product_code":"rts", + "title":"Creating One or More Software Deployments", + "uri":"rts_03_0055.html", + "doc_type":"api", + "p_code":"32", + "code":"37" + }, + { + "desc":"This API is used to query software deployments.GET /v1/{project_id}/software_deploymentsFor details about the parameters, see Table 1.software_deployments structure infor", + "product_code":"rts", + "title":"Querying Software Deployments", + "uri":"rts_03_0056.html", + "doc_type":"api", + "p_code":"32", + "code":"38" + }, + { + "desc":"This API is used to query details of a software deployment.GET /v1/{project_id}/software_deployments/{deployment_id}For details about the parameters, see Table 1.N/Asoftw", + "product_code":"rts", + "title":"Querying Details of a Software Deployment", + "uri":"rts_03_0057.html", + "doc_type":"api", + "p_code":"32", + "code":"39" + }, + { + "desc":"This API is used to update a software deployment.PUT /v1/{project_id}/software_deployments/{deployment_id}For details about the parameters, see Table 1.software_deploymen", + "product_code":"rts", + "title":"Updating a Software Deployment", + "uri":"rts_03_0058.html", + "doc_type":"api", + "p_code":"32", + "code":"40" + }, + { + "desc":"This API is used to delete a software deployment.DELETE /v1/{project_id}/software_deployments/{deployment_id}For details about the parameters, see Table 1.N/AThis request", + "product_code":"rts", + "title":"Deleting a Software Deployment", + "uri":"rts_03_0059.html", + "doc_type":"api", + "p_code":"32", + "code":"41" + }, + { + "desc":"This API is used to view the metadata configured on a server.GET /v1/{project_id}/software_deployments/metadata/{server_id}For details about the parameters, see Table 1.N", + "product_code":"rts", + "title":"Viewing Metadata Configured on a Server", + "uri":"rts_03_0060.html", + "doc_type":"api", + "p_code":"32", + "code":"42" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Resource Type Management", + "uri":"rts_03_0062.html", + "doc_type":"api", + "p_code":"2", + "code":"43" + }, + { + "desc":"This API is used to query resource types.GET /v1/{project_id}/resource_typesFor details about the parameters, see Table 1.N/A", + "product_code":"rts", + "title":"Querying Resource Types", + "uri":"rts_03_0047.html", + "doc_type":"api", + "p_code":"43", + "code":"44" + }, + { + "desc":"This API is used to query the template of a resource type.The output template parameters of this API are related to the input parameters that you have specified, but the ", + "product_code":"rts", + "title":"Querying the Template of a Resource Type", + "uri":"rts_03_0045.html", + "doc_type":"api", + "p_code":"43", + "code":"45" + }, + { + "desc":"This API is used to query the type of a resource.GET /v1/{project_id}/resource_types/{type_name}For details about the parameters, see Table 1.N/A", + "product_code":"rts", + "title":"Querying the Type of a Resource", + "uri":"rts_03_0046.html", + "doc_type":"api", + "p_code":"43", + "code":"46" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Common Parameters", + "uri":"rts_03_0005.html", + "doc_type":"api", + "p_code":"", + "code":"47" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Return Code", + "uri":"rts_03_0015.html", + "doc_type":"api", + "p_code":"47", + "code":"48" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"rts", + "title":"Change History", + "uri":"en-us_topic_0130737188.html", + "doc_type":"api", + "p_code":"", + "code":"49" + } +] \ No newline at end of file diff --git a/docs/rts/api-ref/PARAMETERS.txt b/docs/rts/api-ref/PARAMETERS.txt new file mode 100644 index 000000000..6da8d5f07 --- /dev/null +++ b/docs/rts/api-ref/PARAMETERS.txt @@ -0,0 +1,3 @@ +version="" +language="en-us" +type="" \ No newline at end of file diff --git a/docs/rts/api-ref/en-us_topic_0082242144.html b/docs/rts/api-ref/en-us_topic_0082242144.html new file mode 100644 index 000000000..adb053e81 --- /dev/null +++ b/docs/rts/api-ref/en-us_topic_0082242144.html @@ -0,0 +1,8 @@ + + +
Public cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.
+Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted using JSON messages, with the media type represented by Application/json.
+For details about how to use APIs, see API Usage Guidelines.
+Released On + |
+Description + |
+
|---|---|
2019-05-27 + |
+Removed the following APIs: +APIs for querying stack environment and stack files and canceling stack creations or updates without a rollback + |
+
2019-05-10 + |
+Modified the following content: +Supplemented response parameters in Querying Details of a Stack and Querying Details of a Stack Resource. + |
+
2019-01-08 + |
+Added the following APIs: +
|
+
2018-08-30 + |
+Modified the document structure. + |
+
2018-03-30 + |
+Optimized the document content. + |
+
2018-01-30 + |
+Modified the following content: +Descriptions in API Version Management, Stack Management, Stack Resource Management, and Stack Action Management + |
+
2017-12-30 + |
+This issue is the first official release. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+The results of GET, PATCH, and PUT operations are returned normally. + |
+
201 + |
+Created + |
+The result of the POST operation is returned normally. + |
+
204 + |
+No Content + |
+The result of the DELETE operation is returned normally. + |
+
Return Code + |
+Type + |
+Possible Cause + |
+
|---|---|---|
400 + |
+Bad Request + |
+Incorrect request URI or body format. + |
+
Invalid request management status. + |
+||
Invalid value. + |
+||
The batch operation is not allowed. + |
+||
Authentication failed. + |
+||
Invalid request body, for example, the request attempt to update attributes that can be specified only during the creation. + |
+||
Missing required attributes. + |
+||
The specified attribute is not allowed, for example, an ID in a POST request in the basic CRUD operations. + |
+||
An unexpected data type attribute is specified. + |
+||
401 + |
+Unauthorized + |
+No identity authentication performed. + |
+
Invalid X-Auth-Token header. + |
+||
Invalid authentication credentials. + |
+||
403 + |
+Forbidden + |
+You have no permission to perform the requested operation. + |
+
404 + |
+Not Found + |
+The URI does not exist. + |
+
The requested resource was not found. + |
+||
Failed to complete the request because the reference entity could not be found by ID. The reference entity in POST requests may be specified in the request body instead of in the resource path. + |
+||
409 + |
+Conflict + |
+POST or PATCH operation failed. + |
+
500 + |
+Internal Server Error + |
+Internal OpenStack identity error. + |
+
503 + |
+Service Unavailable + |
+Failed to complete the request because the service is unavailable. + |
+
In the Heat API, the stack ID consists of stack_name and stack_id. When the system calls APIs to access resources such as stacks, templates, events, and actions, if only stack_name is specified, Heat queries the stack_id value and returns a redirect response pointing to the correct URL. The following provides a request example:
+GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack+
After redirection, the actual request is as follows:
+Location: http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306+
The APIs used in the following topics support redirection. When calling the following APIs to access stacks or templates, you can specify only stack_name or stack_id.
+ +This API is used to query all available versions.
+GET /
+N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
versions + |
+body + |
+List <dict> + |
+Specifies the API version list. +Each object in the list provides API version information, such as the ID, status, and links. + |
+
versions structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
id + |
+body + |
+String + |
+Specifies the API version. + |
+
status + |
+body + |
+String + |
+Specifies the API version status. Available values are as follows: +
|
+
links + |
+body + |
+List <dict> + |
+Specifies the API URL list. +Each URL is a JSON object with one href keyword for identifying the URL and one rel keyword indicating the relationship between the API version and the involved stack. + |
+
None
+{
+ "versions": [
+ {
+ "status": "CURRENT",
+ "id": "v1.0",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8774/v1/",
+ "rel": "self"
+ }
+ ]
+ }
+ ]
+}
+The following code will be returned if the system is operating normally.
+ +Return Code + |
+Type + |
+Description + |
+
|---|---|---|
300 + |
+Multiple choices + |
+The requested resource has multiple available responses. + |
+
This API is used to query stacks of a specified tenant.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
status/stack_status + |
+query + |
+String + |
+No + |
+Specifies the stack status. + |
+
name/stack_name + |
+query + |
+String + |
+No + |
+Specifies the stack name. +
|
+
limit + |
+query + |
+Integer + |
+No + |
+Specifies the number of returned stacks. This parameter is used to control the stack display mode and quantity. It can be used independently or together with the marker parameter. +For example, if the limit and marker parameters are not used, the queried stack list is as follows: +[stack1,stack2,stack3,stack4,stack5,stack6,stack7,stack8]+ If limit is set to 3, only the first three data records in the stack list are returned. +[stack1,stack2,stack3]+ If limit is set to 3 and marker is set to stack3, three stacks are displayed in sequence from the next data record of stack3. +[stack4,stack5,stack6]+ If limit is set to 3 and marker is set to stack6, but fewer than three data records are available after stack6, all the remaining data records are displayed. +[stack7,stack8]+ |
+
marker + |
+query + |
+String + |
+No + |
+Specifies the stack from which the next data record starts to be queried. This parameter is used to control the stack display mode and quantity. This parameter must be used together with the limit parameter. + |
+
sort_keys + |
+query + |
+String + |
+No + |
+Specifies the sorting keyword. +stack_name, stack_status, creation_time, and updated_time + |
+
sort_dir + |
+query + |
+String + |
+No + |
+Specifies the sorting method. +The value can be asc (in the ascending order) or desc (in the descending order). + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
stacks + |
+body + |
+List <dict> + |
+Specifies the stack list. + |
+
stacks structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
id + |
+body + |
+String + |
+Specifies the stack UUID. + |
+
stack_name + |
+body + |
+String + |
+Specifies the stack name. + |
+
stack_status + |
+body + |
+String + |
+Specifies the stack status. + |
+
stack_status_reason + |
+body + |
+String + |
+Describes the stack operation. + |
+
description + |
+body + |
+String + |
+Describes the stack. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the stack URL list. + |
+
creation_time + |
+body + |
+String + |
+Specifies the time when the stack was created. + |
+
updated_time + |
+body + |
+String + |
+Specifies the time when the stack was updated. + |
+
parent + |
+body + |
+String + |
+Specifies the UUID of the parent stack (for a nested stack). + |
+
tags + |
+body + |
+String + |
+Specifies the stack tag. + |
+
stack_user_project_id + |
+body + |
+String + |
+Specifies the project UUID of the stack user. This parameter may be left blank. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks+
{
+ "stacks": [
+ {
+ "description": "Hello world HOT template that just defines a single compute instance. Contains just base features to verify base HOT support.\n",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "rel": "self"
+ }
+ ],
+ "stack_status_reason": "Stack create completed successfully",
+ "stack_name": "HeatStack",
+ "creation_time": "2018-01-26T17:21:35Z",
+ "updated_time": "2018-01-26T17:21:41Z",
+ "stack_status": "CREATE_COMPLETE",
+ "id": "c89c4bb3-96cb-4a55-aafa-076a7939a306"
+ }
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to create a stack. Heat verifies a request body and parses the template. After that, Heat invokes the API of the target component based on resource dependencies to create a resource.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
stack_name + |
+body + |
+String + |
+Yes + |
+Specifies the stack name. +
|
+
template + |
+body + |
+Json + |
+Yes + |
+Specifies the template. The template uses the YAML syntax for content orchestration. + |
+
template_url + |
+body + |
+String + |
+No + |
+Specifies the template URL. You cannot select a template using the URL temporarily. + |
+
environment + |
+body + |
+Json + |
+No + |
+Specifies the environment information for creating a stack. + |
+
files + |
+body + |
+Json + |
+No + |
+Specifies the files referenced in the environment. + |
+
parameters + |
+body + |
+Json + |
+No + |
+Specifies parameter information of the stack. + |
+
timeout_mins + |
+body + |
+Int + |
+No + |
+Specifies the timeout duration. + |
+
disable_rollback + |
+body + |
+Boolean + |
+No + |
+Specifies whether to perform a rollback when stack creation fails. + |
+
environment structure information
+ +Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
parameters + |
+body + |
+Json + |
+No + |
+Specifies the parameters and their values. + |
+
parameters_defaults + |
+body + |
+Json + |
+No + |
+Specifies the parameters and their default values. + |
+
resource_registry + |
+body + |
+Json + |
+No + |
+Specifies the custom resource information. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
stack + |
+body + |
+Dict + |
+Specifies the stack object. + |
+
stack structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
id + |
+body + |
+String + |
+Specifies the stack UUID. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the stack URL list. + |
+
POST /v1/95d02433133a4c0a87ba6967474a2ad3/stacks
+{
+ "files": {},
+ "disable_rollback": true,
+ "parameters": {
+ "flavor": "m1.heat"
+ },
+ "environment": {
+ "parameters": {
+ "flavor": "m1.heat"
+ },
+ "parameter_defaults": {
+ "flavor": "m1.heat"
+ },
+ "resource_registry": {
+ "OS::Networking::FloatingIP": "OS::Nova::FloatingIP"
+ }
+ },
+ "stack_name": "teststack",
+ "template": {
+ "heat_template_version": "2013-05-23",
+ "description": "Simple template to test heat commands",
+ "parameters": {
+ "flavor": {
+ "default": "m1.tiny",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "hello_world": {
+ "type": "OS::Nova::Server",
+ "properties": {
+ "key_name": "heat_key",
+ "flavor": {
+ "get_param": "flavor"
+ },
+ "image": "40be8d1a-3eb9-40de-8abd-43237517384f",
+ "user_data": "#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n"
+ }
+ }
+ }
+ },
+ "timeout_mins": 60
+}
+{
+ "stack": {
+ "id": "c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "rel": "self"
+ }
+ ]
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
201 + |
+Created + |
+The resource has been created and is ready for use. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
409 + |
+Conflict + |
+The request could not be processed due to a conflict. + |
+
This API is used to preview a stack.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
stack_name + |
+body + |
+String + |
+Yes + |
+Specifies the stack name. +
|
+
template_url + |
+body + |
+String + |
+No + |
+Specifies the template URL. You cannot select a template using the URL temporarily. + |
+
template + |
+body + |
+Dict + |
+Yes + |
+Specifies the template. The template content must use the YAML syntax. + |
+
files + |
+body + |
+Dict + |
+No + |
+Specifies the files referenced in the environment. + |
+
disable_rollback + |
+body + |
+Boolean + |
+No + |
+Specifies whether to perform a rollback when stack creation fails. + |
+
parameters + |
+body + |
+Dict + |
+No + |
+Specifies parameter information of the stack. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
stack + |
+body + |
+Dict + |
+Specifies the stack object. + |
+
stack structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
parent + |
+body + |
+String + |
+Specifies the UUID of the parent stack (for a nested stack). + |
+
id + |
+body + |
+String + |
+Specifies the stack UUID. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the stack URL list. + |
+
stack_name + |
+body + |
+String + |
+Specifies the stack name. + |
+
description + |
+body + |
+String + |
+Describes the stack. + |
+
template_description + |
+body + |
+String + |
+Describes the template defined by the stack. + |
+
timeout_mins + |
+body + |
+Int + |
+Specifies the timeout duration. + |
+
disable_rollback + |
+body + |
+Boolean + |
+Specifies whether to perform a rollback when stack creation fails. + |
+
capabilities + |
+body + |
+List + |
+Specifies the list of stack capacities. + |
+
creation_time + |
+body + |
+Date Time + |
+Specifies the time when the stack was created. + |
+
notification_topics + |
+body + |
+List + |
+Specifies the message notification list of the stack. + |
+
updated_time + |
+body + |
+Date Time + |
+Specifies the last time when the stack was updated. + |
+
stack_owner + |
+body + |
+Sting + |
+Specifies the name of the stack owner. + |
+
parameters + |
+body + |
+Dict + |
+Specifies parameters defined by the stack. + |
+
resources + |
+body + |
+List <dict> + |
+Specifies the stack resource list. + |
+
POST /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/preview
+{
+ "files": {},
+ "disable_rollback": true,
+ "parameters": {
+ "flavor": "m1.heat"
+ },
+ "stack_name": "teststack",
+ "template": {
+ "heat_template_version": "2013-05-23",
+ "description": "Simple template to test heat commands",
+ "parameters": {
+ "flavor": {
+ "default": "m1.tiny",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "hello_world": {
+ "type": "OS::Nova::Server",
+ "properties": {
+ "key_name": "heat_key",
+ "flavor": {
+ "get_param": "flavor"
+ },
+ "image": "40be8d1a-3eb9-40de-8abd-43237517384f",
+ "user_data": "#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n"
+ }
+ }
+ }
+ },
+ "timeout_mins": 60
+}
+{
+ "stack": {
+ "capabilities": [],
+ "creation_time": "2015-01-31T15:12:36Z",
+ "description": "HOT template for Nova Server resource.\n",
+ "disable_rollback": true,
+ "id": "None",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/6e18cc2bdbeb48a5basad2dc499f6804/stacks/test_stack/None",
+ "rel": "self"
+ }
+ ],
+ "notification_topics": [],
+ "parameters": {
+ "OS::project_id": "6e18cc2bdbeb48a5basad2dc499f6804",
+ "OS::stack_id": "None",
+ "OS::stack_name": "teststack",
+ "admin_user": "cloud-user",
+ "flavor": "m1.small",
+ "image": "F20-cfg",
+ "key_name": "heat_key",
+ "server_name": "MyServer"
+ },
+ "parent": null,
+ "resources": [
+ {
+ "attributes": {},
+ "description": "",
+ "metadata": {},
+ "physical_resource_id": "",
+ "properties": {
+ "description": "Ping and SSH",
+ "name": "the_sg",
+ "rules": [
+ {
+ "direction": "ingress",
+ "ethertype": "IPv4",
+ "port_range_max": null,
+ "port_range_min": null,
+ "protocol": "icmp",
+ "remote_group_id": null,
+ "remote_ip_prefix": null,
+ "remote_mode": "remote_ip_prefix"
+ },
+ {
+ "direction": "ingress",
+ "ethertype": "IPv4",
+ "port_range_max": 65535,
+ "port_range_min": 1,
+ "protocol": "tcp",
+ "remote_group_id": null,
+ "remote_ip_prefix": null,
+ "remote_mode": "remote_ip_prefix"
+ },
+ {
+ "direction": "ingress",
+ "ethertype": "IPv4",
+ "port_range_max": 65535,
+ "port_range_min": 1,
+ "protocol": "udp",
+ "remote_group_id": null,
+ "remote_ip_prefix": null,
+ "remote_mode": "remote_ip_prefix"
+ }
+ ]
+ },
+ "required_by": [
+ "server1"
+ ],
+ "resource_action": "INIT",
+ "resource_identity": {
+ "path": "/resources/the_sg_res",
+ "stack_id": "None",
+ "stack_name": "teststack",
+ "tenant": "6e18cc2bdbeb48a5b3cad2dc499f6804"
+ },
+ "resource_name": "the_sg_res",
+ "resource_status": "COMPLETE",
+ "resource_status_reason": "",
+ "resource_type": "OS::Neutron::SecurityGroup",
+ "stack_identity": {
+ "path": "",
+ "stack_id": "None",
+ "stack_name": "teststack",
+ "tenant": "6e18cc2bdbeb48a5b3cad2dc499f6804"
+ },
+ "stack_name": "teststack",
+ "updated_time": "2015-01-31T15:12:36Z"
+ },
+ {
+ "attributes": {
+ "accessIPv4": "",
+ "accessIPv6": "",
+ "addresses": "",
+ "console_urls": "",
+ "first_address": "",
+ "instance_name": "",
+ "name": "MyServer",
+ "networks": "",
+ "show": ""
+ },
+ "description": "",
+ "metadata": {},
+ "physical_resource_id": "",
+ "properties": {
+ "admin_pass": null,
+ "admin_user": "cloud-user",
+ "availability_zone": null,
+ "block_device_mapping": null,
+ "config_drive": null,
+ "diskConfig": null,
+ "flavor": "m1.small",
+ "flavor_update_policy": "RESIZE",
+ "image": "F20-cfg",
+ "image_update_policy": "REPLACE",
+ "key_name": "heat_key",
+ "metadata": {
+ "ha_stack": "None"
+ },
+ "name": "MyServer",
+ "networks": [
+ {
+ "fixed_ip": null,
+ "network": "private",
+ "port": null,
+ "uuid": null
+ }
+ ],
+ "personality": {},
+ "reservation_id": null,
+ "scheduler_hints": null,
+ "security_groups": [
+ "None"
+ ],
+ "software_config_transport": "POLL_SERVER_CFN",
+ "user_data": "",
+ "user_data_format": "HEAT_CFNTOOLS"
+ },
+ "required_by": [],
+ "resource_action": "INIT",
+ "resource_identity": {
+ "path": "/resources/hello_world",
+ "stack_id": "None",
+ "stack_name": "teststack",
+ "tenant": "6e18cc2bdbeb48a3433cad2dc499sdf32234"
+ },
+ "resource_name": "hello_world",
+ "resource_status": "COMPLETE",
+ "resource_status_reason": "",
+ "resource_type": "OS::Nova::Server",
+ "stack_identity": {
+ "path": "",
+ "stack_id": "None",
+ "stack_name": "teststack",
+ "tenant": "6e18cc2bdbeb48a3433cad2dc499sdf32234"
+ },
+ "stack_name": "teststack",
+ "updated_time": "2015-01-31T15:12:36Z"
+ }
+ ],
+ "stack_name": "test_stack",
+ "stack_owner": "admin",
+ "template_description": "HOT template for Nova Server resource.\n",
+ "timeout_mins": null,
+ "updated_time": null
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
201 + |
+Created + |
+The resource has been created and is ready for use. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
409 + |
+Conflict + |
+The request could not be processed due to a conflict. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to query details of a stack.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}
+
This API supports redirection. During the calling, you can specify only stack_name or stack_id.
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
stack + |
+body + |
+Dict + |
+Specifies the stack object. + |
+
stack structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
disable_rollback + |
+body + |
+Boolean + |
+Specifies whether to perform a rollback when stack creation fails. + |
+
description + |
+body + |
+String + |
+Describes the stack. + |
+
parent + |
+body + |
+String + |
+Specifies the ID of the parent stack if the stack is the nesting type. + |
+
tags + |
+body + |
+Array + |
+Specifies whether to perform a rollback when stack creation fails. + |
+
parameters + |
+body + |
+Dict + |
+Specifies parameter information of the stack. + |
+
stack_status_reason + |
+body + |
+String + |
+Describes the stack operation. + |
+
stack_name + |
+body + |
+String + |
+Specifies the stack name. + |
+
stack_user_project_id + |
+body + |
+String + |
+This is a reserved parameter. + |
+
outputs + |
+body + |
+List + |
+Specifies the output stack list. + |
+
creation_time + |
+body + |
+String + |
+Specifies the time when the stack was created. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the stack URL list. + |
+
capabilities + |
+body + |
+List + |
+Specifies the list of stack capacities. + |
+
notification_topics + |
+body + |
+List + |
+Specifies the message notification list of the stack. + |
+
timeout_mins + |
+body + |
+Integer + |
+Specifies the timeout duration. + |
+
stack_status + |
+body + |
+String + |
+Specifies the stack status. + |
+
stack_owner + |
+body + |
+String + |
+This is a reserved parameter. + |
+
updated_time + |
+body + |
+String + |
+Specifies the time when the stack was updated. + |
+
id + |
+body + |
+String + |
+Specifies the stack UUID. + |
+
template_description + |
+body + |
+String + |
+Describes the template. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306+
{
+ "stack": {
+ "disable_rollback": true,
+ "description": "Hello world HOT template that just defines a single compute instance. Contains just base features to verify base HOT support.\n",
+ "parent": null,
+ "tags": null,
+ "parameters": {
+ "Network": "3f8713b7-8aea-4b0f-a70b-98d4e1d6251f",
+ "OS::stack_name": "HeatStack",
+ "ImageId": "68e22196-a4aa-4946-85c3-75f4957e667a",
+ "OS::stack_id": "c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "KeyName": "heat-key",
+ "OS::project_id": "95d02433133a4c0a87ba6967474a2ad3",
+ "InstanceType": "m1.tiny"
+ },
+ "stack_user_project_id": "95d02433133a4c0a87ba6967474a2ad3",
+ "stack_status_reason": "Stack create completed successfully",
+ "stack_name": "HeatStack",
+ "outputs": [],
+ "creation_time": "2014-01-26T17:21:35Z",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "rel": "self"
+ }
+ ],
+ "capabilities": [],
+ "notification_topics": [],
+ "timeout_mins": 60,
+ "stack_status": "CREATE_COMPLETE",
+ "stack_owner": null,
+ "updated_time": "2014-01-26T17:21:41Z",
+ "id": "c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "template_description": "Hello world HOT template that just defines a single compute instance. Contains just base features to verify base HOT support.\n"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
302 + |
+Found + |
+The response is about redirection. The response header usually contains a location value that allows you to track the real location of the resource. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to update a stack.
+PUT /v1/{project_id}/stacks/{stack_name}/{stack_id}
+For details about the parameters, see Table 1.
+ + +Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
template + |
+body + |
+Json + |
+Yes + |
+Specifies the template. The template content must use the YAML syntax. + |
+
template_url + |
+body + |
+String + |
+No + |
+Specifies the template URL. You cannot select a template using the URL temporarily. + |
+
environment + |
+body + |
+Json + |
+No + |
+Specifies information about the environment for creating a stack. + |
+
files + |
+body + |
+Json + |
+No + |
+Specifies the files referenced in the environment. + |
+
parameters + |
+body + |
+Json + |
+No + |
+Specifies parameter information of the stack. + |
+
timeout_mins + |
+body + |
+Int + |
+No + |
+Specifies the timeout duration. + |
+
disable_rollback + |
+body + |
+Boolean + |
+No + |
+Specifies whether to perform a rollback when a stack update fails. + |
+
N/A
+PUT /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306
+{
+ "template": {
+ "heat_template_version": "2013-05-23",
+ "description": "Create a simple stack",
+ "parameters": {
+ "flavor": {
+ "default": "m1.tiny",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "hello_world": {
+ "type": "OS::Nova::Server",
+ "properties": {
+ "key_name": "heat_key",
+ "flavor": {
+ "get_param": "flavor"
+ },
+ "image": "40be8d1a-3eb9-40de-8abd-43237517384f",
+ "user_data": "#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "flavor": "m1.small"
+ }
+}
+None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
202 + |
+Accepted + |
+The request has been accepted, but the processing is not complete. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to delete a stack.
+DELETE /v1/{project_id}/stacks/{stack_name}/{stack_id}
+For details about the parameters, see Table 1.
+ + +N/A
+This request does not return any content in the response body.
+DELETE /v1/9c53a566cb3443ab910cf0daebca90c4/stacks/HeatStack/34247a47-7bf9-4842-a899-421a3cca5779+
None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
204 + |
+No Content + |
+The RTS service has fulfilled the request by deleting the resource. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to query resources of a stack.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources
+
This API supports redirection. During the calling, you can specify only stack_name or stack_id.
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
resources + |
+body + |
+List <dict> + |
+Specifies resource information of the stack. + |
+
resources structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
resource_name + |
+body + |
+String + |
+Specifies the resource name. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the resource URL list. + |
+
logical_resource_id + |
+body + |
+String + |
+Specifies the logical resource ID. + |
+
physical_resource_id + |
+body + |
+String + |
+Specifies the physical resource ID. + |
+
resource_type + |
+body + |
+String + |
+Specifies the resource type. + |
+
resource_status + |
+body + |
+String + |
+Specifies the resource status. + |
+
resource_status_reason + |
+body + |
+String + |
+Specifies the resource operation reason. + |
+
updated_time + |
+body + |
+String + |
+Specifies the time when the resource was updated. + |
+
creation_time + |
+body + |
+String + |
+Specifies the time when the resource was created. + |
+
required_by + |
+body + |
+List <str> + |
+Specifies the resource dependency. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources+
{
+ "resources": [
+ {
+ "resource_name": "instacne_port",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/instacne_port",
+ "rel": "self"
+ },
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "rel": "stack"
+ }
+ ],
+ "logical_resource_id": "instacne_port",
+ "resource_status_reason": "state changed",
+ "updated_time": "2014-01-27T16:28:03Z",
+ "required_by": ["my_instance"],
+ "resource_status": "RESUME_COMPLETE",
+ "physical_resource_id": "202307c7-d10e-4bcf-af85-6253f5d6b022",
+ "resource_type": "OS::Neutron::Port"
+ },
+ {
+ "resource_name": "my_instance",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/my_instance",
+ "rel": "self"
+ },
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "rel": "stack"
+ }
+ ],
+ "logical_resource_id": "my_instance",
+ "resource_status_reason": "state changed",
+ "updated_time": "2014-01-27T16:28:06Z",
+ "required_by": [],
+ "resource_status": "RESUME_COMPLETE",
+ "physical_resource_id": "e722ad16-ff09-4622-aa5c-0466ae4ef8d8",
+ "resource_type": "OS::Nova::Server"
+ }
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
302 + |
+Found + |
+The response is about redirection. The response header usually contains a location value that allows you to track the real location of the resource. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query details of a stack resource.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}
+For details about the parameters, see Table 1.
+ +Parameter + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|
project_id + |
+String + |
+Yes + |
+Specifies the project ID. + |
+
stack_name + |
+String + |
+Yes + |
+Specifies the stack name. + |
+
stack_id + |
+String + |
+Yes + |
+Specifies the stack UUID. + |
+
resource_name + |
+String + |
+Yes + |
+Specifies the name of the resource in the stack. + |
+
N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
resource + |
+body + |
+Dict + |
+Specifies resource information of the stack. + |
+
resource structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
resource_name + |
+body + |
+String + |
+Specifies the resource name. + |
+
description + |
+body + |
+String + |
+Describes the resource. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the resource URL list. + |
+
logical_resource_id + |
+body + |
+String + |
+Specifies the logical resource ID. + |
+
creation_time + |
+body + |
+String + |
+Specifies the time of creating the stack resource. +Example: 2019-04-30T02:55:48.869333 + |
+
physical_resource_id + |
+body + |
+String + |
+Specifies the physical resource ID. + |
+
attributes + |
+body + |
+Object + |
+Includes key-value pairs of the resource attribute. + |
+
resource_type + |
+body + |
+String + |
+Specifies the resource type. + |
+
resource_status + |
+body + |
+String + |
+Specifies the resource status. + |
+
resource_status_reason + |
+body + |
+String + |
+Specifies the resource operation reason. + |
+
updated_time + |
+body + |
+String + |
+Specifies the time when the resource was updated. + |
+
required_by + |
+body + |
+List <str> + |
+Specifies the resource dependency. + |
+
GET /v1/6e0193034db54600b889f890768a72ea/stacks/stack-0vi3/63a16fbe-717b-417c-a3e5-08fc51544b49/resources/random-group+
{
+ "resource": {
+ "attributes": {
+ "attributes": null,
+ "refs": null
+ },
+ "creation_time": "2019-03-04T06:36:45.455761",
+ "description": "",
+ "links": [
+ {
+ "href": "https://orchestration.localdomain.com:8004/v1/6e0193034db54600b889f890768a72ea/stacks/stack-0vi3/63a16fbe-717b-417c-a3e5-08fc51544b49/resources/random-group",
+ "rel": "self"
+ },
+ {
+ "href": "https://orchestration.localdomain.com:8004/v1/6e0193034db54600b889f890768a72ea/stacks/stack-0vi3/63a16fbe-717b-417c-a3e5-08fc51544b49",
+ "rel": "stack"
+ },
+ {
+ "href": "https://orchestration.localdomain.com:8004/v1/6e0193034db54600b889f890768a72ea/stacks/stack-0vi3-random-group-k7emexipm2k6/2b6d0d58-0a7b-45d7-978f-519d0b1395ce",
+ "rel": "nested"
+ }
+ ],
+ "logical_resource_id": "random-group",
+ "physical_resource_id": "2b6d0d58-0a7b-45d7-978f-519d0b1395ce",
+ "required_by": [],
+ "resource_name": "random-group",
+ "resource_status": "CREATE_COMPLETE",
+ "resource_status_reason": "state changed",
+ "resource_type": "OS::Heat::ResourceGroup",
+ "updated_time": "2019-03-04T06:36:45.455761"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query metadata of a stack resource.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/metadata
+For details about the parameters, see Table 1.
+ +Parameter + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|
project_id + |
+String + |
+Yes + |
+Specifies the project ID. + |
+
stack_name + |
+String + |
+Yes + |
+Specifies the stack name. + |
+
stack_id + |
+String + |
+Yes + |
+Specifies the stack UUID. + |
+
resource_name + |
+String + |
+Yes + |
+Specifies the name of the resource in the stack. + |
+
N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
metadata + |
+body + |
+Dict + |
+Specifies the resource metadata. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/my_instance/metadata+
{
+ "metadata": {
+ "Name": "SmokeServer"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to send a signal to a stack resource to change the resource orchestration.
+POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/signal
+For details about the parameters, see Table 1.
+ +Parameter + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|
project_id + |
+String + |
+Yes + |
+Specifies the project ID. + |
+
stack_name + |
+String + |
+Yes + |
+Specifies the stack name. + |
+
stack_id + |
+String + |
+Yes + |
+Specifies the stack UUID. + |
+
resource_name + |
+String + |
+Yes + |
+Specifies the name of the resource in the stack. + |
+
The requested content is determined by the stack resource to which the signal is to be sent. Some resources cannot receive signals.
+
This API is asynchronous. Status code 200 is returned if the request is successfully received.
+This operation does not return the response body.
+POST /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/65eb0ae7-36de-4104-aace-6bd040a2f95f/resources/my_instance/signal+
None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to mark the status of a specified resource as unhealthy.
+PATCH /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name_or_physical_id}
+For details about the parameters, see Table 1.
+ +Parameter + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|
project_id + |
+String + |
+Yes + |
+Specifies the project ID. + |
+
stack_name + |
+String + |
+Yes + |
+Specifies the stack name. + |
+
stack_id + |
+String + |
+Yes + |
+Specifies the stack UUID. + |
+
resource_name_or_physical_id + |
+String + |
+Yes + |
+Specifies the resource name. + |
+
Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
mark_unhealthy + |
+body + |
+Boolean + |
+Yes + |
+Specifies whether to mark the status of a resource as unhealthy. + |
+
resource_status_reason + |
+body + |
+String + |
+No + |
+Describes the cause causing the current resource status. + |
+
This operation does not return the response body.
+PATCH /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/65eb0ae7-36de-4104-aace-6bd040a2f95f/resources/my_instance
+{
+ "mark_unhealthy": false,
+ "resource_status_reason": "test reset"
+}
+None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to cancel updating a stack.
+POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/actions
+For details about the parameters, see Table 1.
+ + +Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
cancel_update + |
+body + |
+Object + |
+Yes + |
+Cancels updating a stack. + |
+
This operation does not return the response body.
+POST /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/actions
+{
+ "cancel_update": null
+}
+None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to check whether a stack is in the expected status.
+POST /v1/{project_id}/stacks/{stack_name}/{stack_id}/actions
+For details about the parameters, see Table 1.
+ + +Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
check + |
+body + |
+Object + |
+Yes + |
+Checks stack resources. + |
+
This operation does not return the response body.
+POST /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/actions
+{
+ "check": null
+}
+None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query events of a stack.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/events
+
This API supports redirection. During the calling, you can specify only stack_name or stack_id.
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
events + |
+body + |
+List <dict> + |
+Specifies the events of a resource. + |
+
events structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
resource_name + |
+body + |
+String + |
+Specifies the resource name. + |
+
event_time + |
+body + |
+String + |
+Specifies the time when an event occurs. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the event URL list. + |
+
logical_resource_id + |
+body + |
+String + |
+Specifies the logical resource ID. + |
+
resource_status_reason + |
+body + |
+String + |
+Specifies the resource operation reason. + |
+
resource_status + |
+body + |
+String + |
+Specifies the resource status. + |
+
physical_resource_id + |
+body + |
+String + |
+Specifies the physical resource ID. + |
+
id + |
+body + |
+String + |
+Specifies the event ID. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/events+
{
+ "events": [
+ {
+ "resource_name": "instacne_port",
+ "event_time": "2014-01-26T17:21:35Z",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/instacne_port/events/1302",
+ "rel": "self"
+ },
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/instacne_port",
+ "rel": "resource"
+ },
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306",
+ "rel": "stack"
+ }
+ ],
+ "logical_resource_id": "instacne_port",
+ "resource_status_reason": "state changed",
+ "resource_status": "CREATE_IN_PROGRESS",
+ "physical_resource_id": null,
+ "id": "1302"
+ }
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
302 + |
+Found + |
+The response is about redirection. The response header usually contains a location value that allows you to track the real location of the resource. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query events of a stack resource.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/events
+For details about the parameters, see Table 1.
+ +Parameter + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|
project_id + |
+String + |
+Yes + |
+Specifies the project ID. + |
+
stack_name + |
+String + |
+Yes + |
+Specifies the stack name. + |
+
stack_id + |
+String + |
+Yes + |
+Specifies the stack UUID. + |
+
resource_name + |
+String + |
+Yes + |
+Specifies the name of the resource in the stack. + |
+
N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
events + |
+body + |
+List <dict> + |
+Specifies the events of a resource. + |
+
events structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
resource_name + |
+body + |
+String + |
+Specifies the resource name. + |
+
event_time + |
+body + |
+String + |
+Specifies the time when an event occurs. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the event URL list. + |
+
logical_resource_id + |
+body + |
+String + |
+Specifies the logical resource ID. + |
+
resource_status_reason + |
+body + |
+String + |
+Specifies the resource operation reason. + |
+
resource_status + |
+body + |
+String + |
+Specifies the resource status. + |
+
physical_resource_id + |
+body + |
+String + |
+Specifies the physical resource ID. + |
+
id + |
+body + |
+String + |
+Specifies the event ID. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/my_instance/events+
{
+ "events": [
+ {
+ "resource_name": "my_instance",
+ "event_time": "2014-01-26T17:21:35Z",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/my_instance/events/1304",
+ "rel": "self"
+ }
+ ],
+ "logical_resource_id": "instacne_port",
+ "resource_status_reason": "state changed",
+ "resource_status": "CREATE_IN_PROGRESS",
+ "physical_resource_id": null,
+ "id": "1302"
+ }
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query details of a stack resource event.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/resources/{resource_name}/events/{event_id}
+For details about the parameters, see Table 1.
+ +Parameter + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|
project_id + |
+String + |
+Yes + |
+Specifies the project ID. + |
+
stack_name + |
+String + |
+Yes + |
+Specifies the stack name. + |
+
stack_id + |
+String + |
+Yes + |
+Specifies the stack UUID. + |
+
resource_name + |
+String + |
+Yes + |
+Specifies the name of the resource in the stack. + |
+
event_id + |
+String + |
+Yes + |
+Specifies the UUID of the event related to the resource in the stack. + |
+
N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
event + |
+body + |
+Dict + |
+Specifies a resource event. + |
+
event structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
event_time + |
+body + |
+String + |
+Specifies the time when an event occurs. + |
+
id + |
+body + |
+String + |
+Specifies the UUID of the event object. + |
+
links + |
+body + |
+List <dict> + |
+Specifies the event URL list. Each URL is a JSON object with one href keyword for identifying the URL and one rel keyword indicating the event relationship. Multiple URLs may be returned. + |
+
logical_resource_id + |
+body + |
+String + |
+Specifies the logical stack resource ID. + |
+
physical_resource_id + |
+body + |
+String + |
+Specifies the physical stack resource ID. + |
+
resource_name + |
+body + |
+String + |
+Specifies the resource name. + |
+
resource_properties + |
+body + |
+Dict + |
+Specifies the mapping between resource attributes and events. + |
+
resource_status + |
+body + |
+String + |
+Specifies the resource status. + |
+
resource_status_reason + |
+body + |
+String + |
+Specifies the cause causing the current stack resource status. + |
+
resource_type + |
+body + |
+String + |
+Specifies the resource type name. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/resources/random_str/events/1313+
{
+ "event": {
+ "event_time": "2014-02-18T18:23:27Z",
+ "id": "485",
+ "links": [
+ {
+ "href": "http://x.x.x.x:8004/v1/8443bcd779f3435e86e1cbf73d98a89c/stacks/heat168714801/e6d10493-8d85-46cb-bf3c-e5572f255ef5/resources/random_str/events/1313",
+ "rel": "self"
+ },
+ {
+ "href": "http://x.x.x.x:8004/v1/8443bcd779f3435e86e1cbf73d98a89c/stacks/heat168714801/e6d10493-8d85-46cb-bf3c-e5572f255ef5/resources/random_str",
+ "rel": "resource"
+ },
+ {
+ "href": "http://x.x.x.x:8004/v1/8443bcd779f3435e86e1cbf73d98a89c/stacks/heat168714801/e6d10493-8d85-46cb-bf3c-e5572f255ef5",
+ "rel": "stack"
+ }
+ ],
+ "logical_resource_id": "random_key_name",
+ "physical_resource_id": null,
+ "resource_name": "random_key_name",
+ "resource_properties": {
+ "character_classes": null,
+ "character_sequences": null,
+ "length": 8,
+ "salt": null,
+ "sequence": null
+ },
+ "resource_status": "CREATE_IN_PROGRESS",
+ "resource_status_reason": "state changed",
+ "resource_type": "OS::Heat::RandomString"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to query a stack template.
+GET /v1/{project_id}/stacks/{stack_name}/{stack_id}/template
+
This API supports redirection. During the calling, you can specify only stack_name or stack_id.
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
heat_template_version + |
+body + |
+String + |
+Specifies the version of the HOT template. + |
+
outputs + |
+body + |
+Dict + |
+Includes key-value pairs of the output data. + |
+
parameters + |
+body + |
+Dict + |
+Specifies the key-value pairs of template parameters. + |
+
description + |
+body + |
+String + |
+Describes the stack template. + |
+
resources + |
+body + |
+Dict + |
+Specifies the template resources. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/stacks/HeatStack/c89c4bb3-96cb-4a55-aafa-076a7939a306/template+
{
+ "description": "Hello world HOT template that just defines a single server. Contains just base features to verify base HOT support.\n",
+ "heat_template_version": "2013-05-23",
+ "outputs": {
+ "foo": {
+ "description": "Show foo parameter value",
+ "value": {
+ "get_param": "foo"
+ }
+ }
+ },
+ "parameters": {
+ "foo": {
+ "default": "secret",
+ "description": "Name of an existing key pair to use for the server",
+ "hidden": true,
+ "type": "string"
+ }
+ },
+ "resources": {
+ "random_key_name": {
+ "properties": {
+ "length": 8
+ },
+ "type": "OS::Heat::RandomString"
+ }
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to check whether the template syntax meets requirements.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
environment + |
+body + |
+Json + |
+No + |
+Specifies information about the environment for creating a stack. + |
+
files + |
+body + |
+Json + |
+No + |
+Specifies the files referenced in the environment. + |
+
template + |
+body + |
+Json + |
+No + |
+Specifies the stack template on which operations will be performed. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
description + |
+body + |
+String + |
+Describes the template. + |
+
parameters + |
+body + |
+Dict + |
+Specifies the template parameters. + |
+
POST /v1/95d02433133a4c0a87ba6967474a2ad3/validate
+{
+ "template": "heat_template_version: 2014-10-16\ndescription: Create a serious of random string\nparameters:\n length:\n type: number\n default: 4\nresources:\n random:\n type: OS::Heat::RandomString\n properties:\n length: { get_param: length }",
+ "environment": {},
+ "files": {}
+}
+{
+ "Description": "Create a serious of random string",
+ "Parameters": {
+ "length": {
+ "Default": 4,
+ "NoEcho": "false",
+ "Type": "Number",
+ "Description": "",
+ "Label": "length"
+ }
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to query the template of a resource type.
+
The output template parameters of this API are related to the input parameters that you have specified, but the parameters may be different.
+GET /v1/{project_id}/resource_types/{type_name}/template
+For details about the parameters, see Table 1.
+ + +Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
template_type + |
+query + |
+String + |
+No + |
+Specifies the resource template type. +The valid types are cfn and hot. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
outputs + |
+body + |
+Dict + |
+Includes key-value pairs of the output data. + |
+
heat_template_version + |
+body + |
+String + |
+Specifies the version of the HOT template. + |
+
HeatTemplateFormatVersion + |
+body + |
+String + |
+Specifies the version of the CFN template. + |
+
description + |
+body + |
+String + |
+Describes the stack template. + |
+
parameters + |
+body + |
+Dict + |
+Specifies the key-value pairs of template parameters. + |
+
resources + |
+body + |
+Dict + |
+Specifies the template resources. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/resource_types/OS%3A%3AHeat%3A%3ARandomString/template+
{
+ "Outputs": {
+ "value": {
+ "Description": "The random string generated by this resource. This value is also available by referencing the resource.",
+ "Value": "{"Fn::GetAtt": ["RandomString", "value"]}"
+ },
+ "show": {
+ "Description": "Detailed information about resource.",
+ "Value": "{"Fn::GetAtt": ["RandomString", "show"]}"
+ }
+ },
+ "HeatTemplateFormatVersion": "2012-12-12",
+ "Resources": {
+ "RandomString": {
+ "Type": "OS::Heat::RandomString",
+ "Properties": {
+ "length": {
+ "Ref": "length"
+ },
+ "salt": {
+ "Ref": "salt"
+ },
+ "character_sequences": {
+ "Fn::Split": [
+ ",",
+ {
+ "Ref": "character_sequences"
+ }
+ ]
+ },
+ "character_classes": {
+ "Fn::Split": [
+ ",",
+ {
+ "Ref": "character_classes"
+ }
+ ]
+ },
+ "sequence": {
+ "Ref": "sequence"
+ }
+ }
+ }
+ },
+ "Description": "Initial template of RandomString",
+ "Parameters": {
+ "length": {
+ "Default": 32,
+ "Type": "Number",
+ "Description": "Length of the string to generate.",
+ "MaxValue": 512,
+ "MinValue": 1
+ },
+ "salt": {
+ "Type": "String",
+ "Description": "Value which can be set or changed on stack update to trigger the resource for replacement with a new random string. The salt value itself is ignored by the random generator."
+ },
+ "character_sequences": {
+ "Type": "CommaDelimitedList",
+ "Description": "A list of character sequences and their constraints to generate the random string from."
+ },
+ "character_classes": {
+ "Default": [
+ {
+ "class": "lettersdigits",
+ "min": 1
+ }
+ ],
+ "Type": "CommaDelimitedList",
+ "Description": "A list of character class and their constraints to generate the random string from."
+ },
+ "sequence": {
+ "Type": "String",
+ "Description": "Sequence of characters to build the random string from.",
+ "AllowedValues": [
+ "lettersdigits",
+ "letters",
+ "lowercase",
+ "uppercase",
+ "digits",
+ "hexdigits",
+ "octdigits"
+ ]
+ }
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query the type of a resource.
+GET /v1/{project_id}/resource_types/{type_name}
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
attributes + |
+body + |
+Dict + |
+Specifies the resource feature dictionary. + |
+
properties + |
+body + |
+Dict + |
+Specifies the resource attributes, including the description and type. + |
+
resource_type + |
+body + |
+String + |
+Specifies the resource type. + |
+
support_status + |
+body + |
+Dict + |
+Specifies the current status. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/resource_types/OS%3A%3AHeat%3A%3ARandomString+
{
+ "attributes": {
+ "an_attribute": {
+ "description": "A runtime value of the resource."
+ }
+ },
+ "properties": {
+ "a_property": {
+ "constraints": [
+ {
+ "description": "Must be between 1 and 255 characters",
+ "length": {
+ "max": 255,
+ "min": 1
+ }
+ }
+ ],
+ "description": "A resource description.",
+ "required": true,
+ "type": "string",
+ "update_allowed": false
+ }
+ },
+ "resource_type": "OS::Heat::AResourceName",
+ "support_status": {
+ "message": "A status message",
+ "status": "SUPPORTED",
+ "version": "2014.1"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query resource types.
+N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
resource_types + |
+body + |
+List <str> + |
+Specifies the resource type list. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/resource_types+
{
+ "resource_types": [
+ "OS::Nova::Server",
+ "OS::Neutron::Net",
+ "OS::Neutron::Port",
+ "OS::Cinder::VolumeAttachment",
+ "OS::Neutron::RouterInterface",
+ "OS::Neutron::Router"
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
This API is used to query the building information.
+N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
api + |
+body + |
+Dict + |
+Specifies the API information. + |
+
engine + |
+body + |
+Dict + |
+Specifies the engine information. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/build_info+
{
+ "api": {
+ "revision": "{api_build_revision}"
+ },
+ "engine": {
+ "revision": "{engine_build_revision}"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
401 + |
+Unauthorized + |
+Authorization failed. + |
+
This API is used to create one or more software configurations.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
name + |
+body + |
+String + |
+No + |
+Specifies the name of the software configuration. + |
+
config + |
+body + |
+String + |
+No + |
+Specifies the script used for defining the configuration. + |
+
group + |
+body + |
+String + |
+No + |
+Specifies the name of the software configuration group. + |
+
inputs + |
+body + |
+List <dict> + |
+No + |
+Specifies the software configuration input. + |
+
outputs + |
+body + |
+List <dict> + |
+No + |
+Specifies the software configuration output. + |
+
options + |
+body + |
+String + |
+No + |
+Specifies options used by a software configuration management tool. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
software_config + |
+body + |
+Dict + |
+Specifies the software configuration information. + |
+
software_config structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
inputs + |
+body + |
+List <dict> + |
+Specifies the software configuration input. + |
+
name + |
+body + |
+String + |
+Specifies the name of the software configuration. + |
+
outputs + |
+body + |
+List <dict> + |
+Specifies the software configuration output. + |
+
creation_time + |
+body + |
+Date Time + |
+Specifies the time when the configuration was created. + |
+
group + |
+body + |
+String + |
+Specifies the name of the software configuration group. + |
+
config + |
+body + |
+String + |
+Specifies the software configuration code. + |
+
options + |
+body + |
+String + |
+Specifies the software configuration options. + |
+
id + |
+body + |
+String + |
+Specifies the software configuration UUID. + |
+
POST /v1/95d02433133a4c0a87ba6967474a2ad3/software_configs
+{
+ "inputs": [
+ {
+ "default": null,
+ "type": "String",
+ "name": "foo",
+ "description": null
+ },
+ {
+ "default": null,
+ "type": "String",
+ "name": "bar",
+ "description": null
+ }
+ ],
+ "group": "script",
+ "name": "a-config-we5zpvyu7b5o",
+ "outputs": [
+ {
+ "type": "String",
+ "name": "result",
+ "error_output": false,
+ "description": null
+ }
+ ],
+ "config": "#!/bin/sh -x\necho \"Writing to /tmp/$bar\"\necho $foo > /tmp/$bar\necho -n \"The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action\" > $heat_outputs_path.result\necho \"Written to /tmp/$bar\"\necho \"Output to stderr\" 1>&2",
+ "options": null
+}
+{
+ "software_config": {
+ "creation_time": "2015-01-31T15:12:36Z",
+ "inputs": [
+ {
+ "default": null,
+ "type": "String",
+ "name": "foo",
+ "description": null
+ },
+ {
+ "default": null,
+ "type": "String",
+ "name": "bar",
+ "description": null
+ }
+ ],
+ "group": "script",
+ "name": "a-config-we5zpvyu7b5o",
+ "outputs": [
+ {
+ "type": "String",
+ "name": "result",
+ "error_output": false,
+ "description": null
+ }
+ ],
+ "options": null,
+ "config": "#!/bin/sh -x\necho \"Writing to /tmp/$bar\"\necho $foo > /tmp/$bar\necho -n \"The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action\" > $heat_outputs_path.result\necho \"Written to /tmp/$bar\"\necho \"Output to stderr\" 1>&2",
+ "id": "ddee7aca-aa32-4335-8265-d436b20db4f1"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to query the software configurations.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
limit + |
+query + |
+String + |
+No + |
+Specifies the number of returned software configurations. + |
+
marker + |
+query + |
+String + |
+No + |
+Specifies the software configuration from which the next data record starts to be queried. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
software_configs + |
+body + |
+List <dict> + |
+Specifies the software configuration objects. + |
+
software_configs structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
creation_time + |
+body + |
+String + |
+Specifies the creation time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
group + |
+body + |
+String + |
+Specifies the name of the software configuration group. + |
+
id + |
+body + |
+String + |
+Specifies the software configuration UUID. + |
+
name + |
+body + |
+String + |
+Specifies the name of the software configuration. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/software_configs+
{
+ "software_configs": [
+ {
+ "group": "script",
+ "name": "a-config-we5zpvyu7b5o",
+ "creation_time": "2015-01-31T15:12:36Z",
+ "id": "ddee7aca-aa32-4335-8265-d436b20db4f1",
+ }
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to query details of a software configuration.
+GET /v1/{project_id}/software_configs/{config_id}
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
software_config + |
+body + |
+Dict + |
+Specifies the software configuration list. + |
+
software_config structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
inputs + |
+body + |
+List <dict> + |
+Specifies the software configuration input. + |
+
name + |
+body + |
+String + |
+Specifies the name of the software configuration. + |
+
outputs + |
+body + |
+List <dict> + |
+Specifies the software configuration output. + |
+
creation_time + |
+body + |
+Date Time + |
+Specifies the time when a configuration is created. + |
+
group + |
+body + |
+String + |
+Specifies the name of the software configuration group. + |
+
config + |
+body + |
+String + |
+Specifies the software configuration code. + |
+
options + |
+body + |
+String + |
+Specifies configuration options. + |
+
id + |
+body + |
+String + |
+Specifies the software configuration UUID. + |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/software_configs/40p72423093a900a8b7a669768421a6a+
{
+ "software_config": {
+ "inputs": [
+ {
+ "default": null,
+ "type": "String",
+ "name": "foo",
+ "description": null
+ },
+ {
+ "default": null,
+ "type": "String",
+ "name": "bar",
+ "description": null
+ }
+ ],
+ "group": "script",
+ "name": "a-config-we5zpvyu7b5o",
+ "outputs": [
+ {
+ "type": "String",
+ "name": "result",
+ "error_output": false,
+ "description": null
+ }
+ ],
+ "creation_time": "2015-01-31T15:12:36Z",
+ "id": "ddee7aca-aa32-4335-8265-d436b20db4f1",
+ "config": "#!/bin/sh -x\necho \"Writing to /tmp/$bar\"\necho $foo > /tmp/$bar\necho -n \"The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action\" > $heat_outputs_path.result\necho \"Written to /tmp/$bar\"\necho \"Output to stderr\" 1>&2",
+ "options": null
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to delete a software configuration.
+DELETE /v1/{project_id}/software_configs/{config_id}
+For details about the parameters, see Table 1.
+ + +N/A
+This request does not return any content in the response body.
+DELETE /v1/95d02433133a4c0a87ba6967474a2ad3/software_configs/40p72423093a900a8b7a669768421a6a+
None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
204 + |
+No Content + |
+The RTS service has fulfilled the request by deleting the resource. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
This API is used to create one or more software deployments.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
action + |
+body + |
+String + |
+No + |
+Specifies the stack action that triggers this software deployment. + |
+
config_id + |
+body + |
+String + |
+Yes + |
+Specifies the ID of the software configuration running on a server. + |
+
input_values + |
+body + |
+Object + |
+No + |
+Specifies input data stored in the form of a key-value pair. + |
+
server_id + |
+body + |
+String + |
+Yes + |
+Specifies the ID of the server deployed using the software configuration. + |
+
stack_user_project_id + |
+body + |
+String + |
+No + |
+Specifies the ID of the authenticated tenant who can perform operations on the deployment resources. + |
+
status + |
+body + |
+String + |
+No + |
+Specifies the status of software deployments. Valid values include COMPLETE, IN_PROGRESS, and FAILED. + |
+
status_reason + |
+body + |
+String + |
+No + |
+Specifies the cause of the software deployment status. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
software_deployment + |
+body + |
+Dict + |
+Specifies the software deployment resource object. + |
+
software_deployment structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
action + |
+body + |
+String + |
+Specifies the stack action that triggers this software deployment. + |
+
config_id + |
+body + |
+String + |
+Specifies the ID of the software configuration running on a server. + |
+
creation_time + |
+body + |
+String + |
+Specifies the creation time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
id + |
+body + |
+String + |
+Specifies the software deployment UUID. + |
+
input_values + |
+body + |
+Object + |
+Specifies input data stored in the form of a key-value pair. + |
+
output_values + |
+body + |
+Object + |
+Specifies output data stored in the form of a key-value pair. + |
+
server_id + |
+body + |
+String + |
+Specifies the server ID. + |
+
status + |
+body + |
+String + |
+Specifies the status of software deployments. Valid values include COMPLETE, IN_PROGRESS, and FAILED. + |
+
status_reason + |
+body + |
+String + |
+Specifies the cause of the software deployment status. + |
+
POST /v1/95d02433133a4c0a87ba6967474a2ad3/software_deployments
+{
+ "status": "IN_PROGRESS",
+ "server_id": "ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5",
+ "config_id": "8da95794-2ad9-4979-8ae5-739ce314c5cd",
+ "stack_user_project_id": "c024bfada67845ddb17d2b0c0be8cd79",
+ "action": "CREATE",
+ "status_reason": "Deploy data available"
+}
+{
+ "software_deployment": {
+ "status": "IN_PROGRESS",
+ "server_id": "ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5",
+ "config_id": "8da95794-2ad9-4979-8ae5-739ce314c5cd",
+ "output_values": null,
+ "input_values": null,
+ "action": "CREATE",
+ "status_reason": "Deploy data available",
+ "id": "ef422fa5-719a-419e-a10c-72e3a367b0b8",
+ "creation_time": "2015-01-31T15:12:36Z"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to query software deployments.
+Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
server_id + |
+query + |
+String + |
+No + |
+Specifies the target server ID. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
software_deployments + |
+body + |
+List <dict> + |
+Specifies the software deployment resource object. + |
+
software_deployments structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
action + |
+body + |
+String + |
+Specifies the stack action that triggers this software deployment resource. + |
+
config_id + |
+body + |
+String + |
+Specifies the ID of the software configuration running on a server. + |
+
creation_time + |
+body + |
+String + |
+Specifies the creation time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
id + |
+body + |
+String + |
+Specifies the software deployment UUID. + |
+
input_values + |
+body + |
+Object + |
+Specifies input data stored in the form of a key-value pair. + |
+
output_values + |
+body + |
+Object + |
+Specifies output data stored in the form of a key-value pair. + |
+
server_id + |
+body + |
+String + |
+Specifies the server ID. + |
+
status + |
+body + |
+String + |
+Specifies the current status of software deployments. Valid values include COMPLETE, IN_PROGRESS, and FAILED. + |
+
status_reason + |
+body + |
+String + |
+Specifies the cause of the software deployment resource status. + |
+
updated_time + |
+body + |
+String + |
+Specifies the update time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/software_deployments+
{
+ "software_deployments": [
+ {
+ "status": "COMPLETE",
+ "server_id": "ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5",
+ "config_id": "8da95794-2ad9-4979-8ae5-739ce314c5cd",
+ "output_values": {
+ "deploy_stdout": "Writing to /tmp/barmy\nWritten to /tmp/barmy\n",
+ "deploy_stderr": "+ echo Writing to /tmp/barmy\n+ echo fu\n+ cat /tmp/barmy\n+ echo -n The file /tmp/barmy contains fu for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE\n+ echo Written to /tmp/barmy\n+ echo Output to stderr\nOutput to stderr\n",
+ "deploy_status_code": 0,
+ "result": "The file /tmp/barmy contains fu for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE"
+ },
+ "input_values": null,
+ "action": "CREATE",
+ "status_reason": "Outputs received",
+ "id": "ef422fa5-719a-419e-a10c-72e3a367b0b8",
+ "creation_time": "2015-01-31T15:12:36Z",
+ "updated_time": "2015-01-31T15:18:21Z"
+ }
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to query details of a software deployment.
+GET /v1/{project_id}/software_deployments/{deployment_id}
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
software_deployment + |
+body + |
+List <dict> + |
+Specifies the software deployment objects. + |
+
software_deployment structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
action + |
+body + |
+String + |
+Specifies the stack action that triggers the software deployment. + |
+
config_id + |
+body + |
+String + |
+Specifies the ID of the software configuration running on a server. + |
+
creation_time + |
+body + |
+String + |
+Specifies the creation time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
id + |
+body + |
+String + |
+Specifies the software deployment UUID. + |
+
input_values + |
+body + |
+Object + |
+Specifies input data stored in the form of a key-value pair. + |
+
output_values + |
+body + |
+Object + |
+Specifies output data stored in the form of a key-value pair. + |
+
server_id + |
+body + |
+String + |
+Specifies the server ID. + |
+
status + |
+body + |
+String + |
+Specifies the current status of software deployments. Valid values include COMPLETE, IN_PROGRESS, and FAILED. + |
+
status_reason + |
+body + |
+String + |
+Specifies the cause of the software deployment status. + |
+
updated_time + |
+body + |
+String + |
+Specifies the update time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/software_deployments/3d5ec2a8-7004-43b6-a7f6-542bdbe9d434+
{
+ "software_deployment": {
+ "action": "CREATE",
+ "config_id": "619d6e53-e14b-497f-8852-9c2671b07d79",
+ "creation_time": "2018-05-15T08:48:23.500895",
+ "id": "bb51252e-3e80-4be9-8c06-c52a88e87ec8",
+ "input_values": {},
+ "output_values": null,
+ "server_id": "ca839c6d-c038-46b6-b0b8-8ce78e715639",
+ "status": "IN_PROGRESS",
+ "status_reason": "Deploy data available"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to update a software deployment.
+PUT /v1/{project_id}/software_deployments/{deployment_id}
+For details about the parameters, see Table 1.
+ + +Parameter + |
+In + |
+Type + |
+Mandatory + |
+Description + |
+
|---|---|---|---|---|
action + |
+body + |
+String + |
+No + |
+Specifies the stack action that triggers this software deployment. + |
+
config_id + |
+body + |
+String + |
+No + |
+Specifies the ID of the software configuration running on a server. + |
+
input_values + |
+body + |
+Object + |
+No + |
+Specifies input data stored in the form of a key-value pair. + |
+
output_values + |
+body + |
+Object + |
+No + |
+Specifies output data stored in the form of a key-value pair. + |
+
status + |
+body + |
+String + |
+No + |
+Specifies the status of software deployments. Valid values include COMPLETE, IN_PROGRESS, and FAILED. + |
+
status_reason + |
+body + |
+String + |
+No + |
+Specifies the cause of the software deployment status. + |
+
Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
software_deployment + |
+body + |
+Dict + |
+Specifies the software deployment resource object. + |
+
software_deployment structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
action + |
+body + |
+String + |
+Specifies the stack action that triggers this software deployment. + |
+
config_id + |
+body + |
+String + |
+Specifies the ID of the software configuration running on a server. + |
+
creation_time + |
+body + |
+String + |
+Specifies the creation time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
id + |
+body + |
+String + |
+Specifies the software deployment UUID. + |
+
input_values + |
+body + |
+Object + |
+Specifies input data stored in the form of a key-value pair. + |
+
output_values + |
+body + |
+Object + |
+Specifies output data stored in the form of a key-value pair. + |
+
server_id + |
+body + |
+String + |
+Specifies the server ID. + |
+
status + |
+body + |
+String + |
+Specifies the status of software deployments. Valid values include COMPLETE, IN_PROGRESS, and FAILED. + |
+
status_reason + |
+body + |
+String + |
+Specifies the cause of the software deployment status. + |
+
updated_time + |
+body + |
+String + |
+Specifies the update time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
PUT /v1/95d02433133a4c0a87ba6967474a2ad3/software_deployments/3d5ec2a8-7004-43b6-a7f6-542bdbe9d434
+{
+ "status": "COMPLETE",
+ "output_values": {
+ "deploy_stdout": "Writing to /tmp/baaaaa\nWritten to /tmp/baaaaa\n",
+ "deploy_stderr": "+ echo Writing to /tmp/baaaaa\n+ echo fooooo\n+ cat /tmp/baaaaa\n+ echo -n The file /tmp/baaaaa contains fooooo for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE\n+ echo Written to /tmp/baaaaa\n+ echo Output to stderr\nOutput to stderr\n",
+ "deploy_status_code": 0,
+ "result": "The file /tmp/baaaaa contains fooooo for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE"
+ },
+ "status_reason": "Outputs received"
+}
+{
+ "software_deployment": {
+ "status": "COMPLETE",
+ "server_id": "ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5",
+ "config_id": "3d5ec2a8-7004-43b6-a7f6-542bdbe9d434",
+ "output_values": {
+ "deploy_stdout": "Writing to /tmp/baaaaa\nWritten to /tmp/baaaaa\n",
+ "deploy_stderr": "+ echo Writing to /tmp/baaaaa\n+ echo fooooo\n+ cat /tmp/baaaaa\n+ echo -n The file /tmp/baaaaa contains fooooo for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE\n+ echo Written to /tmp/baaaaa\n+ echo Output to stderr\nOutput to stderr\n",
+ "deploy_status_code": 0,
+ "result": "The file /tmp/baaaaa contains fooooo for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE"
+ },
+ "input_values": null,
+ "action": "CREATE",
+ "status_reason": "Outputs received",
+ "id": "06e87bcc-33a2-4bce-aebd-533e698282d3",
+ "creation_time": "2015-01-31T15:12:36Z",
+ "updated_time": "2015-01-31T15:18:21Z"
+ }
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to delete a software deployment.
+DELETE /v1/{project_id}/software_deployments/{deployment_id}
+For details about the parameters, see Table 1.
+ + +N/A
+This request does not return any content in the response body.
+DELETE /v1/95d02433133a4c0a87ba6967474a2ad3/software_deployments/80p72409093a9005bb7a6698c85a1b61+
None
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
204 + |
+No Content + |
+The RTS service has fulfilled the request by deleting the resource. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+
This API is used to view the metadata configured on a server.
+GET /v1/{project_id}/software_deployments/metadata/{server_id}
+For details about the parameters, see Table 1.
+ + +N/A
+Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
metadata + |
+body + |
+List <dict> + |
+Specifies the software deployment metadata. + |
+
metadata structure information
+ +Parameter + |
+In + |
+Type + |
+Description + |
+
|---|---|---|---|
config + |
+body + |
+String + |
+Specifies the configuration script or list. + |
+
creation_time + |
+body + |
+String + |
+Specifies the creation time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
group + |
+body + |
+String + |
+Specifies the name of the software configuration group. + |
+
id + |
+body + |
+String + |
+Specifies the software configuration UUID. + |
+
inputs + |
+body + |
+List <dict> + |
+Specifies the software configuration input. + |
+
name + |
+body + |
+String + |
+Specifies the name of the software configuration. + |
+
options + |
+body + |
+String + |
+Contains mapping for the options of the software management tool that this resource uses. + |
+
outputs + |
+body + |
+List <dict> + |
+Specifies the software configuration output. + |
+
updated_time + |
+body + |
+String + |
+Specifies the update time. The timestamp uses the ISO 8601 format: +CCYY-MM-DDThh:mm:ss±hh:mm+ |
+
GET /v1/95d02433133a4c0a87ba6967474a2ad3/software_deployments/metadata/6a5eca38-6a04-4b26-6af5-543cdbd3d5e4+
{
+ "metadata": [
+ {
+ "inputs": [
+ {
+ "default": null,
+ "type": "String",
+ "name": "foo",
+ "value": "fooooo",
+ "description": null
+ },
+ {
+ "default": null,
+ "type": "String",
+ "name": "bar",
+ "value": "baaaaa",
+ "description": null
+ },
+ {
+ "type": "String",
+ "name": "deploy_server_id",
+ "value": "ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5",
+ "description": "ID of the server being deployed to"
+ },
+ {
+ "type": "String",
+ "name": "deploy_action",
+ "value": "CREATE",
+ "description": "Name of the current action being deployed"
+ },
+ {
+ "type": "String",
+ "name": "deploy_stack_id",
+ "value": "a/9bd57090-8954-48ab-bab9-adf9e1ac70fc",
+ "description": "ID of the stack this deployment belongs to"
+ },
+ {
+ "type": "String",
+ "name": "deploy_resource_name",
+ "value": "deployment",
+ "description": "Name of this deployment resource in the stack"
+ },
+ {
+ "type": "String",
+ "name": "deploy_signal_id",
+ "value": "http://x.x.x.x:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3Ae2a84fbdaeb047ae8da4b503f3b69f1f%3Astacks%2Fa%2F9bd57090-8954-48ab-bab9-adf9e1ac70fc%2Fresources%2Fdeployment?Timestamp=2014-03-19T20%3A30%3A59Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=ca3571413e4a49998d580215517b3685&SignatureVersion=2&Signature=w6Iu%2BNbg86mqwSOUf1GLuKPO7KaD82PiGpL4ig9Q1l4%3D",
+ "description": "ID of signal to use for signalling output values"
+ }
+ ],
+ "group": "script",
+ "name": "a-config-we5zpvyu7b5o",
+ "outputs": [
+ {
+ "type": "String",
+ "name": "result",
+ "error_output": false,
+ "description": null
+ }
+ ],
+ "options": null,
+ "creation_time": "2015-01-31T15:12:36Z",
+ "updated_time": "2015-01-31T15:18:21Z",
+ "config": "#!/bin/sh -x\necho \"Writing to /tmp/$bar\"\necho $foo > /tmp/$bar\necho -n \"The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action\" > $heat_outputs_path.result\necho \"Written to /tmp/$bar\"\necho \"Output to stderr\" 1>&2",
+ "id": "3d5ec2a8-7004-43b6-a7f6-542bdbe9d434"
+ },
+ {
+ "inputs": [
+ {
+ "default": null,
+ "type": "String",
+ "name": "foo",
+ "value": "fu",
+ "description": null
+ },
+ {
+ "default": null,
+ "type": "String",
+ "name": "bar",
+ "value": "barmy",
+ "description": null
+ },
+ {
+ "type": "String",
+ "name": "deploy_server_id",
+ "value": "ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5",
+ "description": "ID of the server being deployed to"
+ },
+ {
+ "type": "String",
+ "name": "deploy_action",
+ "value": "CREATE",
+ "description": "Name of the current action being deployed"
+ },
+ {
+ "type": "String",
+ "name": "deploy_stack_id",
+ "value": "a/9bd57090-8954-48ab-bab9-adf9e1ac70fc",
+ "description": "ID of the stack this deployment belongs to"
+ },
+ {
+ "type": "String",
+ "name": "deploy_resource_name",
+ "value": "other_deployment",
+ "description": "Name of this deployment resource in the stack"
+ },
+ {
+ "type": "String",
+ "name": "deploy_signal_id",
+ "value": "http://x.x.x.x:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3Ae2a84fbdaeb047ae8da4b503f3b69f1f%3Astacks%2Fa%2F9bd57090-8954-48ab-bab9-adf9e1ac70fc%2Fresources%2Fother_deployment?Timestamp=2014-03-19T20%3A30%3A59Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=7b761482f8254946bcd3d5ccb36fe939&SignatureVersion=2&Signature=giMfv%2BhrAw6y%2FCMKQIQz2IhO5PkAj5%2BfP5YsL6rul3o%3D",
+ "description": "ID of signal to use for signalling output values"
+ }
+ ],
+ "group": "script",
+ "name": "a-config-we5zpvyu7b5o",
+ "outputs": [
+ {
+ "type": "String",
+ "name": "result",
+ "error_output": false,
+ "description": null
+ }
+ ],
+ "options": null,
+ "creation_time": "2015-01-31T16:14:13Z",
+ "updated_time": "2015-01-31T16:18:19Z",
+ "config": "#!/bin/sh -x\necho \"Writing to /tmp/$bar\"\necho $foo > /tmp/$bar\necho -n \"The file /tmp/$bar contains `cat /tmp/$bar` for server $deploy_server_id during $deploy_action\" > $heat_outputs_path.result\necho \"Written to /tmp/$bar\"\necho \"Output to stderr\" 1>&2",
+ "id": "8da95794-2ad9-4979-8ae5-739ce314c5cd"
+ }
+ ]
+}
+Return Code + |
+Type + |
+Description + |
+
|---|---|---|
200 + |
+OK + |
+Request was successful. + |
+
Return Code + |
+Type + |
+Description + |
+
|---|---|---|
400 + |
+Bad Request + |
+The server failed to process the request. + |
+
401 + |
+Unauthorized + |
+Authorization failed. + |
+
404 + |
+Not found + |
+The requested resources are not found. + |
+
500 + |
+Internal Server Error + |
+Failed to complete the request because of an internal service error. + |
+