v1.feature_profile.sdwan.service.switchport
Operation: POST /dataservice/v1/feature-profile/sdwan/service/{serviceId}/switchport
Create a switchport Parcel to a service feature profile
def post(
service_id: str,
payload: CedgeServiceProfileSwitchportParcelRestfulResourcePostRequest,
) -> (
CedgeServiceProfileSwitchportParcelRestfulResourcePostResponse
): ...
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.v1.feature_profile.sdwan.service.switchport.post()
Operation: PUT /dataservice/v1/feature-profile/sdwan/service/{serviceId}/switchport/{switchportId}
Update a Switchport Parcel association for service feature profile
def put(
service_id: str,
switchport_id: str,
payload: EditSwitchportParcelAssociationForServicePutRequest,
) -> EditSwitchportParcelAssociationForServicePutResponse: ...
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.v1.feature_profile.sdwan.service.switchport.put()
Operation: DELETE /dataservice/v1/feature-profile/sdwan/service/{serviceId}/switchport/{switchportId}
Delete a Switchport Parcel for service feature profile
def delete(service_id: str, switchport_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.v1.feature_profile.sdwan.service.switchport.delete()
Operation: GET /dataservice/v1/feature-profile/sdwan/service/{serviceId}/switchport
@overload
def get(service_id: str) -> GetListSdwanServiceSwitchportPayload: ...
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.v1.feature_profile.sdwan.service.switchport.get()
Operation: GET /dataservice/v1/feature-profile/sdwan/service/{serviceId}/switchport/{switchportId}
@overload
def get(
service_id: str, switchport_id: str
) -> GetSingleSdwanServiceSwitchportPayload: ...
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.v1.feature_profile.sdwan.service.switchport.get()