multicloud.interconnect.accounts.locations

Operation: GET /dataservice/multicloud/interconnect/{interconnect-type}/accounts/{interconnect-account-id}/locations

API to retrieve list of available regions for an Interconnect provider and account.

def get(
    interconnect_type: str,
    interconnect_account_id: str,
    region: Optional[str] = None,
) -> InterconnectLocations: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.multicloud.interconnect.accounts.locations.get()

Operation: PUT /dataservice/multicloud/interconnect/{interconnect-type}/accounts/{interconnect-account-id}/locations

API to retrieve and update the available regions for an Interconnect provider and account.

def put(
    interconnect_type: str, interconnect_account_id: str
) -> InterconnectLocations: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.multicloud.interconnect.accounts.locations.put()

Operation: DELETE /dataservice/multicloud/interconnect/{interconnect-type}/accounts/{interconnect-account-id}/locations

API to delete the stored regions for an Interconnect provider and account from vManage.

def delete(
    interconnect_type: str, interconnect_account_id: str
) -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.multicloud.interconnect.accounts.locations.delete()