v1.feature_profile.sd_routing.service.dhcp_server

Operation: POST /dataservice/v1/feature-profile/sd-routing/service/{serviceId}/dhcp-server

Create a SD-Routing DHCP Server feature in service feature profile

def post(
    service_id: str,
    payload: CreateSdroutingDhcpServerProfileParcelPostRequest,
) -> CreateSdroutingDhcpServerProfileParcelPostResponse: ...

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.sd_routing.service.dhcp_server.post()

Operation: PUT /dataservice/v1/feature-profile/sd-routing/service/{serviceId}/dhcp-server/{dhcpServerId}

Edit a SD-Routing DHCP Server feature in service feature profile

def put(
    service_id: str,
    dhcp_server_id: str,
    payload: EditSdroutingDhcpServerProfileParcelPutRequest,
) -> EditSdroutingDhcpServerProfileParcelPutResponse: ...

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.sd_routing.service.dhcp_server.put()

Operation: DELETE /dataservice/v1/feature-profile/sd-routing/service/{serviceId}/dhcp-server/{dhcpServerId}

Delete a SD-Routing DHCP Server feature in service feature profile

def delete(service_id: str, dhcp_server_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.sd_routing.service.dhcp_server.delete()

Operation: GET /dataservice/v1/feature-profile/sd-routing/service/{serviceId}/dhcp-server

@overload
def get(
    service_id: str,
) -> GetListSdRoutingServiceDhcpServerPayload: ...

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.sd_routing.service.dhcp_server.get()

Operation: GET /dataservice/v1/feature-profile/sd-routing/service/{serviceId}/dhcp-server/{dhcpServerId}

@overload
def get(
    service_id: str, dhcp_server_id: str
) -> GetSingleSdRoutingServiceDhcpServerPayload: ...

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.sd_routing.service.dhcp_server.get()