PowerBuilder / Core Services API / RemoveImageShapeCompatibilityEntry
Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Resp
integer li_RespStatusCode
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Http.SetRequestHeader("Authorization","{{signature}}")
loo_Http.SetRequestHeader("Date","{{date}}")
loo_Resp = loo_Http.QuickRequest("DELETE","https://iaas.{{region}}.oraclecloud.com/20160918/images/:imageId/shapes/:shapeName")
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
return
end if
li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode <> 204 then
Write-Debug "Response Header:"
Write-Debug loo_Resp.Header
Write-Debug "Response Body:"
Write-Debug loo_Resp.BodyStr
Write-Debug "Failed."
destroy loo_Resp
destroy loo_Http
return
end if
destroy loo_Resp
Write-Debug "Success."
destroy loo_Http
Curl Command
curl -X DELETE
-H "Date: {{date}}"
-H "Authorization: {{signature}}"
https://iaas.{{region}}.oraclecloud.com/20160918/images/:imageId/shapes/:shapeName
Postman Collection Item JSON
{
"name": "RemoveImageShapeCompatibilityEntry",
"request": {
"method": "DELETE",
"header": [
{
"key": "Date",
"value": "{{date}}",
"description": "(Required) Current Date",
"type": "text"
},
{
"key": "Authorization",
"value": "{{signature}}",
"description": "(Required) Signature Authentication on Authorization header",
"type": "text"
}
],
"url": {
"raw": "{{baseUrl}}/images/:imageId/shapes/:shapeName",
"host": [
"{{baseUrl}}"
],
"path": [
"images",
":imageId",
"shapes",
":shapeName"
],
"variable": [
{
"key": "imageId",
"value": "officia sed",
"description": "(Required) The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the image."
},
{
"key": "shapeName",
"value": "amet ut",
"description": "(Required) Shape name."
}
]
},
"description": "Removes a shape from the compatible shapes list for the image."
},
"response": [
{
"name": "The shape has been removed from the compatible shapes list.",
"originalRequest": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/images/:imageId/shapes/:shapeName",
"host": [
"{{baseUrl}}"
],
"path": [
"images",
":imageId",
"shapes",
":shapeName"
],
"variable": [
{
"key": "imageId"
},
{
"key": "shapeName"
}
]
}
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "text",
"header": [
{
"key": "opc-request-id",
"value": "officia sed",
"description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
},
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [
],
"body": ""
},
{
"name": "Bad Request",
"originalRequest": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/images/:imageId/shapes/:shapeName",
"host": [
"{{baseUrl}}"
],
"path": [
"images",
":imageId",
"shapes",
":shapeName"
],
"variable": [
{
"key": "imageId"
},
{
"key": "shapeName"
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "opc-request-id",
"value": "officia sed",
"description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
},
{
"name": "Unauthorized",
"originalRequest": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/images/:imageId/shapes/:shapeName",
"host": [
"{{baseUrl}}"
],
"path": [
"images",
":imageId",
"shapes",
":shapeName"
],
"variable": [
{
"key": "imageId"
},
{
"key": "shapeName"
}
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "opc-request-id",
"value": "officia sed",
"description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
},
{
"name": "Not Found",
"originalRequest": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/images/:imageId/shapes/:shapeName",
"host": [
"{{baseUrl}}"
],
"path": [
"images",
":imageId",
"shapes",
":shapeName"
],
"variable": [
{
"key": "imageId"
},
{
"key": "shapeName"
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"header": [
{
"key": "opc-request-id",
"value": "officia sed",
"description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
},
{
"name": "Internal Server Error",
"originalRequest": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/images/:imageId/shapes/:shapeName",
"host": [
"{{baseUrl}}"
],
"path": [
"images",
":imageId",
"shapes",
":shapeName"
],
"variable": [
{
"key": "imageId"
},
{
"key": "shapeName"
}
]
}
},
"status": "Internal Server Error",
"code": 500,
"_postman_previewlanguage": "json",
"header": [
{
"key": "opc-request-id",
"value": "officia sed",
"description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
},
{
"name": "An error has occurred.",
"originalRequest": {
"method": "DELETE",
"header": [
],
"url": {
"raw": "{{baseUrl}}/images/:imageId/shapes/:shapeName",
"host": [
"{{baseUrl}}"
],
"path": [
"images",
":imageId",
"shapes",
":shapeName"
],
"variable": [
{
"key": "imageId"
},
{
"key": "shapeName"
}
]
}
},
"status": "Internal Server Error",
"code": 500,
"_postman_previewlanguage": "json",
"header": [
{
"key": "opc-request-id",
"value": "officia sed",
"description": "Unique Oracle-assigned identifier for the request. If you need to contact\nOracle about a particular request, please provide the request ID.\n"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"code\": \"et exercitation Excepteur\",\n \"message\": \"irure sit\"\n}"
}
]
}