AstroOrganizationCollection.CreateOrUpdateAsync Method

Definition

Create a OrganizationResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Astronomer.Astro/organizations/{organizationName}
  • Operation Id: Organizations_CreateOrUpdate
  • Default Api Version: 2023-08-01
  • Resource: AstroOrganizationResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Astro.AstroOrganizationResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string organizationName, Azure.ResourceManager.Astro.AstroOrganizationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Astro.AstroOrganizationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Astro.AstroOrganizationResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Astro.AstroOrganizationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Astro.AstroOrganizationResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, organizationName As String, data As AstroOrganizationData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AstroOrganizationResource))

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.

organizationName
String

Name of the Organizations resource.

data
AstroOrganizationData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

organizationName or data is null.

Applies to