Start a Conversation

Unsolved

Y

1 Rookie

 • 

1 Message

25

January 26th, 2024 15:06

DDOS 7.11 Tenant Units Endpoint

I'm making a call to a data domain system to get information from a tenant unit. I see in the API documentation that there are some optional return values.  When i get the tenant unit information it only returns the values marked as required.  How do i get the api to return any or all optional values?

I've tried using the include_field option but it doesn't seem to work or make a difference:

>>> uri = f"/rest/v1.0/dd-systems/0/smt/tenant-units/{tu_name}?include_fields=security_mode"
>>> tus_dp.get_info_v3(uri,ppdd)
({'id': 't42-tu0-prod-ddboost-sdc-002', 'name': 't42-tu0-prod-ddboost-sdc-002', 'uuid': '523897fd6551782f:6a3a361d7a5780e7', 'link': [{'rel': 'self', 'href': '/rest/v1.0/dd-systems/0/smt/tenant-units/t42-tu0-prod-ddboost-sdc-002'}, {'rel'
: 'parent', 'href': '/rest/v1.0/dd-systems/0/smt/tenant-units'}]}, 200)
>>> uri = f"/rest/v1.0/dd-systems/0/smt/tenant-units/{tu_name}?include_fields=*"
>>> tus_dp.get_info_v3(uri,ppdd)
({'id': 't42-tu0-prod-ddboost-sdc-002', 'name': 't42-tu0-prod-ddboost-sdc-002', 'uuid': '523897fd6551782f:6a3a361d7a5780e7', 'link': [{'rel': 'self', 'href': '/rest/v1.0/dd-systems/0/smt/tenant-units/t42-tu0-prod-ddboost-sdc-002'}, {'rel'
: 'parent', 'href': '/rest/v1.0/dd-systems/0/smt/tenant-units'}]}, 200)
>>> uri = f"/rest/v1.0/dd-systems/0/smt/tenant-units/{tu_name}*"
>>> tus_dp.get_info_v3(uri,ppdd)
An error occurred: 400 Client Error: Bad Request for url: https://p00x02ddszzz002-v0-388.coxautoinc.com:3009/rest/v1.0/dd-systems/0/smt/tenant-units/t42-tu0-prod-ddboost-sdc-002*
>>> uri = f"/rest/v1.0/dd-systems/0/smt/tenant-units/{tu_name}"
>>> tus_dp.get_info_v3(uri,ppdd)
({'id': 't42-tu0-prod-ddboost-sdc-002', 'name': 't42-tu0-prod-ddboost-sdc-002', 'uuid': '523897fd6551782f:6a3a361d7a5780e7', 'tenant_name': 'vlan-42', 'pre_comp_bytes': 0, 'ddboost_storage_units': [{'id': 't42-mt0-tu0-prod-ddboost-sdc-002
', 'name': 't42-mt0-tu0-prod-ddboost-sdc-002', 'link': {'rel': 'self', 'href': '/rest/v1.0/dd-systems/5f367a1d29c008bb%3Acd1edbea24d1d388/protocols/ddboost/storage-units/t42-mt0-tu0-prod-ddboost-sdc-002'}}], 'link': [{'rel': 'self', 'href
': '/rest/v1.0/dd-systems/0/smt/tenant-units/t42-tu0-prod-ddboost-sdc-002'}, {'rel': 'parent', 'href': '/rest/v1.0/dd-systems/0/smt/tenant-units'}]}, 200)
>>> uri = f"/rest/v1.0/dd-systems/0/smt/tenant-units/{tu_name}?include_fields=optional"
>>> tus_dp.get_info_v3(uri,ppdd)
({'id': 't42-tu0-prod-ddboost-sdc-002', 'name': 't42-tu0-prod-ddboost-sdc-002', 'uuid': '523897fd6551782f:6a3a361d7a5780e7', 'link': [{'rel': 'self', 'href': '/rest/v1.0/dd-systems/0/smt/tenant-units/t42-tu0-prod-ddboost-sdc-002'}, {'rel'
: 'parent', 'href': '/rest/v1.0/dd-systems/0/smt/tenant-units'}]}, 200)

No Responses!
No Events found!

Top