View This Current User
get
/management/weblogic/{version}/currentUser
View this current user.
Request
Path Parameters
-
version(required): string
The version of the WebLogic REST interface.
Query Parameters
-
excludeFields: string
The 'excludeFields' query parameter is used to restrict which fields are returned in the response. It is a comma separated list of field names. If present, only fields whose name is not on the list will be returned. If not present, all fields are returned (unless the 'fields' query parameter is specified). Note: 'fields' must not be specified if 'excludeFields' is specified.
-
excludeLinks: string
The 'excludeLinks' query parameter is used to restrict which links are returned in the response. It is a comma separated list of link relationship names. If present, only links whose relationship name is not on the list will be returned. If not present, all links are returned (unless the 'links' query parameter is specified). Note: 'links' must not be specified if 'excludeLinks' is specified.
-
fields: string
The 'fields' query parameter is used to restrict which fields are returned in the response. It is a comma separated list of field names. If present, only fields with matching names are returned. If not present, all fields are returned (unless the 'excludeFields' query parameter is specified). Note: 'excludeFields' must not be specified if 'fields' is specified.
-
links: string
The 'links' query parameter is used to restrict which links are returned in the response. It is a comma separated list of link relationship names. If present, only links with matching relationship names are returned. If not present, all links are returned (unless the 'excludeLinks' query parameter is specified). Note: 'excludeLinks' must not be specified if 'links' is specified.
Security
-
Admin: basic
Type:
basic
Description:A user in the Admin security role.
-
Deployer: basic
Type:
basic
Description:A user in the Deployer security role.
-
Monitor: basic
Type:
basic
Description:A user in the Monitor security role.
-
Operator: basic
Type:
basic
Description:A user in the Operator security role.
Response
Supported Media Types
- application/json
200 Response
Returns this current user.
Root Schema : Current User
Type:
object
The authenticated user that is making the request.
-
user:
string
The login of the user making this request, if the user has been authenticated, or
null
if the user has not been authenticated.
Examples
View this current user.
This example uses the GET method to view this current user.
Example Request
curl -v \ --user admin:admin123 \ -H X-Requested-By:MyClient \ -H Accept:application/json \ -X GET http://localhost:7001/management/weblogic/latest/currentUser
Example Response
HTTP/1.1 200 OK Response Body: { "links": [ { "rel": "parent", "href": "http:\//localhost:7001/management/weblogic/latest" }, { "rel": "self", "href": "http:\//localhost:7001/management/weblogic/latest/currentUser" }, { "rel": "canonical", "href": "http:\//localhost:7001/management/weblogic/latest/currentUser" } ], "user": "admin" }Back to Top