psm jcs access-rules

Use this command to list access rules for Oracle Java Cloud Service instance.

Syntax

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

psm jcs access-rules -s|--service-name serviceName
    [-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise specified.

Parameter Description
—s|--service-name serviceName Name of the Oracle Java Cloud Service instance.
-of|--output-format html|json|short (Optional) Desired output format.

Accepted values: json, html, short

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

Example

psm jcs access-rules -s ExampleInstance -of json

Response:

{
    "accessRules":[
        {
            "description":"Permit public to https to OTD admin server",
            "destination":"OTD",
            "ports":"8989",
            "ruleName":"ora_p2otd_ahttps",
            "ruleType":"DEFAULT",
            "source":"PUBLIC-INTERNET",
            "status":"enabled"
        },
        {
            "description":"Permit public to https to OTD server",
            "destination":"OTD",
            "ports":"443",
            "ruleName":"ora_p2otd_chttps",
            "ruleType":"DEFAULT",
            "source":"PUBLIC-INTERNET",
            "status":"enabled"
        },
        {
            "description":"Permit public to ssh to OTD server",
            "destination":"OTD",
            "ports":"22",
            "ruleName":"ora_p2otd_ssh",
            "ruleType":"DEFAULT",
            "source":"PUBLIC-INTERNET",
            "status":"enabled"
        },
        {
            "description":"DO NOT MODIFY: Permit http connection to managed servers from OTD",
            "destination":"WLS_MANAGED_SERVER",
            "ports":"8001",
            "ruleName":"sys_otd2ms_chttp",
            "ruleType":"SYSTEM",
            "source":"OTD",
            "status":"enabled"
        },
        {
            "description":"DO NOT MODIFY: Permit https connection to managed servers from OTD",
            "destination":"WLS_MANAGED_SERVER",
            "ports":"8002",
            "ruleName":"sys_otd2ms_chttps",
            "ruleType":"SYSTEM",
            "source":"OTD",
            "status":"enabled"
        },
        {
            "description":"DO NOT MODIFY: Permit admin server to ssh to otd",
            "destination":"OTD",
            "ports":"22",
            "ruleName":"sys_admin2otd_ssh",
            "ruleType":"SYSTEM",
            "source":"WLS_ADMIN_SERVER",
            "status":"enabled"
        },
        {
            "description":"DO NOT MODIFY: Permit listener connection to database from managed servers",
            "destination":"DBaaS:MyDBCS01:DB",
            "ports":"1521",
            "ruleName":"sys_ms2db_dblistener",
            "ruleType":"SYSTEM",
            "source":"WLS_MANAGED_SERVER",
            "status":"enabled"
        },
        {
            "description":"DO NOT MODIFY: Permit managed servers to ssh to db",
            "destination":"DBaaS:MyDBCS01:DB",
            "ports":"22",
            "ruleName":"sys_ms2db_ssh",
            "ruleType":"SYSTEM",
            "source":"WLS_MANAGED_SERVER",
            "status":"enabled"
        },
        {
            "description":"Permit public to ssh to admin server",
            "destination":"WLS_ADMIN_SERVER",
            "ports":"22",
            "ruleName":"ora_p2admin_ssh",
            "ruleType":"DEFAULT",
            "source":"PUBLIC-INTERNET",
            "status":"enabled"
        },
        {
            "description":"Permit public to https to admin server",
            "destination":"WLS_ADMIN_SERVER",
            "ports":"7002",
            "ruleName":"ora_p2admin_ahttps",
            "ruleType":"DEFAULT",
            "source":"PUBLIC-INTERNET",
            "status":"enabled"
        }
    ],
    "activities":[]
}