Oracle WebLogic Server Security API

Manage security realms, authentication providers, and users

Documentation

Specifications

Schemas & Data

Other Resources

OpenAPI Specification

oracle-weblogic-security-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Oracle WebLogic Server Oracle WebLogic Deployment Application Deployment Security API
  description: RESTful API for deploying, undeploying, and managing application and library deployments on Oracle WebLogic Server. Supports deploying enterprise applications (EAR, WAR), shared libraries, and managing deployment lifecycle including start, stop, and redeploy operations. All deployment configuration changes require an active edit session with startEdit/activate workflow. Runtime deployment lifecycle operations (start/stop) are available through the domainRuntime tree.
  version: 12.2.1.3.0
  contact:
    name: Oracle Support
    url: https://support.oracle.com/
  license:
    name: Oracle Standard License
    url: https://www.oracle.com/downloads/licenses/standard-license.html
servers:
- url: http://localhost:7001/management/weblogic/latest
  description: WebLogic Administration Server (default)
- url: http://{host}:{port}/management/weblogic/{version}
  description: WebLogic Administration Server (configurable)
  variables:
    host:
      default: localhost
    port:
      default: '7001'
    version:
      default: latest
security:
- basicAuth: []
tags:
- name: Security
  description: Manage security realms, authentication providers, and users
paths:
  /edit/securityConfiguration/realms:
    get:
      operationId: listSecurityRealms
      summary: Oracle WebLogic Server List all security realms
      tags:
      - Security
      responses:
        '200':
          description: Collection of security realms
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/SecurityRealm'
    post:
      operationId: createSecurityRealm
      summary: Oracle WebLogic Server Create a security realm
      tags:
      - Security
      parameters:
      - $ref: '#/components/parameters/XRequestedBy'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SecurityRealmCreateRequest'
      responses:
        '201':
          description: Security realm created
  /edit/securityConfiguration/realms/{realmName}:
    get:
      operationId: getSecurityRealm
      summary: Oracle WebLogic Server Get a security realm configuration
      tags:
      - Security
      parameters:
      - $ref: '#/components/parameters/RealmName'
      responses:
        '200':
          description: Security realm configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityRealm'
    post:
      operationId: updateSecurityRealm
      summary: Oracle WebLogic Server Update a security realm
      tags:
      - Security
      parameters:
      - $ref: '#/components/parameters/RealmName'
      - $ref: '#/components/parameters/XRequestedBy'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SecurityRealm'
      responses:
        '200':
          description: Security realm updated
  /edit/securityConfiguration/realms/{realmName}/authenticationProviders:
    get:
      operationId: listAuthenticationProviders
      summary: Oracle WebLogic Server List authentication providers for a realm
      tags:
      - Security
      parameters:
      - $ref: '#/components/parameters/RealmName'
      responses:
        '200':
          description: Collection of authentication providers
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuthenticationProvider'
    post:
      operationId: createAuthenticationProvider
      summary: Oracle WebLogic Server Create an authentication provider
      tags:
      - Security
      parameters:
      - $ref: '#/components/parameters/RealmName'
      - $ref: '#/components/parameters/XRequestedBy'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthenticationProviderCreateRequest'
      responses:
        '201':
          description: Authentication provider created
  /serverConfig/securityConfiguration/realms/{realmName}/authenticationProviders/{providerName}/createUser:
    post:
      operationId: createUser
      summary: Oracle WebLogic Server Create a user in an authentication provider
      description: Creates a new user in the specified authentication provider. This is an operation invoked on the serverConfig tree.
      tags:
      - Security
      parameters:
      - $ref: '#/components/parameters/RealmName'
      - $ref: '#/components/parameters/ProviderName'
      - $ref: '#/components/parameters/XRequestedBy'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - userName
              - password
              properties:
                userName:
                  type: string
                  description: Username for the new user
                password:
                  type: string
                  format: password
                  description: Password for the new user
                description:
                  type: string
                  description: Description of the user
      responses:
        '200':
          description: User created successfully
  /serverConfig/securityConfiguration/realms/{realmName}/authenticationProviders/{providerName}/addMemberToGroup:
    post:
      operationId: addMemberToGroup
      summary: Oracle WebLogic Server Add a user or group to a security group
      tags:
      - Security
      parameters:
      - $ref: '#/components/parameters/RealmName'
      - $ref: '#/components/parameters/ProviderName'
      - $ref: '#/components/parameters/XRequestedBy'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - groupName
              - memberUserOrGroupName
              properties:
                groupName:
                  type: string
                  description: Name of the group to add the member to
                memberUserOrGroupName:
                  type: string
                  description: Name of the user or group to add
      responses:
        '200':
          description: Member added to group
components:
  schemas:
    AuthenticationProvider:
      type: object
      properties:
        name:
          type: string
          description: Provider name
        type:
          type: string
          description: Fully qualified provider type class
    SecurityRealm:
      type: object
      properties:
        identity:
          type: array
          items:
            type: string
        name:
          type: string
          description: Security realm name
        managementIdentityDomain:
          type: string
          description: Identity domain for management
        certPathBuilder:
          type: array
          items:
            type: string
          description: Certificate path builder reference
        links:
          type: array
          items:
            $ref: '#/components/schemas/Link'
    AuthenticationProviderCreateRequest:
      type: object
      required:
      - name
      - type
      properties:
        name:
          type: string
        type:
          type: string
          description: Provider type (e.g., weblogic.security.providers.authentication.DefaultAuthenticator)
        activeTypes:
          type: array
          items:
            type: string
          description: Active identity assertion types
    SecurityRealmCreateRequest:
      type: object
      required:
      - name
      properties:
        name:
          type: string
          description: Security realm name
        managementIdentityDomain:
          type: string
    Link:
      type: object
      properties:
        rel:
          type: string
          description: Link relation type
        href:
          type: string
          format: uri
          description: URL of the linked resource
        title:
          type: string
          description: Human-readable title for the link
  parameters:
    XRequestedBy:
      name: X-Requested-By
      in: header
      required: true
      description: CSRF protection header required for POST and DELETE requests
      schema:
        type: string
        example: MyClient
    RealmName:
      name: realmName
      in: path
      required: true
      description: Name of the security realm
      schema:
        type: string
    ProviderName:
      name: providerName
      in: path
      required: true
      description: Name of the authentication provider
      schema:
        type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic authentication. Deployer role required for deployment operations, Operator role for lifecycle operations.
externalDocs:
  description: WebLogic Server Deployment Documentation
  url: https://docs.oracle.com/middleware/12213/wls/WLRUR/overview.htm