connectivity methods¶
-
class
ecl.connectivity.v1._proxy.Proxy(session)[source]¶ Bases:
ecl.proxy2.BaseProxy-
cics(mcic_id, **query)[source]¶ Return a list of CICs
Parameters: mcic_id (string) – ID of a mcic that cics belong to Returns: A list of CICs objects
-
create_cic(mcic_id, cic_name, network_id, colo_vlan)[source]¶ Create a single cic
Parameters: - mcic_id (string) – The value is the ID of a mcic
- cic_name (string) – The value is the name of a cic
- network_id (string) – The value is the ID of network of a cic
- colo_vlan (int) – The value indicates the colocation vlan of a cic
Returns: One
CICRaises: ResourceNotFoundwhen no resource can be found.
-
create_eic(meic_id, eic_name, network_id, server_segment_nbr)[source]¶ Create a single eic
Parameters: - meic_id (string) – The value is the ID of a meic
- eic_name (string) – The value is the name of eic
Returns: One
EICRaises: ResourceNotFoundwhen no resource can be found.
-
delete_cic(mcic_id, cic)[source]¶ Delete a single cic
Parameters: - mcic_id (string) – The value is the ID of a mcic
- cic – The value can be the ID of a cic or a
CICinstance.
Returns: One
CICRaises: ResourceNotFoundwhen no resource can be found.
-
delete_eic(meic_id, eic)[source]¶ Delete a single eic
Parameters: - meic_id (string) – The value is the ID of a meic
- eic – The value can be the ID of a eic or a
EICinstance.
Returns: One
EICRaises: ResourceNotFoundwhen no resource can be found.
-
eics(meic_id, **query)[source]¶ Return a list of EICs
Parameters: meic_id (string) – ID of a meic that eics belong to Returns: A list of EICs objects
-
get_cic(mcic_id, cic)[source]¶ Get a single cic
Parameters: - mcic_id (string) – ID of a mcic
- cic – The value can be the ID of a cic or a
CICinstance.
Returns: One
CICRaises: ResourceNotFoundwhen no resource can be found.
-
get_eic(meic_id, eic)[source]¶ Get a single eic
Parameters: - meic_id (string) – ID of a meic
- eic – The value can be the ID of a eic or a
EICinstance.
Returns: One
EICRaises: ResourceNotFoundwhen no resource can be found.
-
get_mcic(mcic)[source]¶ Get a single mcic
Parameters: mcic – The value can be the ID of a mcic or a MCICinstance.Returns: One MCICRaises: ResourceNotFoundwhen no resource can be found.
-
get_meic(meic)[source]¶ Get a single meic
Parameters: meic – The value can be the ID of a meic or a MEICinstance.Returns: One MEICRaises: ResourceNotFoundwhen no resource can be found.
-
get_operation(operation)[source]¶ Get a single operation
Parameters: operation – The value can be the ID of a operation or a Operationinstance.Returns: One OperationRaises: ResourceNotFoundwhen no resource can be found.
-
mcics(**query)[source]¶ Return a list of MCICs
Parameters: query (kwargs) – Query parameter to get mCICs. * string tenant_id: ID of a tenant to retrieve mCICs. Returns: A list of MCICs objects
-
meics(**query)[source]¶ Return a list of MEICs
Parameters: query (kwargs) – Query parameter to get mEICs. * string tenant_id: ID of a tenant to retrieve mEICs. Returns: A list of MEICs objects
-
operations(**query)[source]¶ Return a list of MCICs
Parameters: query (kwargs) – Query parameter to get operations. * string mcic_id: ID of a mcic * string cic_id: ID of a cic Returns: A list of Operation objects
-
server_segments(service_id)[source]¶ Return a list of Server Segments. :param string service_id: Enterprise Cloud service ID :returns: A list of ServerSegment objects
-
cic¶
-
class
ecl.connectivity.v1.cic.CIC(synchronized=False, **attrs)[source]¶ Bases:
ecl.resource2.Resource-
allow_create= True¶
-
allow_delete= True¶
-
allow_get= True¶
-
allow_list= True¶
-
allow_update= True¶
-
bandwidth= None¶
-
base_path= '/mCICs/%(mcic_id)s/CICs'¶
-
cic_id= None¶
-
cic_name= None¶
-
cic_status= None¶
-
colo_vlan= None¶
-
destination_vlan= None¶
-
mcic_id= None¶
-
network_id= None¶
-
network_name= None¶
-
resource_key= None¶
-
resources_key= None¶
-
service= {'region_name': None, 'service_name': None, 'interface': 'public', 'version': None, 'service_type': 'interconnectivity', 'requires_project_id': False, 'api_version': None}¶
-
mcic¶
-
class
ecl.connectivity.v1.mcic.MCIC(synchronized=False, **attrs)[source]¶ Bases:
ecl.resource2.Resource-
allow_get= True¶
-
allow_list= True¶
-
base_path= '/mCICs'¶
-
colo= None¶
-
mcic_id= None¶
-
mcic_name= None¶
-
mcic_status= None¶
-
ngc= None¶
-
resource_key= None¶
-
resources_key= None¶
-
service= {'region_name': None, 'service_name': None, 'interface': 'public', 'version': None, 'service_type': 'interconnectivity', 'requires_project_id': False, 'api_version': None}¶
-
service_type= None¶
-
tenant_id= None¶
-
tenant_name= None¶
-
timezone= None¶
-
operation¶
-
class
ecl.connectivity.v1.operation.Operation(synchronized=False, **attrs)[source]¶ Bases:
ecl.resource2.Resource-
allow_get= True¶
-
allow_list= True¶
-
base_path= '/operations'¶
-
cic_id= None¶
-
error_messages= None¶
-
mcic_id= None¶
-
operation_body= None¶
-
operation_id= None¶
-
operation_status= None¶
-
operation_type= None¶
-
receipt_date= None¶
-
resource_key= None¶
-
resources_key= None¶
-
service= {'region_name': None, 'service_name': None, 'interface': 'public', 'version': None, 'service_type': 'interconnectivity', 'requires_project_id': False, 'api_version': None}¶
-
user_id= None¶
-
user_name= None¶
-
server_segment¶
-
class
ecl.connectivity.v1.server_segment.ServerSegment(synchronized=False, **attrs)[source]¶ Bases:
ecl.resource2.Resource-
allow_get= False¶
-
allow_list= True¶
-
base_path= '/ec_services/%(service_id)s/server_segments'¶
-
resource_key= None¶
-
resources_key= 'server_segments'¶
-
server_segment_name= None¶ server segment name.
-
server_segment_nbr= None¶ server segment number.
-
service= {'region_name': None, 'service_name': None, 'interface': 'public', 'version': None, 'service_type': 'interconnectivity', 'requires_project_id': False, 'api_version': None}¶
-