ApiGatewayCollection.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.
Creates or updates an API Management gateway. This is long running operation and could take several minutes to complete.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}
- Operation Id: ApiGateway_CreateOrUpdate
- Default Api Version: 2024-05-01
- Resource: ApiGatewayResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiGatewayResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string gatewayName, Azure.ResourceManager.ApiManagement.ApiGatewayData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.ApiGatewayData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiGatewayResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.ApiGatewayData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiGatewayResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, gatewayName As String, data As ApiGatewayData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ApiGatewayResource)
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.
- gatewayName
- String
The name of the API Management gateway.
- data
- ApiGatewayData
Parameters supplied to the CreateOrUpdate API Management gateway operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
gatewayName
is an empty string, and was expected to be non-empty.
gatewayName
or data
is null.