tenant
Operation: POST /dataservice/tenant
Deprecated!!!
Create a new tenant in Multi-Tenant vManage<br><br><br>Note: In a multitenant vManage system, this API is only available in the Provider view.
def post(payload: Any) -> Any: ...
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.tenant.post()
Operation: GET /dataservice/tenant
@overload
def get(device_id: Optional[str] = None) -> List[Any]: ...
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.tenant.get()
Operation: GET /dataservice/tenant/{tenantId}
@overload
def get(tenant_id: str) -> Any: ...
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.tenant.get()
Operation: PUT /dataservice/tenant
@overload
def put(payload: Any) -> Any: ...
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.tenant.put()
Operation: PUT /dataservice/tenant/{tenantId}
@overload
def put(payload: Any, tenant_id: str) -> Any: ...
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.tenant.put()