cancelSchemaExtension
inline suspend fun DirectoryClient.cancelSchemaExtension(crossinline block: CancelSchemaExtensionRequest.Builder.() -> Unit): CancelSchemaExtensionResponse
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
.
Samples
fun main() {
//sampleStart
// The following example cancels an in progress schema extension to a Microsoft AD directory.
val resp = directoryClient.cancelSchemaExtension {
directoryId = "d-92654abfed"
schemaExtensionId = "e-926731d2a0"
}
//sampleEnd
}