psm analytics enable-access-rule
Use this command to enable an access rule for a service created with Oracle
Analytics Cloud - Classic.
The access rule must exist for your service and its status must be disabled before you can enable it. To determine whether the access rule exists and if it’s disabled, use the
psm analytics access-rules
command. If the rule is disabled, the status line indicates: {
"description":"",
"destination":"",
"ports":"22",
"ruleName":"corp_vnc",
"ruleType":"DEFAULT",
"source":"PUBLIC-INTERNET",
"status":"disabled"
},
You can disable rules of both types USER and DEFAULT. Syntax
psm analytics enable-access-rule -s|--service-name serviceName
-r|--rule-name ruleName
[-of|--output-format json|html|short]
Parameters
Option | Description |
---|---|
-s|--service-name serviceName |
Name of the service. |
-r|--rule-name ruleName |
Name of the rule you want to enable. |
-of|--output-format json|html |
(Optional) Desired output format.
Accepted values: |
Example
$ psm analytics enable-access-rule -s Example1Service -r corp_vnc
Response:
{
"description":"",
"destination":"",
"ports":"22",
"ruleName":"corp_vnc",
"ruleType":"DEFAULT",
"source":"PUBLIC-INTERNET",
"status":"enabled"
}