Share via


OrbitalSpacecraftCollection.CreateOrUpdate Method

Definition

Creates or updates a spacecraft resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Orbital/spacecrafts/{spacecraftName}
  • Operation Id: Spacecrafts_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Orbital.OrbitalSpacecraftResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string spacecraftName, Azure.ResourceManager.Orbital.OrbitalSpacecraftData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Orbital.OrbitalSpacecraftData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Orbital.OrbitalSpacecraftResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Orbital.OrbitalSpacecraftData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Orbital.OrbitalSpacecraftResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, spacecraftName As String, data As OrbitalSpacecraftData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of OrbitalSpacecraftResource)

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.

spacecraftName
String

Spacecraft ID.

data
OrbitalSpacecraftData

The parameters to provide for the created spacecraft.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

spacecraftName or data is null.

Applies to