cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

498
Views
0
Helpful
2
Replies
Highlighted
Beginner

Adding HA Pair through FMC API

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
Highlighted
Beginner

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
Highlighted
Beginner

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

Highlighted

Thanks Mohan,

"useSameLinkForFailovers": "true" did the trick.

Stijn

Content for Community-Ad