Check VF NIC Availability in L3 Network

GET/zstack/v1/l3-networks/{l3NetworkUuid}/hosts/{hostUuid}/vfnicavailable

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/l3-networks/443e156ec6883356974f97f803187310/hosts/037404d26b033e9d9fe0d3e7e4bbaa8b/vfnicavailable

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
l3NetworkUuidStringurlDistributed Port Group UUID 3.9.0
hostUuidStringurlHost UUID 3.9.0
systemTags (Optional)ListquerySystem tags 3.9.0
userTags (Optional)ListqueryUser tags 3.9.0

API Response

Response Example

{
  "vfNicAvailable": true
}
NameTypeDescriptionStarting Version
vfNicAvailablebooleanWhether an available VF NIC exists3.9.0
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. See error3.9.0

error

NameTypeDescriptionStarting Version
codeStringError code, a globally unique identifier of the error, e.g. SYS.1000, HOST.10013.9.0
descriptionStringBrief description of the error3.9.0
detailsStringDetailed error information3.9.0
elaborationStringReserved field, defaults to null3.9.0
opaqueLinkedHashMapReserved field, defaults to null3.9.0
causeErrorCodeRoot cause, the source error that caused the current error, null if no original error3.9.0

SDK Examples

Java SDK

IsVfNicAvailableInL3NetworkAction action = new IsVfNicAvailableInL3NetworkAction();
action.l3NetworkUuid = "443e156ec6883356974f97f803187310";
action.hostUuid = "037404d26b033e9d9fe0d3e7e4bbaa8b";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
IsVfNicAvailableInL3NetworkAction.Result res = action.call();

Python SDK

IsVfNicAvailableInL3NetworkAction action = IsVfNicAvailableInL3NetworkAction()
action.l3NetworkUuid = "443e156ec6883356974f97f803187310"
action.hostUuid = "037404d26b033e9d9fe0d3e7e4bbaa8b"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
IsVfNicAvailableInL3NetworkAction.Result res = action.call()