provider_connectivity methods¶
-
class
ecl.provider_connectivity.v1._proxy.
Proxy
(session)[source]¶ Bases:
ecl.proxy2.BaseProxy
-
approve_aws_connection
(connection_id, action)[source]¶ Approve/Disapprove connection between ECL2.0 and AWS.
Parameters: - connection_id – ID of specified connection.
- type – Action type. You can choose from “approve” or “disapprove”.
Returns: None
-
aws_connections
(**params)[source]¶ List connection resource between ECL2.0 and AWS.
Parameters: params – The parameters as query string to get connections by specified condition. Returns: A list of connection objects Return type: list of AWSConnection
-
delete_aws_connection
(connection_id, ignore_missing=True)[source]¶ Delete connection between ECL2.0 and AWS.
Parameters: - connection_id – The ID of a connection.
- ignore_missing (bool) – When set to
False
ResourceNotFound
will be raised when the port does not exist. When set toTrue
, no exception will be set when attempting to delete a nonexistent port.
Returns: None
-
exchange_points
(**params)[source]¶ List exchange ponts.
Parameters: params – The parameters as query string to get exchange points by specified condition. Returns: A list of exchange point objects Return type: list of ExchangePoint
-
find_aws_connection
(name_or_id, ignore_missing=True)[source]¶ Find a single connection
Parameters: - name_or_id – The name or ID of a connection.
- ignore_missing (bool) – When set to
False
ResourceNotFound
will be raised when the resource does not exist. When set toTrue
, None will be returned when attempting to find a nonexistent resource.
Returns: One
AWSConnection
or None
-
get_aws_connection
(connection_id)[source]¶ Show connection resource between ECL2.0 and AWS.
Parameters: connection_id (string) – ID of specified connection. Returns: AWSConnection
-
operations
(**params)[source]¶ List operations.
Parameters: params – The parameters as query string to get operations by specified condition. Returns: A list of operation objects Return type: list of Operation
-
prepare_aws_connection
(aws_account_id, connected_network_address, bandwidth, qos_type, exchange_point_id, name=None, description=None)[source]¶ Create connection between ECL2.0 and AWS.
Parameters: - aws_account_id (string) – AWS Account ID of owner.
- connected_network_address (string) – Connected network address for AWS connectivity.(/28)
- bandwidth (string) – Bandwidth(Mbps). If you choose BestEffort in the qos_type, can select 100 or 1000. When you select Guarantee, choose from 50 to 500.
- qos_type (string) – QoS type of network. You can choose from “BestEffort” or “Guarantee”.
- exchange_point_id (string) – ID of exchange_points.
- name (string) – Name of connection.
- description (string) – Description of connection.
-
update_aws_connection
(connection, **params)[source]¶ Update connection between ECL2.0 and AWS.
Parameters: connection_id (string) – The ID of a connection.
Attrs **params: Parameters for connection update.
- string name: Name of connection.
- string description: Description of connection.
- string bandwidth: Bandwidth. If you selected BestEffort
- in the qos_type, can update 100 or 1000 Mbps. However, in case of Guarantee, this parameter can not update.
-
aws_connection¶
-
class
ecl.provider_connectivity.v1.aws_connection.
AWSConnection
(synchronized=False, **attrs)[source]¶ Bases:
ecl.resource2.Resource
-
allow_create
= True¶
-
allow_delete
= True¶
-
allow_get
= True¶
-
allow_list
= True¶
-
allow_update
= True¶
-
approve
(session, connection_id, action)[source]¶ Approve/Disapprove connection between ECL2.0 and AWS.
-
aws_account_id
= None¶
-
aws_network1
= None¶ Network params between ECL2.0 and UNO.
-
aws_network2
= None¶ Network params between UNO and AWS.
-
bandwidth
= None¶ Bandwidth assigned with this connection.
-
base_path
= '/v1.0/icc/aws/connections'¶
-
connected_network_address
= None¶
-
description
= None¶ Description of connection.
-
exchange_point_id
= None¶ ID of exchange_points.
-
id
= None¶ It identifies connection resource uniquely.
-
name
= None¶ Name of connection.
-
qos_type
= None¶ QoS type assigned with this connection.
-
resource_key
= 'connection'¶
-
resources_key
= 'connections'¶
-
service
= {'region_name': None, 'service_name': None, 'interface': 'public', 'version': 'v1.0', 'service_type': 'provider-connectivity', 'requires_project_id': False, 'api_version': None}¶
-
status
= None¶ Status of connection.
-
tenant_id
= None¶ Tenant ID of the owner.
-
exchange_point¶
-
class
ecl.provider_connectivity.v1.exchange_point.
ExchangePoint
(synchronized=False, **attrs)[source]¶ Bases:
ecl.resource2.Resource
-
allow_list
= True¶
-
base_path
= '/v1.0/icc/exchange_points'¶
-
id
= None¶ It identifies exchange_point resource uniquely.
-
location_names
= None¶ Pair of location name of AWS and ECL2.0.
-
resources_key
= 'exchange_points'¶
-
service
= {'region_name': None, 'service_name': None, 'interface': 'public', 'version': 'v1.0', 'service_type': 'provider-connectivity', 'requires_project_id': False, 'api_version': None}¶
-
operation¶
-
class
ecl.provider_connectivity.v1.operation.
Operation
(synchronized=False, **attrs)[source]¶ Bases:
ecl.resource2.Resource
-
allow_list
= True¶
-
base_path
= '/v1.0/icc/operations'¶
-
commit_datetime
= None¶ commit datetime. YYYY-MM-DD HH:MM:SS format.
-
connection_id
= None¶ It identifies connection resource uniquely.
-
operation_status
= None¶ Status of phase.
-
order_type
= None¶ order type.
-
phase
= None¶ operation phase.
-
reception_datetime
= None¶ reception datetime. YYYY-MM-DD HH:MM:SS format.
-
request_body
= None¶ Request body is stored.
-
resources_key
= 'operations'¶
-
service
= {'region_name': None, 'service_name': None, 'interface': 'public', 'version': 'v1.0', 'service_type': 'provider-connectivity', 'requires_project_id': False, 'api_version': None}¶
-