cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1068
Views
0
Helpful
2
Replies

Adding HA Pair through FMC API

Garfield
Level 1
Level 1

Hey everyone,

I'm trying to add an HA Pair through the API but I'm getting an error.

This is the JSON data I'm using in the POST body

{
  "type": "DeviceHAPair",
  "name": "dd-suc-fw",
  "primary": {
    "id": "089a8d48-51ce-11e8-9738-817b58f3fa27",
    "keepLocalEvents": false
  },
  "secondary": {
    "id": "67a30a20-5252-11e8-a57e-a2a903f4a60c",
    "keepLocalEvents": false
  },
  "ftdHABootstrap": {
    "isEncryptionEnabled": false,
    "lanFailover": {
      "subnetMask": "255.255.255.0",
      "activeIP": "1.1.1.1",
      "standbyIP": "1.1.1.2",
      "logicalName": "FOLINK",
      "useIPv6Address": "false",
      "interfaceObject": {
        "id": "7079B3CE-4682-0ed3-0000-055834579394",
        "type": "PhysicalInterface",
        "name": "GigabitEthernet1/8",
        "enabled": false,
        "MTU": 1500,
        "mode": "NONE",
        "managementOnly": false
      }
    },
    "statefulFailover": {
      "subnetMask": "255.255.255.0",
      "activeIP": "1.1.1.1",
      "standbyIP": "1.1.1.2",
      "logicalName": "FOLINK",
      "useIPv6Address": "false",
      "interfaceObject": {
        "id": "7079B3CE-4682-0ed3-0000-055834581689",
	"type": "PhysicalInterface",
        "name": "GigabitEthernet1/8",
        "enabled": false,
        "MTU": 1500,
        "mode": "NONE",
        "managementOnly": false
      }
    }
  }
}

I'm getting the following error:

 

 

{
  "error": {
    "category": "FRAMEWORK",
    "messages": [
      {
        "description": "Stateful failover link interface UUID is wrong."
      }
    ],
    "severity": "ERROR"
  }
}

So the error is pretty self explanatory.

 

However if you look at the UUID of the failover link you will see it is an exact match of the actual UUID of the interface:

},
      "type": "PhysicalInterface",
      "name": "GigabitEthernet1/8",
      "id": "7079B3CE-4682-0ed3-0000-055834581689"
    },

So I don't get why it's throwing an error.

I'm on FMC6.2.3

Anyone any ideas?

Thanks

Stijn

1 Accepted Solution

Accepted Solutions

mohanB
Level 1
Level 1

Looks like you are using same interface for failover and state but the UUID is different. Seems like you are missing this field as well. 

"useSameLinkForFailovers": "true"

View solution in original post

2 Replies 2

mohanB
Level 1
Level 1

Looks like you are using same interface for failover and state but the UUID is different. Seems like you are missing this field as well. 

"useSameLinkForFailovers": "true"

Thanks Mohan,

"useSameLinkForFailovers": "true" did the trick.

Stijn

Review Cisco Networking for a $25 gift card