Update a resource
PUT/api/v1/ManagedResource/:managedResourceId
Replaces the settings of one resource, such as its platform, service account, ports and certificate trust options. The host record is updated to match the service account and platform.
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.
Values for sshTrustActionType: 0 = AlwaysTrustIgnoreThumbprint, 1 = WarnOnThumbprintMismatch, 2 = ErrorOnThumbprintMismatch.
Values for certificateType: 0 = WinRM, 1 = RDP, 2 = SSH.
Caution: The change applies immediately. Fields you leave out are saved as their defaults, so send the full resource. A new platform is also applied to the resource's scheduled jobs and credentials.
Request
Responses
- 200
- 400
- 403
- 500
Returns the updated resource.
The id in the body does not match the ID in the path.
The signed-in user does not have the required role.
The resource could not be updated, for example because a domain resource has no domainConfigId.