NetworkCloudTrunkedNetworkCollection.CreateOrUpdate 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.
Overloads
CreateOrUpdate(WaitUntil, String, NetworkCloudTrunkedNetworkData, CancellationToken) |
Create a new trunked network or update the properties of the existing trunked network.
|
CreateOrUpdate(WaitUntil, String, NetworkCloudTrunkedNetworkData, String, String, CancellationToken) |
Create a new trunked network or update the properties of the existing trunked network.
|
CreateOrUpdate(WaitUntil, String, NetworkCloudTrunkedNetworkData, CancellationToken)
Create a new trunked network or update the properties of the existing trunked network.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}
- Operation Id: TrunkedNetworks_CreateOrUpdate
- Resource: NetworkCloudTrunkedNetworkResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string trunkedNetworkName, Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkData data, System.Threading.CancellationToken cancellationToken);
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string trunkedNetworkName, Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, trunkedNetworkName As String, data As NetworkCloudTrunkedNetworkData, cancellationToken As CancellationToken) As ArmOperation(Of NetworkCloudTrunkedNetworkResource)
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, trunkedNetworkName As String, data As NetworkCloudTrunkedNetworkData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NetworkCloudTrunkedNetworkResource)
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.
- trunkedNetworkName
- String
The name of the trunked network.
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
trunkedNetworkName
is an empty string, and was expected to be non-empty.
trunkedNetworkName
or data
is null.
Applies to
CreateOrUpdate(WaitUntil, String, NetworkCloudTrunkedNetworkData, String, String, CancellationToken)
Create a new trunked network or update the properties of the existing trunked network.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}
- Operation Id: TrunkedNetworks_CreateOrUpdate
- Default Api Version: 2025-02-01
- Resource: NetworkCloudTrunkedNetworkResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string trunkedNetworkName, Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkData data, string ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkData * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkData * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkCloud.NetworkCloudTrunkedNetworkResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, trunkedNetworkName As String, data As NetworkCloudTrunkedNetworkData, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NetworkCloudTrunkedNetworkResource)
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.
- trunkedNetworkName
- String
The name of the trunked network.
The request body.
- ifMatch
- String
The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
- ifNoneMatch
- String
Set to '*' to allow a new record set to be created, but to prevent updating an existing resource. Other values will result in error from server as they are not supported.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
trunkedNetworkName
is an empty string, and was expected to be non-empty.
trunkedNetworkName
or data
is null.