psm dbcs access-rules
List all access rules (Oracle Compute Cloud Service security rules) for an Oracle Database Classic Cloud Service instance.
Syntax
psm dbcs access-rules -s|--service-name instance-name [-of|--output-format json|html|short]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the Database Classic Cloud Service instance for which you want to see a list of access rules. |
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Examples
The following example lists access rules for the db12c-xp-si
Database Classic Cloud
Service instance.
$ psm dbcs access-rules --service-name db12c-xp-si
{
"accessRules":[
{
"ruleName":"ora_p2_ssh",
"description":"",
"status":"enabled",
"source":"PUBLIC-INTERNET",
"destination":"DB",
"ports":"22",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_p2_dblistener",
"description":"",
"status":"disabled",
"source":"PUBLIC-INTERNET",
"destination":"DB",
"ports":"1521",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_p2_http",
"description":"",
"status":"disabled",
"source":"PUBLIC-INTERNET",
"destination":"DB",
"ports":"80",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_p2_httpssl",
"description":"",
"status":"enabled",
"source":"PUBLIC-INTERNET",
"destination":"DB",
"ports":"443",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_p2_httpadmin",
"description":"",
"status":"disabled",
"source":"PUBLIC-INTERNET",
"destination":"DB",
"ports":"4848",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_p2_dbconsole",
"description":"",
"status":"disabled",
"source":"PUBLIC-INTERNET",
"destination":"DB",
"ports":"1158",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_p2_dbexpress",
"description":"",
"status":"disabled",
"source":"PUBLIC-INTERNET",
"destination":"DB",
"ports":"5500",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_trusted_hosts_dblistener",
"description":"DO NOT MODIFY: A secrule to allow specific IPs to connect to this db",
"status":"enabled",
"source":"127.0.0.1/32",
"destination":"DB",
"ports":"1521",
"ruleType":"SYSTEM"
},
{
"ruleName":"example-https",
"description":"",
"status":"enabled",
"source":"192.0.2.0/24",
"destination":"DB",
"ports":"443",
"ruleType":"USER"
},
{
"ruleName":"example-too",
"description":"",
"status":"enabled",
"source":"192.0.2.0/24",
"destination":"DB",
"ports":"443",
"ruleType":"USER"
}
],
"activities":[]
}