Manage avaibility of features as tenant owner¶
The tenant owner can manage feature availability by enabling or disabling the feature through the API, the feature license is not affected.
List of licensed features¶
GET/api/admin/feature/tenant/list?featureType=Application
Click to show example shell script
# featureType is optional, possible values are Service, Application featuretype="<replacewithfeaturetype>" openapikey="<replacewithopenapikey>" curl -k -X GET \ "https://api.mike-cloud-test.com/api/admin/feature/tenant/list?featureType=$featuretype" \ -H 'Content-Type: application/json' \ -H "dhi-open-api-key: $openapikey"
Click to show example response
{ "data": [ { "url": "https://meshbuilder.mike-cloud-dev.com", "responseUrl": "https://meshbuilder.mike-cloud-dev.com/authentication/callback", "featureId": "1a419e84-85f7-467e-9880-e299bb87560f", "name": "Mesh Builder", "enabled": true, "type": "Application" }, { "url": "https://3dworld.mike-cloud-dev.com", "responseUrl": "https://3dworld.mike-cloud-dev.com/authentication/callback", "featureId": "4ba5e15d-9c06-44c5-a82d-f4d49bb56906", "name": "MIKE 3D World", "enabled": true, "type": "Application" }, { "url": "https://datalink.mike-cloud-dev.com", "responseUrl": "https://datalink.mike-cloud-dev.com/authentication/callback", "featureId": "5af35a2a-89a5-46d0-9d40-d439e7d78b90", "name": "Data Link", "enabled": true, "type": "Application" }, { "url": "https://bathymetrybuilder.mike-cloud-dev.com", "responseUrl": "https://bathymetrybuilder.mike-cloud-dev.com/authentication/callback", "featureId": "79de1a4a-b2c7-4c00-b8fb-6a6bb04a83ab", "name": "Bathymetry Builder", "enabled": true, "type": "Application" } ] }
Enable/disable feature¶
PATCH/api/admin/feature/{id}/tenant/{tenantId}
Click to show example shell script
featureid="<replacewithfeatureid>" tenantid="<replacewithprojectid>" openapikey="<replacewithopenapikey>" # disable feature data="{"enabled":false}" curl -k -X PATCH \ "https://api.mike-cloud-test.com/api/admin/feature/$featureid/tenant/$tenantid" \ -H 'Content-Type: application/json' \ -H "dhi-project-id: $tenantid" \ -H "dhi-open-api-key: $openapikey" \ -d "$data"
Click to show example response
{ "enabled": false }