你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AstroOrganizationCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Astro.AstroOrganizationResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string organizationName, Azure.ResourceManager.Astro.AstroOrganizationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Astro.AstroOrganizationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Astro.AstroOrganizationResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Astro.AstroOrganizationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Astro.AstroOrganizationResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, organizationName As String, data As AstroOrganizationData, Optional cancellationToken As CancellationToken = Nothing) As 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