Partager via


DeviceRegistryDiscoveredAssetEndpointProfileCollection.CreateOrUpdate Method

Definition

Create a DiscoveredAssetEndpointProfile

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/discoveredAssetEndpointProfiles/{discoveredAssetEndpointProfileName}
  • Operation Id: DiscoveredAssetEndpointProfile_CreateOrReplace
  • Default Api Version: 2024-09-01-preview
  • Resource: DeviceRegistryDiscoveredAssetEndpointProfileResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistryDiscoveredAssetEndpointProfileResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string discoveredAssetEndpointProfileName, Azure.ResourceManager.DeviceRegistry.DeviceRegistryDiscoveredAssetEndpointProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceRegistry.DeviceRegistryDiscoveredAssetEndpointProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistryDiscoveredAssetEndpointProfileResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DeviceRegistry.DeviceRegistryDiscoveredAssetEndpointProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceRegistry.DeviceRegistryDiscoveredAssetEndpointProfileResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, discoveredAssetEndpointProfileName As String, data As DeviceRegistryDiscoveredAssetEndpointProfileData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DeviceRegistryDiscoveredAssetEndpointProfileResource)

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.

discoveredAssetEndpointProfileName
String

Discovered Asset Endpoint Profile name parameter.

data
DeviceRegistryDiscoveredAssetEndpointProfileData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

discoveredAssetEndpointProfileName is an empty string, and was expected to be non-empty.

discoveredAssetEndpointProfileName or data is null.

Applies to