psm dbcs delete-access-rule

Delete an access rule from an Oracle Database Cloud Service instance.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

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

Parameters

Parameter Description

-s|--service-name instance-name

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

-r|--rule-name rule-name

Specifies the name of the access rule 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 access rule example-https from the db12c-xp-si2 Database Cloud Service instance.

$ psm dbcs delete-access-rule --service-name db12c-xp-si2 --rule-name example-https
{
    "rule":{
        "ruleName":"example-https",
        "description":"",
        "status":"enabled",
        "source":"192.0.2.0/24",
        "destination":"DB",
        "ports":"443",
        "ruleType":"USER"
    }
}