Interface ApiUser

ApiUser objects are used for authentication against the Icinga 2 API.

Example

object ApiUser "root" {
password = "mysecretapipassword"
permissions = [ "*" ]
}

See

interface ApiUser {
    __name: string;
    active: boolean;
    client_cn?: string;
    ha_mode: HAMode;
    original_attributes: Record<string, any>;
    package: string;
    password?: string;
    paused: boolean;
    permissions: string[];
    source_location: SourceLocation;
    templates: string[];
    version: number;
    zone: string;
}

Hierarchy

  • ConfigObject
    • ApiUser

Properties

__name: string
active: boolean
ha_mode: HAMode
original_attributes: Record<string, any>
package: string

for example _etc

paused: boolean
source_location: SourceLocation
templates: string[]
version: number
zone: string

config

client_cn?: string

Client Common Name (CN).

password?: string

Password string. Note: This attribute is hidden in API responses.

permissions: string[]

Array of permissions. Either as string or dictionary with the keys permission and filter. The latter must be specified as function.