v1.feature_profile.sd_routing.embedded_security.policy

Operation: POST /dataservice/v1/feature-profile/sd-routing/embedded-security/{securityId}/policy

Create Feature for Security Policy

def post(
    security_id: str,
    payload: CreateEmbeddedSecurityFeaturePostRequest,
) -> CreateEmbeddedSecurityFeaturePostResponse: ...

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.embedded_security.policy.post()

Operation: PUT /dataservice/v1/feature-profile/sd-routing/embedded-security/{securityId}/policy/{securityProfileParcelId}

Update a Security Feature

def put(
    security_id: str,
    security_profile_parcel_id: str,
    payload: EditSecurityFeaturePutRequest,
) -> EditSecurityFeaturePutResponse: ...

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.embedded_security.policy.put()

Operation: DELETE /dataservice/v1/feature-profile/sd-routing/embedded-security/{securityId}/policy/{securityProfileParcelId}

Delete a Security Feature

def delete(
    security_id: str, security_profile_parcel_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.embedded_security.policy.delete()

Operation: GET /dataservice/v1/feature-profile/sd-routing/embedded-security/{securityId}/policy

@overload
def get(
    security_id: str,
) -> GetListSdRoutingEmbeddedSecurityPolicyPayload: ...

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.embedded_security.policy.get()

Operation: GET /dataservice/v1/feature-profile/sd-routing/embedded-security/{securityId}/policy/{securityProfileParcelId}

@overload
def get(
    security_id: str, security_profile_parcel_id: str
) -> GetSingleSdRoutingEmbeddedSecurityPolicyPayload: ...

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.embedded_security.policy.get()