IResourcesOperations.CreateOrUpdateWithHttpMessagesAsync(String, String, String, String, String, String, GenericResourceInner, Dictionary<String,List<String>>, CancellationToken) Method
Definition
Create a resource.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceInner>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceInner parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * string * string * string * Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Fluent.Models.GenericResourceInner>>
Parameters
- resourceGroupName
- String
The name of the resource group. The name is case insensitive.
- resourceProviderNamespace
- String
Resource identity.
- parentResourcePath
- String
Resource identity.
- resourceType
- String
Resource identity.
- resourceName
- String
Resource identity.
- apiVersion
- String
- parameters
- GenericResourceInner
Create or update resource parameters.
- customHeaders
- Dictionary<String,List<String>>
The headers that will be added to request.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
- Task<Microsoft.Rest.Azure.AzureOperationResponse<GenericResourceInner>>
Exceptions
Microsoft.Rest.Azure.CloudException
Thrown when the operation returned an invalid status code
Microsoft.Rest.SerializationException
Thrown when unable to deserialize the response
Microsoft.Rest.ValidationException
Thrown when a required parameter is null