Skip to main content

enterprise_mcc_customers

Creates, updates, deletes, gets or lists an enterprise_mcc_customers resource.

Overview

Nameenterprise_mcc_customers
TypeResource
Idazure_extras.connected_cache.enterprise_mcc_customers

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.
additionalCustomerPropertiesobjectMcc customer resource additional properties.
customerobjectMcc customer resource (customer entity).
errorobjectMcc response error details.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe provisioned state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Unknown", "Accepted", "Upgrading", and "Deleting". (Succeeded, Failed, Canceled, Unknown, Accepted, Upgrading, Deleting)
statusstringHTTP error status code.
statusCodestringMcc response status code.
statusDetailsstringMcc response status details for retrieving response inner details.
statusTextstringMcc response status text as string for retrieving status details.
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, customer_resource_name, subscription_idGets the enterprise mcc customer resource information using this get call.
list_by_resource_groupselectresource_group_name, subscription_idThis api gets the information about all enterprise mcc customer resources under the given subscription and resource group.
list_by_subscriptionselectsubscription_idThis api gets information about all enterpriseMccCustomer resources under the given subscription.
create_or_updateinsertresource_group_name, customer_resource_name, subscription_id, locationThis api creates an enterprise mcc customer with the specified create parameters.
updateupdateresource_group_name, customer_resource_name, subscription_idThis api updates an existing enterprise mcc customer resource.
create_or_updatereplaceresource_group_name, customer_resource_name, subscription_id, locationThis api creates an enterprise mcc customer with the specified create parameters.
deletedeleteresource_group_name, customer_resource_name, subscription_idThis api deletes an existing enterprise mcc customer 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
customer_resource_namestringName of the Customer resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the enterprise mcc customer resource information using this get call.

SELECT
id,
name,
additionalCustomerProperties,
customer,
error,
location,
provisioningState,
status,
statusCode,
statusDetails,
statusText,
systemData,
tags,
type
FROM azure_extras.connected_cache.enterprise_mcc_customers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND customer_resource_name = '{{ customer_resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

This api creates an enterprise mcc customer with the specified create parameters.

INSERT INTO azure_extras.connected_cache.enterprise_mcc_customers (
tags,
location,
properties,
resource_group_name,
customer_resource_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ customer_resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

This api updates an existing enterprise mcc customer resource.

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

REPLACE examples

This api creates an enterprise mcc customer with the specified create parameters.

REPLACE azure_extras.connected_cache.enterprise_mcc_customers
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND customer_resource_name = '{{ customer_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

This api deletes an existing enterprise mcc customer resource.

DELETE FROM azure_extras.connected_cache.enterprise_mcc_customers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND customer_resource_name = '{{ customer_resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;