api_gateway_config_connection
Creates, updates, deletes, gets or lists an api_gateway_config_connection resource.
Overview
| Name | api_gateway_config_connection |
| Type | Resource |
| Id | azure.api_management.api_gateway_config_connection |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_gateway
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
defaultHostname | string | The default hostname of the data-plane gateway. |
etag | string | ETag of the resource. |
hostnames | array | The hostnames of the data-plane gateway to which requests can be sent. |
provisioningState | string | The current provisioning state of the API Management gateway config connection. |
sourceId | string | The link to the API Management service workspace. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
defaultHostname | string | The default hostname of the data-plane gateway. |
etag | string | ETag of the resource. |
hostnames | array | The hostnames of the data-plane gateway to which requests can be sent. |
provisioningState | string | The current provisioning state of the API Management gateway config connection. |
sourceId | string | The link to the API Management service workspace. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, gateway_name, config_connection_name, subscription_id | Gets an API Management gateway config connection resource description. | |
list_by_gateway | select | resource_group_name, gateway_name, subscription_id | List all API Management gateway config connections within a gateway. | |
create_or_update | insert | resource_group_name, gateway_name, config_connection_name, subscription_id, properties | Creates or updates an API Management gateway config connection. This is long running operation and could take several minutes to complete. | |
create_or_update | replace | resource_group_name, gateway_name, config_connection_name, subscription_id, properties | Creates or updates an API Management gateway config connection. This is long running operation and could take several minutes to complete. | |
delete | delete | resource_group_name, gateway_name, config_connection_name, subscription_id | Deletes an existing API Management gateway config connection. |
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.
| Name | Datatype | Description |
|---|---|---|
config_connection_name | string | The name of the API Management gateway config connection. Required. |
gateway_name | string | The name of the API Management gateway. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_gateway
Gets an API Management gateway config connection resource description.
SELECT
id,
name,
defaultHostname,
etag,
hostnames,
provisioningState,
sourceId,
systemData,
type
FROM azure.api_management.api_gateway_config_connection
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND config_connection_name = '{{ config_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List all API Management gateway config connections within a gateway.
SELECT
id,
name,
defaultHostname,
etag,
hostnames,
provisioningState,
sourceId,
systemData,
type
FROM azure.api_management.api_gateway_config_connection
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates an API Management gateway config connection. This is long running operation and could take several minutes to complete.
INSERT INTO azure.api_management.api_gateway_config_connection (
properties,
resource_group_name,
gateway_name,
config_connection_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ gateway_name }}',
'{{ config_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: api_gateway_config_connection
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the api_gateway_config_connection resource.
- name: gateway_name
value: "{{ gateway_name }}"
description: Required parameter for the api_gateway_config_connection resource.
- name: config_connection_name
value: "{{ config_connection_name }}"
description: Required parameter for the api_gateway_config_connection resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the api_gateway_config_connection resource.
- name: properties
description: |
Properties of the API Management gateway config connection. Required.
value:
provisioningState: "{{ provisioningState }}"
sourceId: "{{ sourceId }}"
defaultHostname: "{{ defaultHostname }}"
hostnames:
- "{{ hostnames }}"
REPLACE examples
- create_or_update
Creates or updates an API Management gateway config connection. This is long running operation and could take several minutes to complete.
REPLACE azure.api_management.api_gateway_config_connection
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND config_connection_name = '{{ config_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;
DELETE examples
- delete
Deletes an existing API Management gateway config connection.
DELETE FROM azure.api_management.api_gateway_config_connection
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND gateway_name = '{{ gateway_name }}' --required
AND config_connection_name = '{{ config_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;