Skip to main content

User

Location in GUI: Admin » AAA » Users » Local Users

Diagram

Classes

aaa (apic.fabric_policies)

NameTypeConstraintMandatoryDefault Value
usersList[users]No

users (apic.fabric_policies.aaa)

NameTypeConstraintMandatoryDefault Value
usernameStringRegex: ^[a-zA-Z0-9_.-]{1,31}$Yes
passwordStringmin: 1, max: 256Yes
first_nameStringmin: 1, max: 32No
last_nameStringmin: 1, max: 32No
phoneStringmin: 1, max: 16No
emailStringRegex: ^(?!.{64,})[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+$No
certificate_nameStringmin: 1, max: 128No
descriptionStringRegex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$No
statusChoiceactive, inactive, blockedNoactive
expiresBooleantrue, falseNofalse
expire_dateAnyChoice[never] orNo
domainsList[domains]No
certificatesList[certificates]No
ssh_keysList[ssh_keys]No

domains (apic.fabric_policies.aaa.users)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
rolesList[roles]No

certificates (apic.fabric_policies.aaa.users)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
dataStringYes

ssh_keys (apic.fabric_policies.aaa.users)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
dataStringRegex: ^[a-zA-Z0-9=\n\r/+ _.@-]{1,16384}$Yes

roles (apic.fabric_policies.aaa.users.domains)

NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.-]{1,31}$Yes
privilege_typeChoicewrite, readNowrite

Examples

Simple example:

apic:
fabric_policies:
aaa:
users:
- username: user1
password: ciscocisco
domains:
- name: all
roles:
- name: admin
privilege_type: write
- name: common

Full example:

apic:
fabric_policies:
aaa:
users:
- username: user1
password: ciscocisco
expires: false
first_name: cisco
last_name: cisco
phone: '1234567'
email: cisco@cisco.com
certificate_name: cisco
description: descr
status: active
domains:
- name: all
roles:
- name: admin
privilege_type: write
- name: common