cancelSchemaExtension method
Cancels an in-progress schema extension to a Microsoft AD directory. Once
a schema extension has started replicating to all domain controllers, the
task can no longer be canceled. A schema extension can be canceled during
any of the following states; Initializing
,
CreatingSnapshot
, and UpdatingSchema
.
May throw EntityDoesNotExistException. May throw ClientException. May throw ServiceException.
Parameter directoryId
:
The identifier of the directory whose schema extension will be canceled.
Parameter schemaExtensionId
:
The identifier of the schema extension that will be canceled.
Implementation
Future<void> cancelSchemaExtension({
required String directoryId,
required String schemaExtensionId,
}) async {
ArgumentError.checkNotNull(directoryId, 'directoryId');
ArgumentError.checkNotNull(schemaExtensionId, 'schemaExtensionId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.CancelSchemaExtension'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
'SchemaExtensionId': schemaExtensionId,
},
);
}