CoreService

<back to all web services

CreateResourceProvider

ResourceProvider - CRUD

Creates a new resourceprovider

Requires Authentication
Required roles:TenantReader, TenantAdmin
The following routes are available for this service:
POST/api/resourceproviders/Creates a new resourceprovider
POST/resourceproviders/Creates a new resourceprovider
CreateResourceProvider Parameters:
NameParameterData TypeRequiredDescription
TenantNameheaderstringYes
NamebodystringYesThe resource providers name
DisplayNamebodystringNoThe resource providers display name
DescriptionbodystringNoA more detailed description for the resource provider
DefaultEnvironmentbodyEnvironmentsYesIf environment cannot be detected while scanning, default environment will be used

Allowable Values

  • Lab
  • Poc
  • Dev
  • Test
  • Int
  • Uat
  • Prod
AllowedEnvironmentsbodyIList<Environments>YesList off all allowed environments for this resource provider
TypebodyResourceProviderTypes?YesThe provider type (e.g. Azure)

Allowable Values

  • Azure
  • AmazonWebServices
  • GoogleCloudPlatform
  • ActiveDirectoryServices
  • DomainNameSystem
  • SwisscomESC
  • AzureKeyVault
ConfigbodyarrayYesThe resource provider config
TagsbodyarrayNo
IsDisabledbodyboolYesDisabled resource providers will be ignored when scanning, etc.
InitializeForDeploymentsbodyboolYesStart the initialization process, which enables the resource provider for deployments if successfull
Environments Enum:
Lab
Poc
Dev
Test
Int
Uat
Prod
ResourceProviderTypes Enum:
Azure
AmazonWebServices
GoogleCloudPlatform
ActiveDirectoryServices
DomainNameSystem
SwisscomESC
AzureKeyVault
ProviderConfigEntryDto Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
ValueformstringYes
isSecureformboolNo
TagDto Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
ValueformstringNo
IsProtectedformboolNo
ResourceProviderDto Parameters:
NameParameterData TypeRequiredDescription
TenantIdformGuidNo
DefaultEnvironmentformEnvironmentsNoIf environment cannot be detected while scanning, default environment will be used
AllowedEnvironmentsformIList<Environments>YesList off all allowed environments for this resource provider
TypeformResourceProviderTypesNoDefines the provider type (e.g. Azure, Aws)
ConfigformIList<ProviderConfigEntryDto>YesAdditional generic data which varies depending on ProviderType
IsDisabledformboolNoDisabled ResourceProviders cannot be selected for new deployments
IsReadyForDeploymentsformboolNoShows if a ResourceProvider has been initialized and can accept deployments (resources)
CostCurrentMonthformdecimalNoThe cost for the current month
CostLastMonthformdecimalNoThe cost for the last month
CostCurrencyformstringYesThe cost currency
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
PathItemDto Parameters:
NameParameterData TypeRequiredDescription
LabelformstringYes
LinkformstringYes
ObjectTypeformObjectTypesNo
ObjectIdformGuidNo
LinkDto Parameters:
NameParameterData TypeRequiredDescription
CaptionformstringYes
RelformstringYes
HRefformstringYes
MethodformstringYes

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.

POST /api/resourceproviders/ HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"tenantName":"String","name":"String","displayName":"String","description":"String","defaultEnvironment":"Lab","allowedEnvironments":null,"type":"Azure","config":null,"tags":null,"isDisabled":false,"initializeForDeployments":false,"txId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"tenantId":"00000000-0000-0000-0000-000000000000","defaultEnvironment":"Lab","allowedEnvironments":null,"type":"Azure","config":null,"isDisabled":false,"isReadyForDeployments":false,"costCurrentMonth":0,"costLastMonth":0,"costCurrency":"String","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","links":null}