3. Content Rule
( arg-password , arg-string * )
The <do-invoke-rest-endpoint> action initiates a REST request to the endpoint specified by url using the authentication method specified by auth-method. The type of the request(POST, PUT, GET, DELETE) should be specified by type. If the authentication method is oauth2, then the authentication url is specified by auth-url. The request is made using credentials specified by id and <arg-password>. Additional optional arguments to the REST request may be specified by named <arg-string>'s.
Name Description payload
Payload for the REST request
truststore
Trust store.
truststorepwd
Trust store password.
auth-query-name
Authentication Query Name.
auth-query-name
Authentication Query Value.
auth-header-name
Authentication Header Name
auth-header-value
Authentication Header Value
operation-header-name
Operation Header Name
operation-header-value
Operation Header Value
There will be one of these two local variables available to the enclosing policy
depending on the success or failure of this request.
<do-invoke-rest-endpoint auth-method="oauth2" auth-url="https://164.99.90.85:8543/osp/a/idm/auth/oauth2/grant" id="dcsdrv" time-out="30000" type="POST" url="https://164.99.90.85:8543/IDMProv/rest/catalog/resources"> <arg-password> <token-text xml:space="preserve">novell</token-text> </arg-password> <arg-string name="auth-query-name"> <token-text>grant_type</token-text> </arg-string> <arg-string name="auth-query-value"> <token-text>password</token-text> </arg-string> <arg-string name="auth-query-name"> <token-text>username</token-text> </arg-string> <arg-string name="auth-query-value"> <token-text>cn=uaadmin,ou=sa,o=data</token-text> </arg-string> <arg-string name="auth-query-name"> <token-text>password</token-text> </arg-string> <arg-string name="auth-query-value"> <token-text>novell</token-text> </arg-string> <arg-string name="auth-header-name"> <token-text>Content-Type</token-text> </arg-string> <arg-string name="auth-header-value"> <token-text>application/x-www-form-urlencoded</token-text> </arg-string> <arg-string name="truststore"> <token-text>/root/9085tomcat.ks</token-text> </arg-string> <arg-string name="keystore"> <token-text>/root/9085tomcat.ks</token-text> </arg-string> <arg-string name="keystorepwd"> <token-text>novell</token-text> </arg-string> <arg-string name="truststorepwd"> <token-text>novell</token-text> </arg-string> <arg-string name="operation-header-name"> <token-text>content-type</token-text> </arg-string> <arg-string name="operation-header-value"> <token-text>application/json</token-text> </arg-string> <arg-string name="payload"> <token-local-variable name="resourceJsonPayload"/> </arg-string> </do-invoke-rest-endpoint>
- arg-password
- password argument
- arg-string
- string argument
Attribute Value(s) Default Value auth-method CDATA
the authentication method to use. Either basic or oauth2
supports variable expansion#REQUIRED auth-url CDATA
the authentication url. Needed only when auth-method is oauth2
supports variable expansion#REQUIRED disabled true | false
true if this element is disabledfalse id CDATA
Admin ID
supports variable expansion#REQUIRED notrace true | false
false time-out CDATA
the number of milliseconds to wait to establish a connection to the User Application server before timing out.
supports variable expansion0 type CDATA
API request type (POST | PUT | GET | DELETE). Default: false#REQUIRED url CDATA
the Endpoint URL
supports variable expansion#REQUIRED
( arg-password , arg-string * )
- actions
- actions that are performed by a <rule>
- arg-actions
- actions argument
Top Elements || All Elements || Tree