Create SubInterface

POST {{protocol}}://{{hostname}}/api/fmc_config/v1/domain/{{domain_id}}/devices/devicerecords/{{device_id}}/subinterfaces

Request Body

{"type"=>"SubInterface", "vlanId"=>10, "subIntfId"=>10, "enabled"=>true, "MTU"=>1500, "managementOnly"=>false, "enableSGTPropagate"=>true, "ifname"=>"{{device_subinterface}}", "name"=>"GigabitEthernet0/1", "ipv4"=>{"static"=>{"address"=>"198.19.253.1", "netmask"=>"24"}}}

HEADERS

KeyDatatypeRequiredDescription
X-auth-access-tokenstring

RESPONSES

status: 201

{"links":{"self":"https://fmc.example.com/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/devices/devicerecords/151d76e2-4262-11ec-abe1-ec138fe39c48/subinterfaces?bulk=true"},"items":[{"metadata":{"timestamp":0,"state":"COMMITTED"},"links":{"self":"https://fmc.example.com/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/devices/devicerecords/151d76e2-4262-11ec-abe1-ec138fe39c48/subinterfaces/000C291A-43AC-0ed3-0000-008589943529"},"type":"SubInterface","vlanId":10,"subIntfId":10,"enabled":true,"MTU":1500,"mode":"NONE","managementOnly":false,"enableSGTPropagate":true,"ipv4":{"static":{"address":"198.19.253.1","netmask":"24"}},"ipv6":{},"ifname":"Postman-SubInterface","name":"GigabitEthernet0/1","id":"000C291A-43AC-0ed3-0000-008589943529"},{"metadata":{"timestamp":0,"state":"COMMITTED"},"links":{"self":"https://fmc.example.com/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/devices/devicerecords/151d76e2-4262-11ec-abe1-ec138fe39c48/subinterfaces/000C291A-43AC-0ed3-0000-008589943530"},"type":"SubInterface","vlanId":100,"subIntfId":100,"enabled":true,"MTU":1500,"mode":"NONE","managementOnly":false,"enableSGTPropagate":true,"ipv4":{"static":{"address":"198.19.254.1","netmask":"24"}},"ipv6":{},"ifname":"Postman-SubInterface2","name":"GigabitEthernet0/1","id":"000C291A-43AC-0ed3-0000-008589943530"}]}