Overview
This section provides REST API procedures for automating Application Policy Infrastructure Controller cluster management and fabric switch registration. It enables users to perform maintenance tasks, configure remote storage locations, and retrieve hardware inventory data through programmatic calls.
Expand the APIC cluster using the REST API
Learn how to expand the APIC cluster size by setting the target cluster size and physically connecting the desired APIC controllers to the cluster.
Contract the APIC cluster using the REST API
Use this procedure to shrink the cluster size by removing controllers, utilizing the new 'shrink' and 'force' properties in Cisco APIC Release 6.0(2) to automate the decommissioning process, ensuring a smooth transition to a smaller cluster configuration.
Cluster size reductions
Switch over the active APIC with the standby APIC using the REST API
Use this procedure to switch over an active APIC with a standby APIC using REST API by posting to the specified URL with the appropriate body parameters, including the initiator ID, pod ID, and backup serial number.
Register an unregistered switch using the REST API
Use this procedure to register a switch from theNodes Pending Registration tab on the Fabric Membership work pane using the REST API. This process ensures that the system checks for the node's existence and registers it if it is not already present.
Add a switch before discovery using the REST API
Use this procedure to add a switch to the Nodes Pending Registration tab on the Fabric Membership work pane using the REST API.
Remove a switch to maintenance mode using the REST API
Use this procedure to remove a switch to maintenance mode by sending a POST request to the specified API endpoint with the necessary parameters to decommission the node.
Insert a switch to operational mode using the REST API
Use this procedure to insert a switch into operational mode by sending a POST request to the specified API endpoint, configuring the fabric out-of-service policy, and decommissioning the node with the appropriate parameters.
Configure a remote location using the REST API
Use this procedure to create a remote location using the REST API by configuring the necessary parameters such as host, protocol, remote path, username, and password.
Send an on-demand tech support file using the REST API
Use this procedure to set the remote destination and generate an on-demand technical support file using the REST API by sending a POST request with the specified XML configuration for file paths and technical support parameters.
Find your switch inventory using the REST API
Use this procedure to find your switch model and serial numbers using the REST API. Retrieve your switch inventory by sending a GET request to the specified URL, which returns detailed information about each switch, including model and serial numbers.