profiles
Creates, updates, deletes, gets or lists a profiles
resource.
Overview
Name | profiles |
Type | Resource |
Id | azure.traffic_manager.profiles |
Fields
- vw_profiles
- profiles
Name | Datatype | Description |
---|---|---|
allowed_endpoint_record_types | text | field from the properties object |
dns_config | text | field from the properties object |
endpoints | text | field from the properties object |
location | text | The geo-location where the resource lives |
max_return | text | field from the properties object |
monitor_config | text | field from the properties object |
profileName | text | field from the properties object |
profile_status | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
traffic_routing_method | text | field from the properties object |
traffic_view_enrollment_status | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Class representing the Traffic Manager profile properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | profileName, resourceGroupName, subscriptionId | Gets a Traffic Manager profile. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all Traffic Manager profiles within a resource group. |
list_by_subscription | SELECT | subscriptionId | Lists all Traffic Manager profiles within a subscription. |
create_or_update | INSERT | profileName, resourceGroupName, subscriptionId | Create or update a Traffic Manager profile. |
delete | DELETE | profileName, resourceGroupName, subscriptionId | Deletes a Traffic Manager profile. |
update | UPDATE | profileName, resourceGroupName, subscriptionId | Update a Traffic Manager profile. |
check_traffic_manager_name_availability_v2 | EXEC | subscriptionId | Checks the availability of a Traffic Manager Relative DNS name. |
check_traffic_manager_relative_dns_name_availability | EXEC |
| Checks the availability of a Traffic Manager Relative DNS name. |
SELECT
examples
Lists all Traffic Manager profiles within a subscription.
- vw_profiles
- profiles
SELECT
allowed_endpoint_record_types,
dns_config,
endpoints,
location,
max_return,
monitor_config,
profileName,
profile_status,
resourceGroupName,
subscriptionId,
tags,
traffic_routing_method,
traffic_view_enrollment_status
FROM azure.traffic_manager.vw_profiles
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.traffic_manager.profiles
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new profiles
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.traffic_manager.profiles (
profileName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: profileStatus
value: string
- name: trafficRoutingMethod
value: string
- name: dnsConfig
value:
- name: relativeName
value: string
- name: fqdn
value: string
- name: ttl
value: integer
- name: monitorConfig
value:
- name: profileMonitorStatus
value: string
- name: protocol
value: string
- name: port
value: integer
- name: path
value: string
- name: intervalInSeconds
value: integer
- name: timeoutInSeconds
value: integer
- name: toleratedNumberOfFailures
value: integer
- name: customHeaders
value:
- - name: name
value: string
- name: value
value: string
- name: expectedStatusCodeRanges
value:
- - name: min
value: integer
- name: max
value: integer
- name: endpoints
value:
- - name: properties
value:
- name: targetResourceId
value: string
- name: target
value: string
- name: endpointStatus
value: string
- name: weight
value: integer
- name: priority
value: integer
- name: endpointLocation
value: string
- name: endpointMonitorStatus
value: string
- name: minChildEndpoints
value: integer
- name: minChildEndpointsIPv4
value: integer
- name: minChildEndpointsIPv6
value: integer
- name: geoMapping
value:
- string
- name: subnets
value:
- - name: first
value: string
- name: last
value: string
- name: scope
value: integer
- name: customHeaders
value:
- - name: name
value: string
- name: value
value: string
- name: alwaysServe
value: string
- name: trafficViewEnrollmentStatus
value: string
- name: allowedEndpointRecordTypes
value:
- []
- name: maxReturn
value: integer
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a profiles
resource.
/*+ update */
UPDATE azure.traffic_manager.profiles
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}'
WHERE
profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified profiles
resource.
/*+ delete */
DELETE FROM azure.traffic_manager.profiles
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';