psm dbcs delete-service

Delete an Oracle Database Cloud Service instance.

Syntax

psm dbcs delete-service -s|--service-name instance-name [-of|--output-format json|html|short]

Parameters

Parameter Description

-s|--service-name instance-name

Specifies the name of the Database Cloud Service instance you want to delete.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response:

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

Examples

The following example deletes the db12c-eeep Database Cloud Service instance.

$ psm dbcs delete-service --service-name db12c-eeep
{
    "created_by":"dbaasadmin",
    "creation_time":"Tue May 3 0:35:23 UTC 2016",
    "description":"Example deployment",
    "identity_domain":"usexample",
    "last_modified_time":"Tue May 3 0:35:23 UTC 2016",
    "service_name":"db12c-eeep",
    "service_uri":"https://psm.us.oraclecloud.com:443/paas/service/dbcs/api/v1.1/instances/usexample/db12c-eeep",
    "sm_plugin_version":"16.2.1.1",
    "status":"Terminating",
    "version":"12.1.0.2"
}
Job ID : 555373

Here is the information about job 555373 upon successful completion of the operation:

$ psm dbcs operation-status --job-id 555373
{
    "activityLogId":239721,
    "authDomain":"usexample",
    "authUser":"dbaasadmin",
    "endDate":"2016-05-03T04:16:25.399+0000",
    "identityDomain":"usexample",
    "initiatedBy":"USER",
    "jobId":555373,
    "messages":[
        {
            "activityDate":"2016-05-03T04:11:21.554+0000",
            "message":"Activity Submitted"
        },
        {
            "activityDate":"2016-05-03T04:11:27.792+0000",
            "message":"Activity Started"
        },
        {
            "activityDate":"2016-05-03T04:11:27.817+0000",
            "message":"Initiating Database Service Termination..."
        },
        {
            "activityDate":"2016-05-03T04:15:23.569+0000",
            "message":"Stopped all Compute resources..."
        },
        {
            "activityDate":"2016-05-03T04:16:11.298+0000",
            "message":"Removed Compute resources..."
        },
        {
            "activityDate":"2016-05-03T04:16:22.933+0000",
            "message":"Database Service record removal complete..."
        },
        {
            "activityDate":"2016-05-03T04:16:25.399+0000",
            "message":"Activity Ended"
        }
    ],
    "operationId":22847,
    "operationType":"DELETE_SERVICE",
    "serviceId":22847,
    "serviceName":"db12c-eeep",
    "serviceType":"dbaas",
    "startDate":"2016-05-03T04:11:21.554+0000",
    "status":"SUCCEED",
    "summaryMessage":"DELETE_SERVICE"
}