DicomServiceCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates or updates a DICOM Service resource with the specified parameters.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}
- Operation Id: DicomServices_CreateOrUpdate
- Default Api Version: 2024-03-31
- Resource: DicomServiceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HealthcareApis.DicomServiceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string dicomServiceName, Azure.ResourceManager.HealthcareApis.DicomServiceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HealthcareApis.DicomServiceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HealthcareApis.DicomServiceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HealthcareApis.DicomServiceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HealthcareApis.DicomServiceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, dicomServiceName As String, data As DicomServiceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DicomServiceResource))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- dicomServiceName
- String
The name of DICOM Service resource.
- data
- DicomServiceData
The parameters for creating or updating a Dicom Service resource.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
dicomServiceName
is an empty string, and was expected to be non-empty.
dicomServiceName
or data
is null.
Applies to
Azure SDK for .NET