psm jcs delete-association
This command deletes an association between the specified service and the service identified in the payload.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm jcs delete-association -s|--service-name serviceName
-c|--config-payload pathToJsonPayload
[-of|--output-format json|html|short]
[-wc|--wait-until-complete true|false]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-s|--service-name serviceName |
Name of the Oracle Java Cloud Service instance. |
-c|--config-payload pathToJsonPayload |
Specifies the path to a JSON file containing the information necessary to delete an association. The format of this file, as shown in Payload Example, is the same as the request body you provide when creating a Java Cloud Service instance by using the REST API. For information about this format, see the Request/Body (reassociate-request) section of Associate a Service Instance With a Different Database in the REST API for Oracle Java Cloud Service. |
-of|--output-format json|html|short |
(Optional) Output format of the command’s response:
Accepted values: The default output format is the one you specified when using the |
-wc|--wait-until-complete true|false |
(Optional) If set to True, the command behaves synchronously. That is, it does not return until the submitted job is complete. The following message is displayed until the job is complete:
Accepted value: Default: |
Payload Example
Note:
For a description of the payload parameters, see the Request/Body (reassociate-request) section of Associate a Service Instance With a Different Database in the REST API for Oracle Java Cloud Service.This payload deletes an association called myDBAssociation.
{
"INFRA_DB":{
"destServiceName":"myDBCS02",
"associationName":"myDBAssociation",
"dbaName":"SYS",
"dbaPassword":"password",
}
}
Example
$ psm jcs delete-association -s ExampleInstance -c /home/templates/delete-association-payload.json