Create a resource
POST/api/v1/ManagedResource
Creates a resource record and returns it. Use it to create the record for a host or an Active Directory domain when you already have its details. Only one resource of a given type can exist for a host or a domain configuration.
Permission required: Administrator signed in with multifactor authentication, or an application account.
Values for type: 0 = Host, 1 = Domain, 2 = Website, 3 = AzureAdTenant, 4 = SecretVault, 5 = Database.
Values for manageAccount: 0 = Unmanaged, 1 = Managed.
Caution: The resource is created immediately and the call does not validate that the host or service account is reachable.
Request
Responses
- 200
- 403
- 500
Returns the created resource.
The signed-in user does not have the required role.
The resource could not be created, for example because a domain resource has no domainConfigId or a resource of the same type already exists for the host.