View All Rules
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/APICS/instances/{serviceId}/accessrules
Note: ServiceID is the user specified name for the service and is not the ID that's autogenerated for the instance.
Request
-
identityDomainId: string
Name of the identity domain for the API Platform Cloud Service account.
-
serviceId: string
Name of the API Platform Cloud Service instance.
Note: ServiceID is the user specified name for the service and is not the ID that's autogenerated for the instance.
-
Authorization: string
Base64 encoding of the user name and password of the user making the request. For more information, see Security, Authentication and Authorization.
Response
- application/json
200 Response
object
Response Body
-
accessRules:
array accessRules Array
Title:
accessRules Array
Array of JSON objects, with one element for each rule. -
activities:
array activities Array
Title:
activities Array
Groups details about ongoing and failed activity messages, if available.
array
accessRules Array
-
[0]:
object accessRules Array Item
Title:
accessRules Array Item
array
activities Array
-
[0]:
object activities Array Item
Title:
activities Array Item
object
accessRules Array Item
-
description:
string
The Description of the rule.
-
destination:
string
The destination to which traffic is allowed. Valid values include:
OTD
: The Oracle Traffic Director load balancerOTD_ADMIN_HOST
: The administration host for the Oracle Traffic Director load balancerWLS_ADMIN_SERVER
: The WebLogic Server Administration ServerWLS_ADMIN_HOST
: The administration host for WebLogic ServerWLS_MANAGED_SERVER
: A WebLogic Server Managed Server
-
ports:
string
The ports for the rule.
-
ruleName:
string
The name of the rule.
-
ruleType:
string
The type of the rule; one of:
DEFAULT
,SYSTEM
orUSER
. -
source:
string
The source from which traffic is allowed. Valid values include:
PUBLIC-INTERNET
: Any host on the internetOTD
: The Oracle Traffic Director load balancerOTD_ADMIN_HOST
: The administration host for the Oracle Traffic Director load balancerWLS_ADMIN_SERVER
: The WebLogic Server Administration ServerWLS_MANAGED_SERVER
: A WebLogic Server Managed ServerDB
: The database specified when the API Platform Cloud Service instance was created.- A single IP address or a comma-separated list of subnets (in CIDR format) or IPv4 addresses.
-
status:
string
The status of the rule; one of:
disabled
orenabled
.
object
activities Array Item
-
activity:
object activity Object
Title:
activity Object
object
activity Object
-
errors:
string
Error encountered for an ongoing or failed activity.
-
message:
string
Message of an ongoing or failed activity.
Examples
The following example shows how to view details of all the existing access rules by submitting a GET request on the REST resource using cURL. For more information about cURL, see cURL Examples.
curl -i -X GET -u apicsadmin:password -H "Content-Type: application/json" https://example.com:7103/paas/api/v1.1/instancemgmt/apics/services/APICS/instances/testsundBackup/accessrules
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 200 OK Date: Thu, 01 Dec 2016 18:08:48 GMT Transfer-Encoding: chunked Content-Type: application/json X-ORACLE-DMS-ECID: 7077e58cc81a37d2:-4cd90f8:15878a7e3f0:-8000-0000000000010eb6 X-Frame-Options: DENY Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD Access-Control-Allow-Headers: Content-Type, api_key, Authorization Access-Control-Allow-Origin: *
Example of Response Body
The following example shows the contents of the response body in JSON format, including details on all of the existing access rules.
{ "accessRules": [{ "ruleName": "sys_ms2db_dblistener", "description": "DO NOT MODIFY: Permit listener connection to database from managed servers", "status": "enabled", "source": "WLS_MANAGED_SERVER", "destination": "DBaaS:dbinstance:DB_1", "ports": "1521", "protocol": "tcp", "ruleType": "SYSTEM" }, { "ruleName": "sys_ms2db_ssh", "description": "DO NOT MODIFY: Permit managed servers to ssh to db", "status": "enabled", "source": "WLS_MANAGED_SERVER", "destination": "DBaaS:dbinstance:DB_1", "ports": "22", "protocol": "tcp", "ruleType": "SYSTEM" }, { "ruleName": "my_corp_vnc", "description": "corporate to VNC to Admin Server", "status": "enabled", "source": "192.168.0.1/32", "destination": "WLS_ADMIN_SERVER", "ports": "5900", "protocol": "tcp", "ruleType": "USER" }, { "ruleName": "ora_p2admin_ssh", "description": "Permit public to ssh to admin server", "status": "enabled", "source": "PUBLIC-INTERNET", "destination": "WLS_ADMIN_SERVER", "ports": "22", "protocol": "tcp", "ruleType": "DEFAULT" }, { "ruleName": "ora_p2admin_ahttps", "description": "Permit public to https to admin server", "status": "disabled", "source": "PUBLIC-INTERNET", "destination": "WLS_ADMIN_SERVER", "ports": "7002", "protocol": "tcp", "ruleType": "DEFAULT" }, { "ruleName": "ora_p2ms_chttp", "description": "Permit http connection to managed servers from public", "status": "enabled", "source": "PUBLIC-INTERNET", "destination": "WLS_MANAGED_SERVER", "ports": "80", "protocol": "tcp", "ruleType": "DEFAULT" }, { "ruleName": "ora_p2ms_chttps", "description": "Permit https connection to managed servers from public", "status": "enabled", "source": "PUBLIC-INTERNET", "destination": "WLS_MANAGED_SERVER", "ports": "443", "protocol": "tcp", "ruleType": "DEFAULT" }], "activities": [] }