Skip to main content

spacecrafts

Creates, updates, deletes, gets or lists a spacecrafts resource.

Overview

Namespacecrafts
TypeResource
Idazure_extras.orbital.spacecrafts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
endAzimuthDegreesnumberAzimuth of the antenna at the end of the contact in decimal degrees.
endElevationDegreesnumberSpacecraft elevation above the horizon at contact end.
groundStationNamestringName of Azure Ground Station.
maximumElevationDegreesnumberMaximum elevation of the antenna during the contact in decimal degrees.
rxEndTimestring (date-time)Time to lost receiving a signal (ISO 8601 UTC standard).
rxStartTimestring (date-time)Earliest time to receive a signal (ISO 8601 UTC standard).
spacecraftobjectThe reference to the spacecraft resource.
startAzimuthDegreesnumberAzimuth of the antenna at the start of the contact in decimal degrees.
startElevationDegreesnumberSpacecraft elevation above the horizon at contact start.
txEndTimestring (date-time)Time at which antenna transmit will be disabled (ISO 8601 UTC standard).
txStartTimestring (date-time)Time at which antenna transmit will be enabled (ISO 8601 UTC standard).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_available_contactsselectresource_group_name, spacecraft_name, subscription_idReturns list of available contacts. A contact is available if the spacecraft is visible from the ground station for more than the minimum viable contact duration provided in the contact profile.
getselectresource_group_name, spacecraft_name, subscription_idGets the specified spacecraft in a specified resource group.
listselectresource_group_name, subscription_id$skiptokenReturns list of spacecrafts by resource group.
list_by_subscriptionselectsubscription_id$skiptokenReturns list of spacecrafts by subscription.
create_or_updateinsertresource_group_name, spacecraft_name, subscription_id, name, centerFrequencyMHz, bandwidthMHz, direction, polarizationCreates or updates a spacecraft resource.
update_tagsupdateresource_group_name, spacecraft_name, subscription_idUpdates the specified spacecraft tags.
create_or_updatereplaceresource_group_name, spacecraft_name, subscription_id, name, centerFrequencyMHz, bandwidthMHz, direction, polarizationCreates or updates a spacecraft resource.
deletedeleteresource_group_name, spacecraft_name, subscription_idDeletes a specified spacecraft resource.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
spacecraft_namestringSpacecraft ID. Required.
subscription_idstring
$skiptokenstringAn opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Default value is None.

SELECT examples

Returns list of available contacts. A contact is available if the spacecraft is visible from the ground station for more than the minimum viable contact duration provided in the contact profile.

SELECT
endAzimuthDegrees,
endElevationDegrees,
groundStationName,
maximumElevationDegrees,
rxEndTime,
rxStartTime,
spacecraft,
startAzimuthDegrees,
startElevationDegrees,
txEndTime,
txStartTime
FROM azure_extras.orbital.spacecrafts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND spacecraft_name = '{{ spacecraft_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a spacecraft resource.

INSERT INTO azure_extras.orbital.spacecrafts (
name,
centerFrequencyMHz,
bandwidthMHz,
direction,
polarization,
resource_group_name,
spacecraft_name,
subscription_id
)
SELECT
'{{ name }}' /* required */,
{{ centerFrequencyMHz }} /* required */,
{{ bandwidthMHz }} /* required */,
'{{ direction }}' /* required */,
'{{ polarization }}' /* required */,
'{{ resource_group_name }}',
'{{ spacecraft_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the specified spacecraft tags.

UPDATE azure_extras.orbital.spacecrafts
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND spacecraft_name = '{{ spacecraft_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a spacecraft resource.

REPLACE azure_extras.orbital.spacecrafts
SET
name = '{{ name }}',
centerFrequencyMHz = {{ centerFrequencyMHz }},
bandwidthMHz = {{ bandwidthMHz }},
direction = '{{ direction }}',
polarization = '{{ polarization }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND spacecraft_name = '{{ spacecraft_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND name = '{{ name }}' --required
AND centerFrequencyMHz = '{{ centerFrequencyMHz }}' --required
AND bandwidthMHz = '{{ bandwidthMHz }}' --required
AND direction = '{{ direction }}' --required
AND polarization = '{{ polarization }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a specified spacecraft resource.

DELETE FROM azure_extras.orbital.spacecrafts
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND spacecraft_name = '{{ spacecraft_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;