Skip to main content

springbootsites

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

Overview

Namespringbootsites
TypeResource
Idazure_extras.spring_app_discovery.springbootsites

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
extendedLocationobjectThe extended location definition.
locationstringThe geo-location where the resource lives. Required.
masterSiteIdstringThe master site ID from Azure Migrate.
migrateProjectIdstringThe migrate project ID from Azure Migrate.
provisioningStatestringThe resource provisioning state. Known values are: "Unknown", "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning", and "Deleting".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, springbootsites_name, subscription_idGet a springbootsites resource.
list_by_resource_groupselectresource_group_name, subscription_idList springbootsites resource by resourceGroup.
list_by_subscriptionselectsubscription_idList springbootsites resource by subscription.
create_or_updateinsertresource_group_name, springbootsites_name, subscription_id, locationCreate a springbootsites resource.
updateupdateresource_group_name, springbootsites_name, subscription_id, locationUpdate a springbootsites resource.
create_or_updatereplaceresource_group_name, springbootsites_name, subscription_id, locationCreate a springbootsites resource.
deletedeleteresource_group_name, springbootsites_name, subscription_idDelete a springbootsites resource.
trigger_refresh_siteexecresource_group_name, springbootsites_name, subscription_idTrigger refresh springbootsites action.

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.
springbootsites_namestringThe springbootsites name. Required.
subscription_idstring

SELECT examples

Get a springbootsites resource.

SELECT
id,
name,
extendedLocation,
location,
masterSiteId,
migrateProjectId,
provisioningState,
systemData,
tags,
type
FROM azure_extras.spring_app_discovery.springbootsites
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND springbootsites_name = '{{ springbootsites_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a springbootsites resource.

INSERT INTO azure_extras.spring_app_discovery.springbootsites (
tags,
location,
properties,
extendedLocation,
resource_group_name,
springbootsites_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ extendedLocation }}',
'{{ resource_group_name }}',
'{{ springbootsites_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a springbootsites resource.

UPDATE azure_extras.spring_app_discovery.springbootsites
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND springbootsites_name = '{{ springbootsites_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a springbootsites resource.

REPLACE azure_extras.spring_app_discovery.springbootsites
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND springbootsites_name = '{{ springbootsites_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a springbootsites resource.

DELETE FROM azure_extras.spring_app_discovery.springbootsites
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND springbootsites_name = '{{ springbootsites_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Trigger refresh springbootsites action.

EXEC azure_extras.spring_app_discovery.springbootsites.trigger_refresh_site 
@resource_group_name='{{ resource_group_name }}' --required,
@springbootsites_name='{{ springbootsites_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;