Device Credentials
Catalyst CenterLocation in GUI:
Design » Network Settings » Device Credentials
Diagram
Section titled “Diagram”Diagram
Section titled “Diagram”Classes
Section titled “Classes”catalyst_center
Section titled “catalyst_center”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| sites | Class | sites | No |
catalyst_center
Section titled “catalyst_center”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| network_ | Class | network_ | No |
sites (catalyst_center)
Section titled “sites (catalyst_center)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| global | Class | global | No |
global (catalyst_center.sites)
Section titled “global (catalyst_center.sites)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| network_ | Class | network_ | No |
network_settings (catalyst_center.sites.global)
Section titled “network_settings (catalyst_center.sites.global)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| device_ | Class | device_ | No |
device_credentials (catalyst_center.sites.global.network_settings)
Section titled “device_credentials (catalyst_center.sites.global.network_settings)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| preserve_ | Boolean | true, false | No | true |
| cli_credentials | List | cli_credentials | No | |
| https_ | List | https_ | No | |
| https_ | List | https_ | No | |
| snmpv3_ | List | snmpv3_ | No | |
| snmpv2_ | List | snmpv2_ | No | |
| snmpv2_ | List | snmpv2_ | No |
cli_credentials (catalyst_center.sites.global.network_settings.device_credentials)
Section titled “cli_credentials (catalyst_center.sites.global.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| username | String | Yes | ||
| password | String | Yes | ||
| password_ | Integer | min: 1 | No | |
| enable | String | No | ||
| enable_version | Integer | min: 1 | No |
https_read_credentials (catalyst_center.sites.global.network_settings.device_credentials)
Section titled “https_read_credentials (catalyst_center.sites.global.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| username | String | Yes | ||
| password | String | Yes | ||
| password_ | Integer | min: 1 | No | |
| port | Integer | min: 1, max: 65535 | No | 443 |
https_write_credentials (catalyst_center.sites.global.network_settings.device_credentials)
Section titled “https_write_credentials (catalyst_center.sites.global.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| username | String | Yes | ||
| password | String | Yes | ||
| password_ | Integer | min: 1 | No | |
| port | Integer | min: 1, max: 65535 | No | 443 |
snmpv3_credentials (catalyst_center.sites.global.network_settings.device_credentials)
Section titled “snmpv3_credentials (catalyst_center.sites.global.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| auth_type | Choice | SHA, MD5, SHA256 | No | SHA |
| privacy_type | Choice | AES256, AES192, AES128 | No | AES128 |
| snmp_mode | Choice | AUTHPRIV, AUTHNOPRIV, NOAUTHNOPRIV | Yes | |
| username | String | Yes | ||
| auth_password | String | Yes | ||
| auth_ | Integer | min: 1 | No | |
| privacy_ | String | Yes | ||
| privacy_ | Integer | min: 1 | No |
snmpv2_read_credentials (catalyst_center.sites.global.network_settings.device_credentials)
Section titled “snmpv2_read_credentials (catalyst_center.sites.global.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| read_community | String | Yes | ||
| read_ | Integer | min: 1 | No |
snmpv2_write_credentials (catalyst_center.sites.global.network_settings.device_credentials)
Section titled “snmpv2_write_credentials (catalyst_center.sites.global.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| write_community | String | Yes | ||
| write_ | Integer | min: 1 | No |
network_settings (catalyst_center)
Section titled “network_settings (catalyst_center)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| device_ | Class | device_ | No |
device_credentials (catalyst_center.network_settings)
Section titled “device_credentials (catalyst_center.network_settings)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| cli_credentials | List | cli_credentials | No | |
| https_ | List | https_ | No | |
| https_ | List | https_ | No | |
| snmpv3_ | List | snmpv3_ | No | |
| snmpv2_ | List | snmpv2_ | No | |
| snmpv2_ | List | snmpv2_ | No |
cli_credentials (catalyst_center.network_settings.device_credentials)
Section titled “cli_credentials (catalyst_center.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| username | String | Yes | ||
| password | String | Yes | ||
| password_ | Integer | min: 1 | No | |
| enable | String | No | ||
| enable_version | Integer | min: 1 | No |
https_read_credentials (catalyst_center.network_settings.device_credentials)
Section titled “https_read_credentials (catalyst_center.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| username | String | Yes | ||
| password | String | Yes | ||
| password_ | Integer | min: 1 | No | |
| port | Integer | min: 1, max: 65535 | No | 443 |
https_write_credentials (catalyst_center.network_settings.device_credentials)
Section titled “https_write_credentials (catalyst_center.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| username | String | Yes | ||
| password | String | Yes | ||
| password_ | Integer | min: 1 | No | |
| port | Integer | min: 1, max: 65535 | No | 443 |
snmpv3_credentials (catalyst_center.network_settings.device_credentials)
Section titled “snmpv3_credentials (catalyst_center.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| auth_type | Choice | SHA, MD5, SHA256 | No | SHA |
| privacy_type | Choice | AES256, AES192, AES128 | No | AES128 |
| snmp_mode | Choice | AUTHPRIV, AUTHNOPRIV, NOAUTHNOPRIV | Yes | |
| username | String | Yes | ||
| auth_password | String | Yes | ||
| auth_ | Integer | min: 1 | No | |
| privacy_ | String | Yes | ||
| privacy_ | Integer | min: 1 | No |
snmpv3_credentials (catalyst_center.network_settings.device_credentials)
Section titled “snmpv3_credentials (catalyst_center.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| auth_type | Choice | SHA, MD5 | No | SHA |
| privacy_type | Choice | AES256, AES192, AES128 | No | AES128 |
| snmp_mode | Choice | AUTHPRIV, AUTHNOPRIV, NOAUTHNOPRIV | Yes | |
| username | String | Yes | ||
| auth_password | String | Yes | ||
| auth_ | Integer | min: 1 | No | |
| privacy_ | String | Yes | ||
| privacy_ | Integer | min: 1 | No |
snmpv2_read_credentials (catalyst_center.network_settings.device_credentials)
Section titled “snmpv2_read_credentials (catalyst_center.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| read_community | String | Yes | ||
| read_ | Integer | min: 1 | No |
snmpv2_write_credentials (catalyst_center.network_settings.device_credentials)
Section titled “snmpv2_write_credentials (catalyst_center.network_settings.device_credentials)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| write_community | String | Yes | ||
| write_ | Integer | min: 1 | No |
Device Credentials define the authentication credentials used by Catalyst Center to communicate with network devices. This includes CLI (SSH/Telnet), SNMPv2 Read/Write, SNMPv3, HTTPS Read/Write, and NETCONF credentials. Credentials are created globally and then assigned to sites (Areas, Buildings, Floors) for inheritance. They are applicable to both SDA fabric and non-fabric deployments.
Note: To assign credentials at the Global site, all credential types (CLI, SNMPv2 Read, SNMPv2 Write, SNMPv3, HTTPS Read, HTTPS Write) must be defined and assigned together. At individual site levels below Global (sub-areas, buildings, floors), you can selectively assign only the specific credentials you want to override; any credential that is not explicitly assigned is inherited from the parent site.
Note: Do not write secrets (passwords, enable passwords, SNMP communities, SNMPv3 passphrases) as literal values in the data model. The examples below read them from environment variables with the
!env VARIABLE_NAMEYAML tag, for examplepassword: !env GLOBAL_CLI_ADMIN_PASSWORD. Set the variables in the environment that runsnac-validateand Terraform (for example from a secrets manager or CI secret store).
Note: Catalyst Center rejects a second credential of the same type whose secret values match an existing one, whatever its name: a CLI credential with the same username, password and enable password, or an SNMPv2 credential with the same community (
NCIM11002, reported asNCIM90226). Use distinct secret values for each credential.
Note: Catalyst Center does not store a site credential assignment that equals the credential inherited from the parent at the time it is written; the site then follows later changes of the parent. If a parent and a child assignment change in the same apply, the next plan can show a difference. Run a second plan / apply after changing a parent site’s credentials.
Note: In a multistate deployment, site states look credentials up by name. The credentials must be defined and owned by the global state (
manage_global_settings: true) and applied there first; a site state planned before that fails at the credential data source lookup.
Examples
Section titled “Examples”Global credential assignments default to
sites.global.network_settings.device_credentials.preserve_unmanaged_global: true.
This preserves credential types that the model does not select at Global, such as
an existing SNMP credential when only a CLI credential is selected. It does not
preserve every unmanaged object in Catalyst Center. Set this option to false
to let the Global assignment manage omitted credential types as well.
catalyst_center: sites: global: network_settings: device_credentials: preserve_unmanaged_global: trueExample-1: Basic CLI Credentials with Enable Password
Section titled “Example-1: Basic CLI Credentials with Enable Password”Basic device credentials configuration with CLI access using standard Cisco credentials and an enable password for network device management.
catalyst_center: sites: global: network_settings: device_credentials: cli_credentials: - name: BASIC_CLI_ADMIN username: admin password: !env BASIC_CLI_ADMIN_PASSWORD enable: !env BASIC_CLI_ADMIN_ENABLEExample-2: SNMP Read and Write Community Strings
Section titled “Example-2: SNMP Read and Write Community Strings”SNMP monitoring setup with both read and write community strings for network device monitoring and configuration management across European sites.
catalyst_center: sites: global: network_settings: device_credentials: cli_credentials: - name: EUROPE_CLI_ADMIN username: netadmin password: !env EUROPE_CLI_ADMIN_PASSWORD enable: !env EUROPE_CLI_ADMIN_ENABLE snmpv2_read_credentials: - name: EUROPE_SNMP_READ read_community: !env EUROPE_SNMP_READ_COMMUNITY snmpv2_write_credentials: - name: EUROPE_SNMP_WRITE write_community: !env EUROPE_SNMP_WRITE_COMMUNITYExample-3: CLI, SNMPv2, SNMPv3, and HTTPS Credentials
Section titled “Example-3: CLI, SNMPv2, SNMPv3, and HTTPS Credentials”Comprehensive device credentials deployment with all supported authentication methods, including CLI, SNMPv2, SNMPv3 with multiple security modes, and HTTPS credentials for REST API access across global enterprise infrastructure.
catalyst_center: sites: global: network_settings: device_credentials: cli_credentials: - name: GLOBAL_CLI_ADMIN username: globaladmin password: !env GLOBAL_CLI_ADMIN_PASSWORD enable: !env GLOBAL_CLI_ADMIN_ENABLE - name: BRANCH_CLI_READONLY username: branchread password: !env BRANCH_CLI_READONLY_PASSWORD snmpv2_read_credentials: - name: GLOBAL_SNMP_READ read_community: !env GLOBAL_SNMP_READ_COMMUNITY - name: BRANCH_SNMP_READ read_community: !env BRANCH_SNMP_READ_COMMUNITY snmpv2_write_credentials: - name: GLOBAL_SNMP_WRITE write_community: !env GLOBAL_SNMP_WRITE_COMMUNITY snmpv3_credentials: - name: SECURE_SNMPV3_AUTHPRIV auth_type: SHA privacy_type: AES256 snmp_mode: AUTHPRIV username: secureuser auth_password: !env SECURE_SNMPV3_AUTH_PASSWORD privacy_password: !env SECURE_SNMPV3_PRIVACY_PASSWORD - name: STANDARD_SNMPV3_AUTHNOPRIV auth_type: SHA256 privacy_type: AES128 snmp_mode: AUTHNOPRIV username: standarduser auth_password: !env STANDARD_SNMPV3_AUTH_PASSWORD privacy_password: !env STANDARD_SNMPV3_PRIVACY_PASSWORD - name: BASIC_SNMPV3_NOAUTH snmp_mode: NOAUTHNOPRIV username: basicuser auth_password: !env BASIC_SNMPV3_AUTH_PASSWORD privacy_password: !env BASIC_SNMPV3_PRIVACY_PASSWORD https_read_credentials: - name: API_READ_ACCESS username: apiread password: !env API_READ_ACCESS_PASSWORD port: 443 - name: MONITORING_API_ACCESS username: monitor password: !env MONITORING_API_ACCESS_PASSWORD port: 8443 https_write_credentials: - name: API_WRITE_ACCESS username: apiwrite password: !env API_WRITE_ACCESS_PASSWORD port: 443 - name: CONFIG_API_ACCESS username: configapi password: !env CONFIG_API_ACCESS_PASSWORD port: 9443Example-4: Credential Sets Assigned to Specific Sites
Section titled “Example-4: Credential Sets Assigned to Specific Sites”Site assignment configuration demonstrating how to apply different credential sets to various site types and geographic locations.
catalyst_center: sites: areas: - name: Americas areas: - name: USA areas: - name: California areas: - name: Corporate Headquarters cli_credentials: GLOBAL_CLI_ADMIN snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV https_read_credentials: API_READ_ACCESS https_write_credentials: API_WRITE_ACCESS - name: Texas areas: - name: Austin buildings: - name: Branch Office address: 110 Inner Campus Dr., Austin, TX 78712, USA cli_credentials: BRANCH_CLI_READONLY snmpv2_read_credentials: BRANCH_SNMP_READ snmpv3_credentials: STANDARD_SNMPV3_AUTHNOPRIV country: United States - name: College Station buildings: - name: Regional Center address: 400 Bizzell St, College Station, TX 77840, USA cli_credentials: GLOBAL_CLI_ADMIN snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV https_read_credentials: API_READ_ACCESS https_write_credentials: CONFIG_API_ACCESS country: United States - name: Europe areas: - name: Germany areas: - name: European Operations cli_credentials: EUROPE_CLI_ADMIN snmpv2_read_credentials: EUROPE_SNMP_READ snmpv2_write_credentials: EUROPE_SNMP_WRITE https_read_credentials: MONITORING_API_ACCESSExample-5: Global Credentials with a Site-Level CLI Override
Section titled “Example-5: Global Credentials with a Site-Level CLI Override”Global vs. individual site credential assignment. The Global area receives all credential types (required at the Global level), while the child Poland area selectively overrides only the CLI credential and inherits the remaining credentials from Global.
catalyst_center: sites: global: network_settings: device_credentials: cli_credentials: - name: dnacadmin_super username: dnacadmin password: !env CLI_SUPER_PASSWORD enable: !env CLI_SUPER_ENABLE - name: dnacadmin_super2 username: dnacadmin2 password: !env CLI_SUPER2_PASSWORD enable: !env CLI_SUPER2_ENABLE https_read_credentials: - name: HTTP_READ_ACCESS username: apphost_http_read password: !env HTTP_READ_ACCESS_PASSWORD port: 443 https_write_credentials: - name: HTTP_WRITE_ACCESS username: dnacadmin password: !env HTTP_WRITE_ACCESS_PASSWORD port: 443 snmpv2_read_credentials: - name: GLOBAL_SNMP_READ read_community: !env GLOBAL_SNMP_READ_COMMUNITY snmpv2_write_credentials: - name: GLOBAL_SNMP_WRITE write_community: !env GLOBAL_SNMP_WRITE_COMMUNITY snmpv3_credentials: - name: SECURE_SNMPV3_AUTHPRIV auth_type: SHA privacy_type: AES128 snmp_mode: AUTHPRIV username: secureuser auth_password: !env SECURE_SNMPV3_AUTH_PASSWORD privacy_password: !env SECURE_SNMPV3_PRIVACY_PASSWORD cli_credentials: dnacadmin_super https_read_credentials: HTTP_READ_ACCESS https_write_credentials: HTTP_WRITE_ACCESS snmpv2_read_credentials: GLOBAL_SNMP_READ snmpv2_write_credentials: GLOBAL_SNMP_WRITE snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV areas: - name: Poland cli_credentials: dnacadmin_super2Example-6: Write-Only Secrets for Device Credentials
Section titled “Example-6: Write-Only Secrets for Device Credentials”Opt a credential’s secret into Terraform’s write-only handling so it is never persisted to Terraform state (requires the Catalyst Center provider 0.6.0+ and Terraform 1.11+). Declaring a <secret>_version key next to a secret (password_version, enable_version, read_community_version, write_community_version, auth_password_version, privacy_password_version) opts that secret in; a secret without a _version key keeps using the existing state-storing attribute unchanged. Because the write-only value itself is invisible to Terraform’s plan, the _version integer is the only signal it has that the secret changed — bump it to any higher value whenever the secret value changes, in the same apply.
catalyst_center: sites: global: network_settings: device_credentials: cli_credentials: - name: SECURE_CLI_ADMIN username: admin password: !env SECURE_CLI_ADMIN_PASSWORD password_version: 1 enable: !env SECURE_CLI_ADMIN_ENABLE enable_version: 1Device Credentials define the authentication credentials used by Catalyst Center to communicate with network devices. This includes CLI (SSH/Telnet), SNMPv2 Read/Write, SNMPv3, HTTPS Read/Write, and NETCONF credentials. Credentials are created globally and then assigned to sites (Areas, Buildings, Floors) for inheritance. They are applicable to both SDA fabric and non-fabric deployments.
Note: At individual site levels below Global (sub-areas, buildings, floors), you can selectively assign only the specific credentials you want to override; any credential that is not explicitly assigned is inherited from the parent site.
Note: Because the
Globalsite has no parent to inherit from, Catalyst Center will not accept a partial credential assignment there. This is handled for you automatically, so you do not need to declare all six credential types yourself. Thepreserve_unmanaged_globaldefault (see Preserving Global Credentials) controls what happens to the slots you did not declare in the data model: by default they are left untouched (preserving credentials configured outside Terraform), or you can opt to unset them.
Preserving Global Credentials Configured Outside Terraform
Section titled “Preserving Global Credentials Configured Outside Terraform”preserve_unmanaged_global is a defaults-level attribute under network_settings.device_credentials that controls how the module reconciles Global credential slots that are not declared in the data model. It defaults to true.
| Value | Behavior at Global |
|---|---|
true (default) | Slots you declare are set/updated. Slots you do not declare but that are already configured on Global (e.g. via the GUI or another tool) are preserved. Removing a previously managed slot from the data model still unsets that slot. This also applies on destroy: only the Terraform-managed slots are unset, unmanaged ones are kept. |
false | Slots you declare are set/updated, and every other Global slot is unset. Use this when Terraform should be the single source of truth for Global credentials. |
The attribute only affects the Global site — child sites always inherit unspecified slots from their parent regardless of this setting. It is set in your defaults: block, not per credential:
defaults: catalyst_center: network_settings: device_credentials: preserve_unmanaged_global: true # false = unset unmanaged Global slotsKnown Catalyst Center GUI caveat (NCIM11016): When only a subset of credential slots is assigned at
Global, the Catalyst Center GUI underDesign»Network Settings»Device Credentials»Manage Credentialsmay showNCIM11016: Failed to get applied credential status. Reason : null, and the per-credential Actions (including Apply) stay greyed out. This is a GUI-only defect — the Terraform apply itself still succeeds — and it appears because someGlobalslots are intentionally left unset (not yet synced to devices).Workaround (in the GUI): close the Manage Credentials window, click Save on the Device Credentials page, and when the “Do you want to apply the assigned credentials now?” prompt appears, choose No. The Manage Credentials actions then become available again (credential statuses show as Not Synced, which you can apply from the GUI when needed).
Examples
Section titled “Examples”Example-1: Basic CLI Credentials with Enable Password
Section titled “Example-1: Basic CLI Credentials with Enable Password”Basic device credentials configuration with CLI access using standard Cisco credentials and an enable password for network device management.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: BASIC_CLI_ADMIN username: admin password: CiscoAdmin123! enable: CiscoEnable123!Example-2: SNMP Read and Write Community Strings
Section titled “Example-2: SNMP Read and Write Community Strings”SNMP monitoring setup with both read and write community strings for network device monitoring and configuration management across European sites.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: EUROPE_CLI_ADMIN username: netadmin password: EuropeAdmin456! enable: EuropeEnable456! snmpv2_read_credentials: - name: EUROPE_SNMP_READ read_community: EuropeReadComm789 snmpv2_write_credentials: - name: EUROPE_SNMP_WRITE write_community: EuropeWriteComm789Example-3: CLI, SNMPv2, SNMPv3, and HTTPS Credentials
Section titled “Example-3: CLI, SNMPv2, SNMPv3, and HTTPS Credentials”Comprehensive device credentials deployment with all supported authentication methods, including CLI, SNMPv2, SNMPv3 with multiple security modes, and HTTPS credentials for REST API access across global enterprise infrastructure.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: GLOBAL_CLI_ADMIN username: globaladmin password: GlobalAdmin2024! enable: GlobalEnable2024! - name: BRANCH_CLI_READONLY username: branchread password: BranchRead2024! snmpv2_read_credentials: - name: GLOBAL_SNMP_READ read_community: GlobalMonitorRead - name: BRANCH_SNMP_READ read_community: BranchMonitorRead snmpv2_write_credentials: - name: GLOBAL_SNMP_WRITE write_community: GlobalConfigWrite snmpv3_credentials: - name: SECURE_SNMPV3_AUTHPRIV auth_type: SHA privacy_type: AES256 snmp_mode: AUTHPRIV username: secureuser auth_password: SecureAuth2024! privacy_password: SecurePriv2024! - name: STANDARD_SNMPV3_AUTHNOPRIV auth_type: MD5 privacy_type: AES128 snmp_mode: AUTHNOPRIV username: standarduser auth_password: StandardAuth2024! privacy_password: StandardPriv2024! - name: BASIC_SNMPV3_NOAUTH snmp_mode: NOAUTHNOPRIV username: basicuser auth_password: BasicAuth2024! privacy_password: BasicPriv2024! https_read_credentials: - name: API_READ_ACCESS username: apiread password: ApiRead2024! port: 443 - name: MONITORING_API_ACCESS username: monitor password: Monitor2024! port: 8443 https_write_credentials: - name: API_WRITE_ACCESS username: apiwrite password: ApiWrite2024! port: 443 - name: CONFIG_API_ACCESS username: configapi password: ConfigApi2024! port: 9443Example-4: Credential Sets Assigned to Specific Sites
Section titled “Example-4: Credential Sets Assigned to Specific Sites”Site assignment configuration demonstrating how to apply different credential sets to various site types and geographic locations.
catalyst_center: sites: areas: - name: Corporate Headquarters parent_name: Global/Americas/USA/California cli_credentials: GLOBAL_CLI_ADMIN snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV https_read_credentials: API_READ_ACCESS https_write_credentials: API_WRITE_ACCESS - name: European Operations parent_name: Global/Europe/Germany cli_credentials: EUROPE_CLI_ADMIN snmpv2_read_credentials: EUROPE_SNMP_READ snmpv2_write_credentials: EUROPE_SNMP_WRITE https_read_credentials: MONITORING_API_ACCESS buildings: - name: Branch Office parent_name: Global/Americas/USA/Texas/Austin address: 110 Inner Campus Dr., Austin, TX 78712, USA cli_credentials: BRANCH_CLI_READONLY snmpv2_read_credentials: BRANCH_SNMP_READ snmpv3_credentials: STANDARD_SNMPV3_AUTHNOPRIV - name: Regional Center parent_name: Global/Americas/USA/Texas/College Station address: 400 Bizzell St, College Station, TX 77840, USA cli_credentials: GLOBAL_CLI_ADMIN snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV https_read_credentials: API_READ_ACCESS https_write_credentials: CONFIG_API_ACCESSExample-5: Global Credentials with a Site-Level CLI Override
Section titled “Example-5: Global Credentials with a Site-Level CLI Override”Global vs. individual site credential assignment. Here the Global area is assigned a full set of credential types, while the child Poland area selectively overrides only the CLI credential and inherits the remaining credentials from Global. Assigning every credential type at Global is not required.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: dnacadmin_super username: dnacadmin password: C1sco12345 enable: C1sco12345 - name: dnacadmin_super2 username: dnacadmin2 password: C1sco12345 enable: C1sco12345 https_read_credentials: - name: HTTP_READ_ACCESS username: apphost_http_read password: ApiRead2026! port: 443 https_write_credentials: - name: HTTP_WRITE_ACCESS username: dnacadmin password: C1sco12345 port: 443 snmpv2_read_credentials: - name: GLOBAL_SNMP_READ read_community: RO snmpv2_write_credentials: - name: GLOBAL_SNMP_WRITE write_community: RW snmpv3_credentials: - name: SECURE_SNMPV3_AUTHPRIV auth_type: SHA privacy_type: AES128 snmp_mode: AUTHPRIV username: secureuser auth_password: SecureAuth2026! privacy_password: SecurePriv2026!
sites: areas: - name: Global cli_credentials: dnacadmin_super snmpv2_read_credentials: GLOBAL_SNMP_READ snmpv2_write_credentials: GLOBAL_SNMP_WRITE https_read_credentials: HTTP_READ_ACCESS https_write_credentials: HTTP_WRITE_ACCESS snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV
- name: Poland parent_name: Global cli_credentials: dnacadmin_super2Example-6: Write-Only Secrets for Device Credentials
Section titled “Example-6: Write-Only Secrets for Device Credentials”Opt a credential’s secret into Terraform’s write-only handling so it is never persisted to Terraform state (requires the Catalyst Center provider 0.6.0+ and Terraform 1.11+). Declaring a <secret>_version key next to a secret (password_version, enable_version, read_community_version, write_community_version, auth_password_version, privacy_password_version) opts that secret in; a secret without a _version key keeps using the existing state-storing attribute unchanged. Because the write-only value itself is invisible to Terraform’s plan, the _version integer is the only signal it has that the secret changed — bump it to any higher value whenever the secret value changes, in the same apply.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: SECURE_CLI_ADMIN username: admin password: CiscoAdmin123! password_version: 1 # bump alongside `password` to rotate it; the value itself is never written to state enable: CiscoEnable123! enable_version: 1Example-7: Managing Only Some Global Credentials While Keeping the Rest
Section titled “Example-7: Managing Only Some Global Credentials While Keeping the Rest”Manage a subset of Global credential slots with Terraform while leaving the remaining slots (configured directly in the Catalyst Center GUI) in place. With preserve_unmanaged_global: true (the default), only the declared cli_credentials and snmpv3_credentials bindings at Global are written; the SNMPv2 and HTTPS slots already present on Global are preserved. Set it to false to instead have Terraform unset every Global slot it does not declare.
defaults: catalyst_center: network_settings: device_credentials: preserve_unmanaged_global: true
catalyst_center: network_settings: device_credentials: cli_credentials: - name: dnacadmin_super username: dnacadmin password: C1sco12345 enable: C1sco12345 snmpv3_credentials: - name: SECURE_SNMPV3_AUTHPRIV auth_type: SHA privacy_type: AES128 snmp_mode: AUTHPRIV username: secureuser auth_password: SecureAuth2026! privacy_password: SecurePriv2026!
sites: areas: - name: Global cli_credentials: dnacadmin_super snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV # snmpv2 / https slots intentionally omitted -> preserved from existing Global configDevice Credentials define the authentication credentials used by Catalyst Center to communicate with network devices. This includes CLI (SSH/Telnet), SNMPv2 Read/Write, SNMPv3, HTTPS Read/Write, and NETCONF credentials. Credentials are created globally and then assigned to sites (Areas, Buildings, Floors) for inheritance. They are applicable to both SDA fabric and non-fabric deployments.
Note: To assign credentials at the Global site, all credential types (CLI, SNMPv2 Read, SNMPv2 Write, SNMPv3, HTTPS Read, HTTPS Write) must be defined and assigned together. At individual site levels below Global (sub-areas, buildings, floors), you can selectively assign only the specific credentials you want to override; any credential that is not explicitly assigned is inherited from the parent site.
Examples
Section titled “Examples”Example-1: Basic CLI Credentials with Enable Password
Section titled “Example-1: Basic CLI Credentials with Enable Password”Basic device credentials configuration with CLI access using standard Cisco credentials and an enable password for network device management.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: BASIC_CLI_ADMIN username: admin password: CiscoAdmin123! enable: CiscoEnable123!Example-2: SNMP Read and Write Community Strings
Section titled “Example-2: SNMP Read and Write Community Strings”SNMP monitoring setup with both read and write community strings for network device monitoring and configuration management across European sites.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: EUROPE_CLI_ADMIN username: netadmin password: EuropeAdmin456! enable: EuropeEnable456! snmpv2_read_credentials: - name: EUROPE_SNMP_READ read_community: EuropeReadComm789 snmpv2_write_credentials: - name: EUROPE_SNMP_WRITE write_community: EuropeWriteComm789Example-3: CLI, SNMPv2, SNMPv3, and HTTPS Credentials
Section titled “Example-3: CLI, SNMPv2, SNMPv3, and HTTPS Credentials”Comprehensive device credentials deployment with all supported authentication methods, including CLI, SNMPv2, SNMPv3 with multiple security modes, and HTTPS credentials for REST API access across global enterprise infrastructure.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: GLOBAL_CLI_ADMIN username: globaladmin password: GlobalAdmin2024! enable: GlobalEnable2024! - name: BRANCH_CLI_READONLY username: branchread password: BranchRead2024! snmpv2_read_credentials: - name: GLOBAL_SNMP_READ read_community: GlobalMonitorRead - name: BRANCH_SNMP_READ read_community: BranchMonitorRead snmpv2_write_credentials: - name: GLOBAL_SNMP_WRITE write_community: GlobalConfigWrite snmpv3_credentials: - name: SECURE_SNMPV3_AUTHPRIV auth_type: SHA privacy_type: AES256 snmp_mode: AUTHPRIV username: secureuser auth_password: SecureAuth2024! privacy_password: SecurePriv2024! - name: STANDARD_SNMPV3_AUTHNOPRIV auth_type: MD5 privacy_type: AES128 snmp_mode: AUTHNOPRIV username: standarduser auth_password: StandardAuth2024! privacy_password: StandardPriv2024! - name: BASIC_SNMPV3_NOAUTH snmp_mode: NOAUTHNOPRIV username: basicuser auth_password: BasicAuth2024! privacy_password: BasicPriv2024! https_read_credentials: - name: API_READ_ACCESS username: apiread password: ApiRead2024! port: 443 - name: MONITORING_API_ACCESS username: monitor password: Monitor2024! port: 8443 https_write_credentials: - name: API_WRITE_ACCESS username: apiwrite password: ApiWrite2024! port: 443 - name: CONFIG_API_ACCESS username: configapi password: ConfigApi2024! port: 9443Example-4: Credential Sets Assigned to Specific Sites
Section titled “Example-4: Credential Sets Assigned to Specific Sites”Site assignment configuration demonstrating how to apply different credential sets to various site types and geographic locations.
catalyst_center: sites: areas: - name: Corporate Headquarters parent_name: Global/Americas/USA/California cli_credentials: GLOBAL_CLI_ADMIN snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV https_read_credentials: API_READ_ACCESS https_write_credentials: API_WRITE_ACCESS - name: European Operations parent_name: Global/Europe/Germany cli_credentials: EUROPE_CLI_ADMIN snmpv2_read_credentials: EUROPE_SNMP_READ snmpv2_write_credentials: EUROPE_SNMP_WRITE https_read_credentials: MONITORING_API_ACCESS buildings: - name: Branch Office parent_name: Global/Americas/USA/Texas/Austin address: 110 Inner Campus Dr., Austin, TX 78712, USA cli_credentials: BRANCH_CLI_READONLY snmpv2_read_credentials: BRANCH_SNMP_READ snmpv3_credentials: STANDARD_SNMPV3_AUTHNOPRIV - name: Regional Center parent_name: Global/Americas/USA/Texas/College Station address: 400 Bizzell St, College Station, TX 77840, USA cli_credentials: GLOBAL_CLI_ADMIN snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV https_read_credentials: API_READ_ACCESS https_write_credentials: CONFIG_API_ACCESSExample-5: Global Credentials with a Site-Level CLI Override
Section titled “Example-5: Global Credentials with a Site-Level CLI Override”Global vs. individual site credential assignment. The Global area receives all credential types (required at the Global level), while the child Poland area selectively overrides only the CLI credential and inherits the remaining credentials from Global.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: dnacadmin_super username: dnacadmin password: C1sco12345 enable: C1sco12345 - name: dnacadmin_super2 username: dnacadmin2 password: C1sco12345 enable: C1sco12345 https_read_credentials: - name: HTTP_READ_ACCESS username: apphost_http_read password: ApiRead2026! port: 443 https_write_credentials: - name: HTTP_WRITE_ACCESS username: dnacadmin password: C1sco12345 port: 443 snmpv2_read_credentials: - name: GLOBAL_SNMP_READ read_community: RO snmpv2_write_credentials: - name: GLOBAL_SNMP_WRITE write_community: RW snmpv3_credentials: - name: SECURE_SNMPV3_AUTHPRIV auth_type: SHA privacy_type: AES128 snmp_mode: AUTHPRIV username: secureuser auth_password: SecureAuth2026! privacy_password: SecurePriv2026!
sites: areas: - name: Global cli_credentials: dnacadmin_super snmpv2_read_credentials: GLOBAL_SNMP_READ snmpv2_write_credentials: GLOBAL_SNMP_WRITE https_read_credentials: HTTP_READ_ACCESS https_write_credentials: HTTP_WRITE_ACCESS snmpv3_credentials: SECURE_SNMPV3_AUTHPRIV
- name: Poland parent_name: Global cli_credentials: dnacadmin_super2Example-6: Write-Only Secrets for Device Credentials
Section titled “Example-6: Write-Only Secrets for Device Credentials”Opt a credential’s secret into Terraform’s write-only handling so it is never persisted to Terraform state (requires the Catalyst Center provider 0.6.0+ and Terraform 1.11+). Declaring a <secret>_version key next to a secret (password_version, enable_version, read_community_version, write_community_version, auth_password_version, privacy_password_version) opts that secret in; a secret without a _version key keeps using the existing state-storing attribute unchanged. Because the write-only value itself is invisible to Terraform’s plan, the _version integer is the only signal it has that the secret changed — bump it to any higher value whenever the secret value changes, in the same apply.
catalyst_center: network_settings: device_credentials: cli_credentials: - name: SECURE_CLI_ADMIN username: admin password: CiscoAdmin123! password_version: 1 # bump alongside `password` to rotate it; the value itself is never written to state enable: CiscoEnable123! enable_version: 1