# truenas.set_production

Sets system production state and optionally sends initial debug.

This method is a job.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: production

#### production

Type: boolean

Whether to configure the system for production use.

##### Parameter 2: attach_debug

#### attach_debug

Type: boolean Default: false

Whether to attach debug information when transitioning to production mode.

##

#### Result

Result object containing production configuration details. `null` if transition failed.

## Any of

Type: object
Type: null

Required roles: FULL_ADMIN