psm oehpcs access-rules

List all access rules for an Oracle Event Hub Cloud Service - Dedicated instance.

Syntax

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

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

Parameters

Parameter Description

-s|--service-name instance-name

Specifies the unique name used to identify the service in the tenant domain.

-of|--output-format short|json|html

(Optional) Specifies the output format of the command’s response:

  • short—output is formatted as a brief summary.

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

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

Examples

The following example lists access rules for the clusterdemo1 instance.

$ psm oehpcs access-rules --service-name clusterdemo1
{
    "accessRules":[
        {
            "ruleName":"ora_p2kafka_ssh",
            "description":"Permit ssh access to nodes",
            "status":"disabled",
            "source":"PUBLIC-INTERNET",
            "destination":"kafka_KAFKA_SERVER",
            "ports":"22",
            "protocol":"tcp",
            "ruleType":"DEFAULT"
        },
        {
            "ruleName":"ora_trusted_hosts_kafka",
            "description":"DO NOT MODIFY: Permit specific IPs to access Kafka port ",
            "status":"enabled",
            "source":"127.0.0.1/32",
            "destination":"kafka_KAFKA_SERVER",
            "ports":"6667",
            "protocol":"tcp",
            "ruleType":"SYSTEM"
        },
        {
            "ruleName":"sys_infra2kaf_admin_ssh",
            "description":"DO NOT MODIFY: Permit PSM to ssh to admin host",
            "status":"enabled",
            "source":"PAAS-INFRA",
            "destination":"kafka_ADMIN_HOST",
            "ports":"22",
            "protocol":"tcp",
            "ruleType":"SYSTEM"
        }
    ],
    "activities":[]
}