OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Moves the specified tag namespace to the specified compartment within the same tenancy.
/// 
/// To move the tag namespace, you must have the manage tag-namespaces permission on both compartments. 
/// For more information about IAM policies, see Details for IAM.
/// 
/// Moving a tag namespace moves all the tag key definitions contained in the tag namespace.
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Moves the specified tag namespace to the specified compartment within the same tenancy.

To move the tag namespace, you must have the manage tag-namespaces permission on both compartments.
For more information about IAM policies, see Details for IAM.

Moving a tag namespace moves all the tag key definitions contained in the tag namespace.
Moves the specified tag namespace to the specified compartment within the same tenancy . To move the tag namespace you must have the manage tag - namespaces permission on both compartments . For more information about IAM policies see Details for IAM . Moving a tag namespace moves all the tag key definitions contained in the tag namespace .
public ChangeTagNamespaceCompartmentResponse ChangeTagNamespaceCompartment(ChangeTagNamespaceCompartmentRequest request)
        {
            var uri = new Uri($"{GetEndPoint(IdentityServices.Compartment, this.Region)}/actions/changeCompartment");
            using (var webResponse = this.RestClient.Post(uri, request.ChangeTagNamespaceCompartmentDetail, new HttpRequestHeaderParam() { OpcRetryToken = request.OpcRetryToken }))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new ChangeTagNamespaceCompartmentResponse()
                {
                    OpcRequestId = webResponse.Headers.Get("opc-request-id")
                };
            }
        }
public ChangeTagNamespaceCompartmentResponse ChangeTagNamespaceCompartment ( ChangeTagNamespaceCompartmentRequest request ) { var uri = new Uri ( $" { GetEndPoint ( IdentityServices . Compartment , this . Region ) } /actions/changeCompartment " ) ; using ( var webResponse = this . RestClient . Post ( uri , request . ChangeTagNamespaceCompartmentDetail , new HttpRequestHeaderParam ( ) { OpcRetryToken = request . OpcRetryToken } ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new ChangeTagNamespaceCompartmentResponse ( ) { OpcRequestId = webResponse . Headers . Get ( " " ) } ; } }
Moves the specified tag namespace to the specified compartment within the same tenancy.
Moves the specified tag namespace to the specified compartment within the same tenancy .
None
request
ChangeTagNamespaceCompartmentRequest
None