Skip to main content

spacecrafts

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

Overview

Namespacecrafts
TypeResource
Idazure.orbital.spacecrafts

Fields

NameDatatypeDescription
linkstextfield from the properties object
locationtextThe geo-location where the resource lives
norad_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
spacecraftNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
title_linetextfield from the properties object
tle_line1textfield from the properties object
tle_line2textfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, spacecraftName, subscriptionIdGets the specified spacecraft in a specified resource group.
listSELECTresourceGroupName, subscriptionIdReturns list of spacecrafts by resource group.
list_by_subscriptionSELECTsubscriptionIdReturns list of spacecrafts by subscription.
create_or_updateINSERTresourceGroupName, spacecraftName, subscriptionId, data__propertiesCreates or updates a spacecraft resource.
deleteDELETEresourceGroupName, spacecraftName, subscriptionIdDeletes a specified spacecraft resource.
update_tagsEXECresourceGroupName, spacecraftName, subscriptionIdUpdates the specified spacecraft tags.

SELECT examples

Returns list of spacecrafts by subscription.

SELECT
links,
location,
norad_id,
provisioning_state,
resourceGroupName,
spacecraftName,
subscriptionId,
tags,
title_line,
tle_line1,
tle_line2
FROM azure.orbital.vw_spacecrafts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new spacecrafts resource.

/*+ create */
INSERT INTO azure.orbital.spacecrafts (
resourceGroupName,
spacecraftName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ spacecraftName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified spacecrafts resource.

/*+ delete */
DELETE FROM azure.orbital.spacecrafts
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND spacecraftName = '{{ spacecraftName }}'
AND subscriptionId = '{{ subscriptionId }}';