{
    "swagger":"2.0",
    "info":{
        "title":"REST API for Oracle Cloud Stack Manager",
        "description":"The Oracle Cloud Stack REST API helps you create Cloud Stack Templates, Cloud Stacks and also helps you manage the life cycle of Cloud Stacks",
        "version":"2019.09.09",
        "x-summary":"The Oracle Cloud Stack REST API helps you create Cloud Stack Templates, Cloud Stacks and also helps you manage the life cycle of Cloud Stacks"
    },
    "schemes":[
        "http"
    ],
    "paths":{
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/templates/cst/instances":{
            "post":{
                "summary":"Import a Template",
                "description":"<p>Import a new cloud stack template file or update an existing template with a new file.</p><p>The values of the <i>templateName</i> and <i>templateVersion</i> attributes in the template file are used to uniquely identify a template in Oracle Cloud Stack. To update an existing template, edit the template file and modify the <i>templateVersion</i> attribute.</p><p>When you import a template with the same name as an existing template in this account, you create a new version of the template. Any existing stacks that were created from previous versions of this template are not affected.</p>",
                "operationId":"importTemplate",
                "consumes":[
                    "multipart/form-data"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"template",
                        "in":"formData",
                        "description":"A YAML file containing template contents",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "201":{
                        "description":"Created. The import was successful.",
                        "schema":{
                            "$ref":"#/definitions/viewtemplate-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    },
                    "500":{
                        "description":"Server Error. Returned if a server error has occurred."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-templates-cst-instances-post",
                "tags":[
                    "Oracle Cloud Stack Template"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-templates-cst-instances-post"
            },
            "get":{
                "summary":"List All Templates",
                "description":"View a list of available templates",
                "operationId":"getTemplates",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"expand",
                        "in":"query",
                        "description":"The types of information to retrieve. Currently the only valid value is associatedStacks.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"orderBy",
                        "in":"query",
                        "description":"The template attributes used to sort the list. Valid values are createdOn, templateName, templateState and createdBy.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/viewall-response"
                        }
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-templates-cst-instances-get",
                "tags":[
                    "Oracle Cloud Stack Template"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-templates-cst-instances-get"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/templates/cst/instances/{templateName}":{
            "get":{
                "summary":"View Template Details",
                "description":"Retrieve information about a specific template",
                "operationId":"getTemplateDetails",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"templateName",
                        "in":"path",
                        "description":"Name of the template to retrieve",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"version",
                        "in":"query",
                        "description":"Version of the template to retrieve",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"expand",
                        "in":"query",
                        "description":"The types of information to retrieve. Currently the only valid value is associatedStacks.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/viewtemplate-response"
                        }
                    },
                    "404":{
                        "description":"Not Found. Returned if the template does not exist."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-templates-cst-instances-{templateName}-get",
                "tags":[
                    "Oracle Cloud Stack Template"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-templates-cst-instances-templatename-get"
            },
            "delete":{
                "summary":"Delete a Template",
                "description":"Delete an existing template",
                "operationId":"deleteTemplate",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"templateName",
                        "in":"path",
                        "description":"Name of the template to be deleted",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"version",
                        "in":"query",
                        "description":"Version of the template to be deleted",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/default-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    },
                    "401":{
                        "description":"Unauthorized. Returned if there is a unauthorized delete performed."
                    },
                    "404":{
                        "description":"Not Found. Returned if the template does not exist."
                    },
                    "500":{
                        "description":"Server Error. Returned if a server error has occurred."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-templates-cst-instances-{templateName}-delete",
                "tags":[
                    "Oracle Cloud Stack Template"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-templates-cst-instances-templatename-delete"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/templates/cst/instances/{templateName}/export":{
            "get":{
                "summary":"Export a Template",
                "description":"Export an existing template as a YAML file",
                "operationId":"exportTemplate",
                "produces":[
                    "text/plain"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"templateName",
                        "in":"path",
                        "description":"Name of the template to export",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"version",
                        "in":"query",
                        "description":"Version of the template to export",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/export-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if unable to export template."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-templates-cst-instances-{templateName}-export-get",
                "tags":[
                    "Oracle Cloud Stack Template"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-templates-cst-instances-templatename-export-get"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/templates/cst/instances/validate":{
            "post":{
                "summary":"Validate a Template",
                "description":"Validate template",
                "operationId":"validateTemplate",
                "consumes":[
                    "multipart/form-data"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"template",
                        "in":"formData",
                        "description":"Template file to validate",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/default-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is invalid template."
                    },
                    "500":{
                        "description":"Server Error. Returned if a server error has occurred."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-templates-cst-instances-validate-post",
                "tags":[
                    "Oracle Cloud Stack Template"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-templates-cst-instances-validate-post"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/services/stack/instances":{
            "post":{
                "summary":"Create a Stack",
                "description":"Create a cloud stack from an existing template",
                "operationId":"createStack",
                "consumes":[
                    "multipart/form-data"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"name",
                        "in":"formData",
                        "description":"Name of the stack to create",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"description",
                        "in":"formData",
                        "description":"Description of the new stack",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"parameterValues",
                        "in":"formData",
                        "description":"Template parameter input values as a JSON object. Each parameter is a name:value pair.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"parameterFile",
                        "in":"formData",
                        "description":"A JSON file containing the template parameter input values. Each parameter is a name:value pair.",
                        "required":false,
                        "type":"file"
                    },
                    {
                        "name":"template",
                        "in":"formData",
                        "description":"Name of an existing template that will be used to create the stack",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"tags",
                        "in":"formData",
                        "description":"Tags assigned to this stack as a JSON array. Each array item is a JSON object with two name:value pairs, key and value. A tag key can contain letters, numbers, dashes (-), and underscores ( _ ).",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "202":{
                        "description":"Accepted. Stack creation is in progress.",
                        "schema":{
                            "$ref":"#/definitions/ondemand-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    },
                    "500":{
                        "description":"Server Error. Returned if a server error has occurred."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-post",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-post"
            },
            "get":{
                "summary":"List All Stacks",
                "description":"Retrieves all stacks in the identity domain.",
                "operationId":"getStacks",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"status",
                        "in":"query",
                        "description":"Retrieve only those stacks with this status. Valid values are NEW, INITIALIZING, READY, CONFIGURING, TERMINATING, STOPPING, STOPPED, STARTING, DISABLING, DISABLED and TERMINATED.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"expand",
                        "in":"query",
                        "description":"The types of information to retrieve. Valid values are ALL, instances, resources, template and attributes.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"orderBy",
                        "in":"query",
                        "description":"The stack attributes used to sort the list. Valid values are createdOn, creator, name, type, and state.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/viewallstacks-response"
                        }
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-get",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-get"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/services/stack/instances/{stackName}":{
            "get":{
                "summary":"View Stack Details",
                "description":"Retrieve information about a specific stack",
                "operationId":"getStackDetails",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"stackName",
                        "in":"path",
                        "description":"Name of the stack to retrieve",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"expand",
                        "in":"query",
                        "description":"The types of information to retrieve. Valid values are ALL, instances, resources, template and attributes.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/viewstack-response"
                        }
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-{stackName}-get",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-stackname-get"
            },
            "put":{
                "summary":"Delete a Stack",
                "description":"Delete an existing stack and terminate its resources",
                "operationId":"deleteStack",
                "consumes":[
                    "multipart/form-data"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"stackName",
                        "in":"path",
                        "description":"Name of the stack to be deleted",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"force",
                        "in":"query",
                        "description":"By default, Cloud Stack forcibly deletes all resources in the stack if an error occurs. Set to false to stop the deletion of the stack if there is an error.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"retain-resources",
                        "in":"query",
                        "description":"Comma-separated list of tags. Any resources in the stack that are assigned at least one of these tags will not be deleted. To delete the stack without deleting any of its resources, set this parameter to the value _all.",
                        "required":false,
                        "type":"string"
                    },
                    {
                        "name":"config-payload",
                        "in":"formData",
                        "description":"Path to a JSON file containing any deletion parameters for the resources in this stack. These parameters are specific to each resource type.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "202":{
                        "description":"Accepted. The stack deletion is in progress.",
                        "schema":{
                            "$ref":"#/definitions/ondemand-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    },
                    "404":{
                        "description":"Not Found. Returned if the stack does not exist."
                    },
                    "500":{
                        "description":"Server Error. Returned if a server error has occurred."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-{stackName}-put",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-stackname-put"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/services/stack/instances/{stackName}/template":{
            "get":{
                "summary":"Export Stack Template",
                "description":"Export the template used to create a stack as a YAML file",
                "operationId":"exportStackTemplate",
                "produces":[
                    "text/plain"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"stackName",
                        "in":"path",
                        "description":"Name of the stack whose template you want to export",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/exporttemplate-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if unable to export template."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-{stackName}-template-get",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-stackname-template-get"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/services/stack/instances/{stackName}/resume":{
            "post":{
                "summary":"Resume Stack Creation",
                "description":"Continue the creation of a stack that had previously encountered an error and was not automatically rolled back",
                "operationId":"resumeCreateStack",
                "consumes":[
                    "multipart/form-data"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"stackName",
                        "in":"path",
                        "description":"Name of a stack whose creation did not complete successfully",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "202":{
                        "description":"Accepted. The creation of the stack will resume.",
                        "schema":{
                            "$ref":"#/definitions/ondemand-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    },
                    "500":{
                        "description":"Server Error. Returned if a server error has occurred."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-{stackName}-resume-post",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-stackname-resume-post"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/services/stack/instances/{stackName}/start":{
            "post":{
                "summary":"Start a Stack",
                "description":"Start all the resources in the stack.",
                "operationId":"startStack",
                "consumes":[
                    "multipart/form-data"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"stackName",
                        "in":"path",
                        "description":"Name of a stack whose resources are to be started",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"config-payload",
                        "in":"formData",
                        "description":"Path to a JSON file containing any start parameters for the resources in this stack. These parameters are specific to each resource type.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "202":{
                        "description":"Accepted. Will start all the resources in the stack.",
                        "schema":{
                            "$ref":"#/definitions/ondemand-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-{stackName}-start-post",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-stackname-start-post"
            }
        },
        "/paas/api/v1.1/instancemgmt/{identityDomainId}/services/stack/instances/{stackName}/stop":{
            "post":{
                "summary":"Stop a Stack",
                "description":"Stop all the resources in the stack.",
                "operationId":"stopStack",
                "consumes":[
                    "multipart/form-data"
                ],
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"stackName",
                        "in":"path",
                        "description":"Name of a stack whose resources are to be stopped",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"config-payload",
                        "in":"formData",
                        "description":"Path to a JSON file containing any stop parameters for the resources in this stack. These parameters are specific to each resource type.",
                        "required":false,
                        "type":"string"
                    }
                ],
                "responses":{
                    "202":{
                        "description":"Accepted. Will stop all the resources in the stack.",
                        "schema":{
                            "$ref":"#/definitions/ondemand-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    }
                },
                "x-internal-id":"paas-api-v1.1-instancemgmt-{identityDomainId}-services-stack-instances-{stackName}-stop-post",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-instancemgmt-identitydomainid-services-stack-instances-stackname-stop-post"
            }
        },
        "/paas/api/v1.1/activitylog/{identityDomainId}/stack/job/{jobId}":{
            "get":{
                "summary":"View the Status of a Stack Operation",
                "description":"Retrieve information about a specific job in Cloud Stack",
                "operationId":"getStackJobStatus",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"jobId",
                        "in":"path",
                        "description":"ID of the operation to view",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/viewstackjobactivitylog-response"
                        }
                    },
                    "400":{
                        "description":"Bad Request. Returned if there is bad input."
                    },
                    "404":{
                        "description":"Not Found. Returned if the activity log does not exist."
                    }
                },
                "x-internal-id":"paas-api-v1.1-activitylog-{identityDomainId}-stack-job-{jobId}-get",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-activitylog-identitydomainid-stack-job-jobid-get"
            }
        },
        "/paas/api/v1.1/activitylog/{identityDomainId}/stack/{stackName}":{
            "get":{
                "summary":"View a Stack Activity Log",
                "description":"Retrieve the activity log for a specific cloud stack. The activity log is a list of the jobs performed for this cloud stack.",
                "operationId":"getStackLog",
                "produces":[
                    "application/json"
                ],
                "parameters":[
                    {
                        "name":"identityDomainId",
                        "in":"path",
                        "description":"Name of the Oracle Cloud identity domain",
                        "required":true,
                        "type":"string"
                    },
                    {
                        "name":"stackName",
                        "in":"path",
                        "description":"Name of a cloud stack whose activity log you want to view",
                        "required":true,
                        "type":"string"
                    }
                ],
                "responses":{
                    "200":{
                        "description":"OK",
                        "schema":{
                            "$ref":"#/definitions/viewstackactivitylog-response"
                        }
                    },
                    "500":{
                        "description":"Server Error. Returned if a server error has occurred."
                    }
                },
                "x-internal-id":"paas-api-v1.1-activitylog-{identityDomainId}-stack-{stackName}-get",
                "tags":[
                    "Oracle Cloud Stack"
                ],
                "x-filename-id":"paas-api-v1.1-activitylog-identitydomainid-stack-stackname-get"
            }
        }
    },
    "definitions":{
        "viewall-response":{
            "description":"The response body contains information about one or more templates.",
            "properties":{
                "items":{
                    "type":"array",
                    "description":"A list of templates.",
                    "items":{
                        "$ref":"#/definitions/viewtemplate-response"
                    }
                },
                "totalResults":{
                    "type":"integer"
                },
                "links":{
                    "$ref":"#/definitions/links-response"
                }
            }
        },
        "viewtemplate-response":{
            "description":"The response body contains information about the template.",
            "properties":{
                "templateName":{
                    "type":"string",
                    "description":"Name of the template"
                },
                "latestVersion":{
                    "type":"string",
                    "description":"Latest version of the template"
                },
                "description":{
                    "type":"string",
                    "description":"Description of the template"
                },
                "createdBy":{
                    "type":"string",
                    "description":"Name of the user who imported the template"
                },
                "createdOn":{
                    "type":"string",
                    "description":"Time when the template was imported"
                },
                "state":{
                    "type":"string",
                    "description":"Indicates whether or not the template is published"
                },
                "type":{
                    "type":"string",
                    "description":"Indicates whether this template was provided by Oracle (system template) or created by a user"
                },
                "links":{
                    "$ref":"#/definitions/links-response"
                }
            }
        },
        "export-response":{
            "description":"The response body contains template contents in YAML format.",
            "properties":{
                "responseBody":{
                    "type":"string",
                    "description":"Template contents in YAML format."
                }
            }
        },
        "default-response":{
            "description":"The response body contains a result message.",
            "properties":{
                "applications":{
                    "type":"string",
                    "description":"Information about the operation."
                }
            }
        },
        "links-response":{
            "description":"The response body contains a list of links that are related to a template.",
            "properties":{
                "items":{
                    "type":"array",
                    "description":"A list of links.",
                    "items":{
                        "$ref":"#/definitions/link-response"
                    }
                }
            }
        },
        "link-response":{
            "description":"A template link",
            "properties":{
                "rel":{
                    "type":"string",
                    "description":"Link type"
                },
                "href":{
                    "type":"string",
                    "description":"Link URL"
                }
            }
        },
        "viewallstacks-response":{
            "description":"The response body contains information about one or more cloud stacks.",
            "properties":{
                "applications":{
                    "type":"array",
                    "description":"A list of cloud stacks.",
                    "items":{
                        "$ref":"#/definitions/viewstack-response"
                    }
                }
            }
        },
        "ondemand-response":{
            "properties":{
                "details":{
                    "description":"The response body contains information about the requested stack operation.",
                    "properties":{
                        "message":{
                            "type":"string",
                            "description":"Message"
                        },
                        "jobId":{
                            "type":"string",
                            "description":"Job ID"
                        }
                    }
                }
            }
        },
        "viewstack-response":{
            "description":"The response body contains information about the stack.",
            "properties":{
                "identityDomain":{
                    "type":"string",
                    "description":"Name of the Oracle Cloud identity domain"
                },
                "serviceName":{
                    "type":"string",
                    "description":"Name of the stack"
                },
                "description":{
                    "type":"string",
                    "description":"Description of the stack"
                },
                "state":{
                    "type":"string",
                    "description":"Status of the stack"
                },
                "stateDetail":{
                    "type":"string",
                    "description":"Additional description about the stack status"
                },
                "createdBy":{
                    "type":"string",
                    "description":"Name of the user who created the stack"
                },
                "createdOn":{
                    "type":"string",
                    "description":"Creation time of the stack"
                },
                "modifiedOn":{
                    "type":"string",
                    "description":"Modification time of the stack"
                },
                "creationJobId":{
                    "type":"string",
                    "description":"ID of the job that created the stack"
                }
            }
        },
        "viewstackactivitylog-response":{
            "description":"The response body contains the activity log of a stack. The activity log is a list of the jobs performed for this cloud stack.",
            "properties":{
                "activityLogs":{
                    "$ref":"#/definitions/viewstackjobactivitylog-response"
                }
            }
        },
        "viewstackjobactivitylog-response":{
            "description":"The response body contains information about a specific job in Cloud Stack. A job includes a list of log messages.",
            "properties":{
                "activityLogId":{
                    "type":"string",
                    "description":"ID of the activity log that this job belongs to"
                },
                "serviceName":{
                    "type":"string",
                    "description":"Name of the cloud stack"
                },
                "serviceType":{
                    "type":"string",
                    "description":"Type of service (cloudstack)"
                },
                "identityDomain":{
                    "type":"string",
                    "description":"Name of the Oracle Cloud identity domain"
                },
                "serviceId":{
                    "type":"string",
                    "description":"ID for the cloud stack"
                },
                "jobId":{
                    "type":"string",
                    "description":"ID of the job"
                },
                "startDate":{
                    "type":"string",
                    "description":"Start date and time of the operation"
                },
                "endDate":{
                    "type":"string",
                    "description":"End date and time of the operation"
                },
                "status":{
                    "type":"string",
                    "description":"Status of the operation"
                },
                "operationId":{
                    "type":"string",
                    "description":"ID for the operation (the cloud stack ID)"
                },
                "operationType":{
                    "type":"string",
                    "description":"Type of operation"
                },
                "summaryMessage":{
                    "type":"string",
                    "description":"Summary of the operation"
                },
                "authDomain":{
                    "type":"string",
                    "description":"Name of the Oracle Cloud identity domain"
                },
                "authUser":{
                    "type":"string",
                    "description":"Name of the user who initiated the operation"
                },
                "initiatedBy":{
                    "type":"string",
                    "description":"Indicates whether this operation was initiated by a user or the system"
                },
                "messages":{
                    "type":"array",
                    "items":{
                        "$ref":"#/definitions/viewactivitymessage-response"
                    }
                }
            }
        },
        "viewactivitymessage-response":{
            "description":"The response body contains information about a message in the activity log.",
            "properties":{
                "activityDate":{
                    "type":"string",
                    "description":"Date and time of the message"
                },
                "message":{
                    "type":"string",
                    "description":"Message text"
                }
            }
        },
        "exporttemplate-response":{
            "description":"The response body contains template contents in YAML format.",
            "properties":{
                "message":{
                    "type":"string",
                    "description":"Template contents in YAML format."
                }
            }
        }
    },
    "tags":[
        {
            "name":"Oracle Cloud Stack",
            "description":"Create, manage and monitor cloud stacks in Oracle Cloud Stack"
        },
        {
            "name":"Oracle Cloud Stack Template",
            "description":"Create and manage stack templates in Oracle Cloud Stack"
        }
    ]
}