DELETE BFC/networks/<base addr>/address_space/address_pools/<type>/ranges/<start_ip-end_ip>
Nessuno
Restituisce il codice di ritorno HTTP 200 ed elimina l'intervallo. Restituisce un codice di errore HTTP e le informazioni di errore associate.
Utilizzare questa operazione per eliminare un intervallo di indirizzi dal pool di indirizzi per tipo in una rete.
Ad esempio DELETE
DELETE BFC/networks/10.10.x.x/address_space/address_pools/<type>/ranges/10.x.x.1-10.x.x.20
Esempio di Python
from httplib import HTTPSConnection
import json
import os
import sys
networkBase = sys.argv[1]
Type = sys.argv[2]
bfcHost = os.environ["BFC_HOST"]
bfcSession = os.environ["BFC_SESSION"]
conn = HTTPSConnection(bfcHost + ':8443')
conn.connect()
conn.request(method='DELETE',
url='/BFC/networks' + 'networkBase' + '/address_space/address_pools/'
+ 'Type' + '/ranges/10.x.x.1-10.x.x.20',
headers={'Content-Type':'application/json',
'Authorization':bfcSession})
r1 = conn.getresponse()
print 'HTTP Response Code: {0}'.format(r1.status)
servers = json.loads(r1.read())
print json.dumps(servers, sort_keys=True, indent=4)
|
Copyright © 2013 CA.
Tutti i diritti riservati.
|
|