# 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.

##

Support ticket details if system was newly marked as production. `null` otherwise.

## Any of

#### SupportNewTicket

Type: object
No Additional Properties

##

#### Ticket

Ticket number if successfully created. `null` if creation failed.

## Any of

Type: integer
Type: null

##

#### Url

URL to view the created ticket. `null` if not available.

## Any of

Type: string
Type: null

##

#### Has Debug

Type: boolean

Whether debug information was attached to the ticket.

Type: null

Required roles: FULL_ADMIN