openapi: 3.1.0 info: title: Solaris Zones Oracle Solaris Kernel Zones Archive Creation API description: REST API for creating and managing Oracle Solaris Kernel Zones via the RAD zonemgr module. Kernel Zones (brand solaris-kz) are non-global zones with their own kernel, providing greater independence and enhanced security isolation compared to native zones. They support live migration, independent patching, and hardware-assisted virtualization. version: '1.6' contact: name: Oracle Solaris Support url: https://www.oracle.com/solaris/support/ email: solaris-support@oracle.com license: name: Oracle Technology Network License url: https://www.oracle.com/legal/terms.html servers: - url: https://{host}:{port}/api/com.oracle.solaris.rad.zonemgr/1.6 description: Oracle Solaris RAD REST endpoint variables: host: default: localhost description: Solaris host running RAD port: default: '6788' description: RAD REST API port security: - cookieAuth: [] tags: - name: Archive Creation description: Create Unified Archives from zones paths: /Zone/{zoneName}/_rad_method/exportConfig: put: operationId: exportZoneConfigForArchive summary: Solaris Zones Export Zone Configuration for Archival description: Export the zone configuration as a string suitable for inclusion in a Unified Archive or for recreating the zone on another system. tags: - Archive Creation parameters: - $ref: '#/components/parameters/zoneName' responses: '200': description: Exported zone configuration content: application/json: schema: type: object properties: status: type: string payload: type: string description: Zone configuration in zonecfg export format examples: Exportzoneconfigforarchive200Example: summary: Default exportZoneConfigForArchive 200 response x-microcks-default: true value: status: example_value payload: example_value '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' x-microcks-operation: delay: 0 dispatcher: FALLBACK /Zone/{zoneName}/_rad_method/detach: put: operationId: detachZoneForArchive summary: Solaris Zones Detach Zone for Archival description: Detach a zone in preparation for archiving or moving. The zone transitions to the configured state with its data preserved. tags: - Archive Creation parameters: - $ref: '#/components/parameters/zoneName' responses: '200': description: Zone detached for archival content: application/json: schema: $ref: '#/components/schemas/ZoneResult' examples: Detachzoneforarchive200Example: summary: Default detachZoneForArchive 200 response x-microcks-default: true value: status: example_value payload: code: NONE message: example_value stdout: example_value stderr: example_value '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' x-microcks-operation: delay: 0 dispatcher: FALLBACK components: schemas: RadError: type: object properties: status: type: string example: failure payload: type: object properties: code: type: integer message: type: string example: example_value ZoneResult: type: object properties: status: type: string example: example_value payload: type: object properties: code: type: string enum: - NONE - FRAMEWORK_ERROR - SNAPSHOT_ERROR - COMMAND_ERROR - RESOURCE_ALREADY_EXISTS - RESOURCE_NOT_FOUND - RESOURCE_TOO_MANY - RESOURCE_UNKNOWN - ALREADY_EDITING - INCOMPLETE_NO_CONFIG - PROPERTY_UNKNOWN - NOT_EDITING - SYSTEM_ERROR - INVALID_ARGUMENT - INVALID_ZONE_STATE message: type: string stdout: type: string stderr: type: string example: example_value responses: NotFound: description: Zone not found content: application/json: schema: $ref: '#/components/schemas/RadError' Unauthorized: description: Authentication required content: application/json: schema: $ref: '#/components/schemas/RadError' parameters: zoneName: name: zoneName in: path required: true description: Zone name schema: type: string securitySchemes: cookieAuth: type: apiKey in: cookie name: _rad_session description: RAD session cookie obtained via authentication externalDocs: description: Oracle Solaris Kernel Zones Documentation url: https://docs.oracle.com/en/operating-systems/solaris/oracle-solaris/11.4/kernel-zones/oracle-solaris-kernel-zones.html