Skip to main content

ou_containers

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

Overview

Nameou_containers
TypeResource
Idazure.aad_domain_services.ou_containers

Fields

The following fields are returned by SELECT queries:

HTTP 200 (OK) if the operation was successful.

NameDatatypeDescription
idstringResource Id
namestringResource name
etagstringResource etag
locationstringResource location
propertiesobjectOuContainer properties
systemDataobjectThe system meta data relating to this resource.
tagsobjectResource tags
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, domainServiceName, ouContainerNameGet OuContainer in DomainService instance.
listselectsubscriptionId, resourceGroupName, domainServiceNameThe List of OuContainers in DomainService instance.
createinsertsubscriptionId, resourceGroupName, domainServiceName, ouContainerNameThe Create OuContainer operation creates a new OuContainer under the specified Domain Service instance.
updateupdatesubscriptionId, resourceGroupName, domainServiceName, ouContainerNameThe Update OuContainer operation can be used to update the existing OuContainers.
deletedeletesubscriptionId, resourceGroupName, domainServiceName, ouContainerNameThe Delete OuContainer operation deletes specified OuContainer.

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
domainServiceNamestringThe name of the domain service.
ouContainerNamestringThe name of the OuContainer.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstringGets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Get OuContainer in DomainService instance.

SELECT
id,
name,
etag,
location,
properties,
systemData,
tags,
type
FROM azure.aad_domain_services.ou_containers
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND domainServiceName = '{{ domainServiceName }}' -- required
AND ouContainerName = '{{ ouContainerName }}' -- required
;

INSERT examples

The Create OuContainer operation creates a new OuContainer under the specified Domain Service instance.

INSERT INTO azure.aad_domain_services.ou_containers (
data__accountName,
data__spn,
data__password,
subscriptionId,
resourceGroupName,
domainServiceName,
ouContainerName
)
SELECT
'{{ accountName }}',
'{{ spn }}',
'{{ password }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ domainServiceName }}',
'{{ ouContainerName }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

The Update OuContainer operation can be used to update the existing OuContainers.

UPDATE azure.aad_domain_services.ou_containers
SET
data__accountName = '{{ accountName }}',
data__spn = '{{ spn }}',
data__password = '{{ password }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND domainServiceName = '{{ domainServiceName }}' --required
AND ouContainerName = '{{ ouContainerName }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

DELETE examples

The Delete OuContainer operation deletes specified OuContainer.

DELETE FROM azure.aad_domain_services.ou_containers
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND domainServiceName = '{{ domainServiceName }}' --required
AND ouContainerName = '{{ ouContainerName }}' --required
;