psm dhcs access-rules
List the access rules defined for an Oracle Data Hub Cloud Service cluster.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm dhcs access-rules -s|--service-name cluster-name
[-of|--output-format short|json|html]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the Oracle Data Hub Cloud Service cluster. |
|
(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 cluster1
cluster.
$ psm dhcs access-rules --service-name cluster1
{
"accessRules":[
{
"ruleName":"ora_p2cass_ssh",
"description":"VM SSH port",
"status":"disabled",
"source":"PUBLIC-INTERNET",
"destination":"CASSANDRA_MAIN_SERVER",
"ports":"22",
"protocol":"tcp",
"ruleType":"DEFAULT"
},
{
"ruleName":"ora_trusted_hosts_cp",
"description":"Client connection port",
"status":"enabled",
"source":"127.0.0.1/32,XX.XXX.XXX.176/32",
"destination":"CASSANDRA_MAIN_SERVER",
"ports":"9042",
"protocol":"tcp",
"ruleType":"SYSTEM"
},
{
"ruleName":"ora_p2cass_https",
"description":"Console SSL port",
"status":"enabled",
"source":"PUBLIC-INTERNET",
"destination":"CASSANDRA_MAIN_SERVER",
"ports":"8081",
"protocol":"tcp",
"ruleType":"DEFAULT"
},
{
"ruleName":"sys_infra2cc_admin_ssh",
"description":"DO NOT MODIFY: Permit PSM to ssh to admin host",
"status":"enabled",
"source":"PAAS-INFRA",
"destination":"CASSANDRA_ADMIN_HOST",
"ports":"22",
"protocol":"tcp",
"ruleType":"SYSTEM"
}
],
"activities":[]
}