CoreService

<back to all web services

GetTenant

Tenant - CRUD

Returns a single tenant

Requires Authentication
Required role:TenantReader
The following routes are available for this service:
GET/api/tenants/Returns a specific tenant
GET/tenants/Returns a specific tenant
GetTenant Parameters:
NameParameterData TypeRequiredDescription
TenantNameheaderstringYes
IncludeReferencedObjectsquerybool?No
IncludeDeletedquerybool?No
TenantDto Parameters:
NameParameterData TypeRequiredDescription
VariablesformIList<VariableDto>YesVariables defined on tenant level
AllowedMailDomainsformIList<string>YesAllowed email domains used for authentication
LicensedModulesformIList<string>YesList of licensed modules for this tenant
DefaultDeploymentLifetimeDaysformshortNoAmount of days until a Deployment expires
MaxDeploymentLifetimeDaysformshortNoMax amount of days until a Deployment expires
SystemUnpatchedWarningDaysformshortNoAmount of days without patching until a unpatched warning is shown
SystemBackupMissingWarningHoursformshortNoAmount of hours without backup until a backup missing warning is shown
StopVulnerableResourceAfterDaysformshortNoAmount of days until a vulnerable resource is getting stopped
DeploymentExpirationWarningDaysformshortNoAmount of days before deployment expiration, which triggers the expiration warning
PatchNotificationDaysformshortNoAmount of days the patch notification is sent out prior to the patch date
UseCustomHostnamesformboolNoUse a pool with your own hostnames (true) or let the hostname be auto generated (false)
RemoveInactiveVulnerabilitiesAfterDaysformshortNoAfter how many days inactive vulnerabilities will be purged from database
LinksformIList<LinkDto>Yes
ConfigItemDto Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
NameformstringYes
DisplayNameformstringYes
DescriptionformstringNo
ObjectTypeformObjectTypesNo
SelfLinkformstringYes
TagsformIList<TagDto>Yes
PathformIList<PathItemDto>Yes
CreatedformDateTimeNo
CreateUserformstringYes
CreateUserIdformstringYes
ModifiedformDateTimeNo
ModifyUserformstringYes
ModifyUserIdformstringYes
IsDeletedformboolNo
DeletedformDateTime?No
DeleteUserformstringNo
DeleteUserIdformstringNo
LinksformIList<LinkDto>Yes
ObjectTypes Enum:
None
ConfigItem
Tenant
Collection
Resource
ComputeNode
VirtualMachine
PhysicalMachine
Disk
Subnet
IPAddress
Job
JobEvent
FreezePeriod
ResourceGroup
Deployment
ResourceGroupTemplate
DeploymentTemplate
ResourceProvider
GenericResource
Role
Permission
User
PatchingWindow
Update
ReportDefinition
TimeSeries
DataPoint
Action
ActionAssignment
UserNote
TagDto Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
ValueformstringNo
IsProtectedformboolNo
PathItemDto Parameters:
NameParameterData TypeRequiredDescription
LabelformstringYes
LinkformstringYes
ObjectTypeformObjectTypesNo
ObjectIdformGuidNo
LinkDto Parameters:
NameParameterData TypeRequiredDescription
CaptionformstringYes
RelformstringYes
HRefformstringYes
MethodformstringYes
VariableDto Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
ValueformstringYesValue in form of a json string (e.g. Number = 1234, String = "foo", Boolean = false, List = [1,2,3,4]). Note: string values need extra quotes
TypeformValueDataTypeNoThe data type of the value property
DescriptionformstringNo
IsInheritedformboolNo
EnvironmentformEnvironments?No
ValueDataType Enum:
String
Number
Boolean
List
Environments Enum:
Lab
Poc
Dev
Test
Int
Uat
Prod

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/tenants/ HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"variables":null,"allowedMailDomains":null,"licensedModules":null,"defaultDeploymentLifetimeDays":0,"maxDeploymentLifetimeDays":0,"systemUnpatchedWarningDays":0,"systemBackupMissingWarningHours":0,"stopVulnerableResourceAfterDays":0,"deploymentExpirationWarningDays":0,"patchNotificationDays":0,"useCustomHostnames":false,"removeInactiveVulnerabilitiesAfterDays":0,"links":[{"caption":"Collections","rel":"down","hRef":"/collections/","method":"GET"}],"id":"00000000-0000-0000-0000-000000000000","name":"String","displayName":"String","description":"String","objectType":"None","selfLink":"String","tags":null,"path":null,"created":"0001-01-01T00:00:00.0000000Z","createUser":"String","createUserId":"String","modified":"0001-01-01T00:00:00.0000000Z","modifyUser":"String","modifyUserId":"String","isDeleted":false,"deleted":"0001-01-01T00:00:00.0000000Z","deleteUser":"String","deleteUserId":"String"}