ComputeContainer restart request
Description
This API restarts the computer container specified by the guid in the URI.
API stability classification
API overview
HTTP | URI | Return | Return type |
---|---|---|---|
POST | csm/ComputeContainer/guid/restart | void | Not applicable |
HTTP request message
Query string parameters
This API does not use query string parameters.
Request message headers
This API uses only common headers listed in HTTP-request-and-response-headers.
Request message body
This API uses the following objects in the request message body JSON.
Top-level objects
Name | Type | Multi- | Description |
---|---|---|---|
callbackURL | String | 0..1 | URL to call when the operation finishes |
postCallout | String | 0..1 | Identifier of a callout to run after the operation executes |
preCallout | String | 0..1 | Identifier of a callout to run before the operation executes |
timeout | Integer | 0..1 | Timeout setting. For more information about using the timeout, see Synchronous-and-asynchronous-operations. Timeout values:
|
HTTP response message
Response message headers
This API uses only common headers listed in HTTP-request-and-response-headers.
Response message body
The response message body contains a Task object.
Example
The following example shows an HTTP request for the API that restarts the computer container specified by the guid in the URI.
{
"timeout": -1,
"preCallout": "",
"postCallout": "",
"callbackURL": "",
}
The following example shows the response for the preceding request.
"cloudClass" : "com.bmc.cloud.model.beans.ServiceOfferingInstance",
"blueprintReference" : "/blueprintreference/706185d5-500c-45e3-a60c-8ada7e23b32b",
"contractLine" : "/contractline/f355b1d3-7db4-4211-ad3f-4997ef724867",
"deploymentModel" : "/deploymentmodel/d7f0e7e7-1f8d-4f2c-932e-7ea94be5ee1d",
"deploymentParameterValue" : [ "/deploymentparametervalue/8c24baae-76e8-4d12-bf12-445c6d945997", "/deploymentparametervalue/e17793d8-3aee-41b8-9b54-47a01222f863" ],
"description" : " ",
"functionalComponents" : [ "/functionalcomponent/8e1207f2-f3f2-4b38-9ef1-ee247fb13d33" ],
"functionalModel" : "/functionalmodel/35d8e76c-36fc-447b-81a6-f4b43f90ef81",
"guid" : "098a0bf5-62fb-4ebc-830b-db5f6adcb9e6",
"hostnamePrefix" : "dubey",
"isMonitoringEnabled" : true,
"isMonitoringPoliciesEnabled" : true,
"isOpsEvalEnabled" : false,
"modifiedDate" : 1503565931000,
"name" : "dubey-1",
"owner" : "EC2CloudAdmin",
"provisionDate" : 1503559039000,
"provisionedFunctionalModel" : "{\r\n \"attributes\" : {\r\n \"functionalcomponent\" : [ {\r\n \"guid\" : \"eb627328-a763-4b11-aa69-2fd459642a96\",\r\n \"name\" : \"EC2_Auto_Comp\"\r\n } ],\r\n \"guid\" : \"35d8e76c-36fc-447b-81a6-f4b43f90ef81\",\r\n \"name\" : \"EC2_Auto_BP\"\r\n },\r\n \"class\" : \"functionalmodel\",\r\n \"version\" : \"4.6\",\r\n \"guid\" : \"036aee1c-9eda-4f23-9b40-9c4a3d0b1299\"\r\n}",
"reconciliationID" : "OI-ef45152729044be2ba2f4e3eb62b9bba",
"resourceSets" : [ "/resourceset/6b8e31fa-1ca9-4f96-9899-06cfd2d61162" ],
"resourceSetsObject" : [ {
"cloudClass" : "com.bmc.cloud.model.beans.ResourceSet",
"compute" : [ "/computecontainer/0fa8e7f6-39d4-4c4e-8039-4c1005d2e61a", "/computecontainer/659ea877-4235-4c4d-b0c4-29eaf95ce2d4" ],
"computeObject" : [ {
"cloudClass" : "com.bmc.cloud.model.beans.ComputeContainer",
"computeContainerNetworkInterface" : [ "/computecontainernetworkinterface/a835fae4-a098-4bf9-bd99-ba4e1fae1d16" ],
"cpus" : 1,
"externalID" : "43a624e1-9534-42bd-8bf8-0a7464011fe1:vpc-45b0c520:ap-northeast-1a:ami-aa9896c4:sg-0f5bb36b:null:windows:t2.small:i-0c75bde6c468376e8:/dev/sda1:NO_CUSTOM_SG_APPLIED",
"guid" : "0fa8e7f6-39d4-4c4e-8039-4c1005d2e61a",
"isVirtual" : true,
"localDisks" : [ "/localdisk/d362ee8e-85f9-453e-a392-af863967f3b5", "/localdisk/3789cc77-34bf-4584-b892-ab2553e8bb29" ],
"logicalHostingEnvironmentID" : "d2fa3a4f-d057-4311-9d14-8ad44232d027",
"modificationDate" : 1503560033000,
"modifiedDate" : 1503560033000,
"name" : "dubey-1",
"nics" : [ "/servernetworkinterface/fc7afd40-f453-45a1-a624-2f8fd02e633b" ],
"operatingSystem" : "/operatingsystem/673c047d-0795-4a8e-bd36-7700b25e8e83",
"owner" : "EC2CloudAdmin",
"provider" : "/provider/43a624e1-9534-42bd-8bf8-0a7464011fe1",
"provisionDate" : 1503559063000,
"reconciliationID" : "OI-ee58e2b205364b769a4bd42205d44ffa",
"resourceSet" : "/resourceset/6b8e31fa-1ca9-4f96-9899-06cfd2d61162",
"server" : "/virtualguest/3c526525-4f8c-4577-a8e6-3774a1bef6a2",
"serviceOfferingInstanceID" : "098a0bf5-62fb-4ebc-830b-db5f6adcb9e6",
"software" : [ ],
"state" : "Running",
"storageConnection" : [ ],
"tenant" : "/organization/AGHAA5V0HC3F9AOBLPTAB3QTELBL5E",
"tokenID" : "EC2-UUID:i-0c75bde6c468376e8",
"totalMemory" : 2048
}, {
"cloudClass" : "com.bmc.cloud.model.beans.ComputeContainer",
"computeContainerNetworkInterface" : [ "/computecontainernetworkinterface/e4d43771-0680-4906-9047-8ecf23c6f7e9" ],
"cpus" : 1,
"externalID" : "43a624e1-9534-42bd-8bf8-0a7464011fe1:vpc-45b0c520:ap-northeast-1a:ami-aa9896c4:sg-0f5bb36b:null:windows:t2.small:i-09f145758917d3ea6:/dev/sda1:NO_CUSTOM_SG_APPLIED",
"guid" : "659ea877-4235-4c4d-b0c4-29eaf95ce2d4",
"isVirtual" : true,
"localDisks" : [ "/localdisk/e01022fa-8caa-45ba-ac12-3931ba23064f", "/localdisk/06028185-a4b0-4284-90f0-fca06436c4cd", "/localdisk/62db3198-8120-4ea4-a3ba-195479a5a1b5" ],
"logicalHostingEnvironmentID" : "d2fa3a4f-d057-4311-9d14-8ad44232d027",
"modificationDate" : 1503565873000,
"modifiedDate" : 1503565873000,
"name" : "dubey-2",
"nics" : [ "/servernetworkinterface/44a2d4c9-537f-409b-aa3a-41fb3af62eb2" ],
"operatingSystem" : "/operatingsystem/48891cb9-3ffd-41d2-ae96-daf1e5d18ef6",
"owner" : "EC2CloudAdmin",
"provider" : "/provider/43a624e1-9534-42bd-8bf8-0a7464011fe1",
"provisionDate" : 1503565701000,
"reconciliationID" : "OI-ab248cc06907412591acaff41dec3629",
"resourceSet" : "/resourceset/6b8e31fa-1ca9-4f96-9899-06cfd2d61162",
"server" : "/virtualguest/c6f5669f-40a3-415a-8014-2e9a1187dac7",
"serviceOfferingInstanceID" : "098a0bf5-62fb-4ebc-830b-db5f6adcb9e6",
"software" : [ ],
"state" : "Running",
"storageConnection" : [ ],
"systemType" : "citrix",
"tenant" : "/organization/AGHAA5V0HC3F9AOBLPTAB3QTELBL5E",
"tokenID" : "dubey-2",
"totalMemory" : 2048
} ],
"guid" : "6b8e31fa-1ca9-4f96-9899-06cfd2d61162",
"logicalHostingEnvironment" : "/logicalhostingenvironment/d2fa3a4f-d057-4311-9d14-8ad44232d027",
"logicalHostingEnvironmentObject" : {
"cloudClass" : "com.bmc.cloud.model.beans.LogicalHostingEnvironment",
"guid" : "d2fa3a4f-d057-4311-9d14-8ad44232d027",
"isNATSupported" : false,
"isTemplate" : false,
"modifiedDate" : 1503313956000,
"resourceHostingEnvironment" : "/logicaldatacenter/a6b6ac91-0724-49d7-ac0b-74f00853f0ef",
"resourceHostingEnvironmentObject" : {
"cloudClass" : "com.bmc.cloud.model.beans.LogicalDataCenter",
"description" : "Amazon AZ (AWS:REGION:AZ) 43a624e1-9534-42bd-8bf8-0a7464011fe1:ap-northeast-1:ap-northeast-1a:default:true",
"externalID" : "43a624e1-9534-42bd-8bf8-0a7464011fe1:ap-northeast-1:ap-northeast-1a:default:true",
"guid" : "a6b6ac91-0724-49d7-ac0b-74f00853f0ef",
"hostingEnvironmentType" : "AWS",
"isOnboarded" : true,
"isTemplate" : false,
"logicalDataCenterNetwork" : [ "/logicaldatacenternetwork/9c96eaf8-6116-4a27-8003-12a7c15d4efe", "/logicaldatacenternetwork/6c31ea9c-d07f-4a04-9a88-9c1239edbeed" ],
"logicalDataCenterUserMap" : [ "/logicaldatacenterusermap/032e6058-6f82-4860-8dd5-ec1375d45945" ],
"logicalHostingEnvironment" : [ "/logicalhostingenvironment/d2fa3a4f-d057-4311-9d14-8ad44232d027" ],
"modifiedDate" : 1503313956000,
"name" : "solqa:ap-northeast-1a",
"provider" : "/provider/43a624e1-9534-42bd-8bf8-0a7464011fe1",
"reconciliationID" : "OI-b949fc2c24ad4dc484de1c1612018c0f",
"region" : "ap-northeast-1",
"tokenID" : "a6b6ac91-0724-49d7-ac0b-74f00853f0ef",
"useExternalDNS" : false,
"useExternalIPAM" : false
},
"useExternalDNS" : false,
"useExternalIPAM" : false
},
"modifiedDate" : 1503559273000,
"name" : "EC2_Auto_RS"
} ],
"serviceOfferingContractLine" : "/serviceofferingcontractline/f355b1d3-7db4-4211-ad3f-4997ef724867",
"serviceRequest" : "/servicerequest/2fcb23c2-92f3-4a27-972e-1cf103e002a0",
"state" : "Installed",
"tenant" : "/organization/AGHAA5V0HC3F9AOBLPTAB3QTELBL5E",
"tokenID" : "098a0bf5-62fb-4ebc-830b-db5f6adcb9e6"
}]