lib/oci/identity/identity_client.rb
# Deletes the specified tag key definitions. This operation triggers a process that removes the
# tags from all resources in your tenancy. The tag key definitions must be within the same tag namespace.
#
# The following actions happen immediately:
# \u00A0
#   * If the tag is a cost-tracking tag, the tag no longer counts against your
#   10 cost-tracking tags limit, even if you do not disable the tag before running this operation.
#   * If the tag is used with dynamic groups, the rules that contain the tag are no longer
#   evaluated against the tag.
#
# After you start this operation, the state of the tag changes to DELETING, and tag removal
# from resources begins. This process can take up to 48 hours depending on the number of resources that
# are tagged and the regions in which those resources reside.
#
# When all tags have been removed, the state changes to DELETED. You cannot restore a deleted tag. After the tag state
# changes to DELETED, you can use the same tag name again.
#
# After you start this operation, you cannot start either the {#delete_tag delete_tag} or the {#cascade_delete_tag_namespace cascade_delete_tag_namespace} operation until this process completes.
#
# In order to delete tags, you must first retire the tags. Use {#update_tag update_tag}
# to retire a tag.
#
# @param [OCI::Identity::Models::BulkDeleteTagsDetails] bulk_delete_tags_details Request object for deleting tags in bulk.
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
#   particular request, please provide the request ID.
#
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
#   server error without risk of executing that same action again. Retry tokens expire after 24
#   hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
#   has been deleted and purged from the system, then a retry of the original creation request
#   may be rejected).
#
# @return [Response] A Response object with data of type nil
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/identity/bulk_delete_tags.rb.html) to see an example of how to use bulk_delete_tags API.
Deletes the specified tag key definitions. This operation triggers a process that removes the
tags from all resources in your tenancy. The tag key definitions must be within the same tag namespace.

The following actions happen immediately:
\u00A0
If the tag is a cost-tracking tag, the tag no longer counts against your
10 cost-tracking tags limit, even if you do not disable the tag before running this operation.
If the tag is used with dynamic groups, the rules that contain the tag are no longer
evaluated against the tag.

After you start this operation, the state of the tag changes to DELETING, and tag removal
from resources begins. This process can take up to 48 hours depending on the number of resources that
are tagged and the regions in which those resources reside.

When all tags have been removed, the state changes to DELETED. You cannot restore a deleted tag. After the tag state
changes to DELETED, you can use the same tag name again.

After you start this operation, you cannot start either the {#delete_tag delete_tag} or the {#cascade_delete_tag_namespace cascade_delete_tag_namespace} operation until this process completes.

In order to delete tags, you must first retire the tags. Use {#update_tag update_tag}
to retire a tag.
Deletes the specified tag key definitions . This operation triggers a process that removes the tags from all resources in your tenancy . The tag key definitions must be within the same tag namespace . The following actions happen immediately : \ u00A0 If the tag is a cost - tracking tag the tag no longer counts against your 10 cost - tracking tags limit even if you do not disable the tag before running this operation . If the tag is used with dynamic groups the rules that contain the tag are no longer evaluated against the tag . After you start this operation the state of the tag changes to DELETING and tag removal from resources begins . This process can take up to 48 hours depending on the number of resources that are tagged and the regions in which those resources reside . When all tags have been removed the state changes to DELETED . You cannot restore a deleted tag . After the tag state changes to DELETED you can use the same tag name again . After you start this operation you cannot start either the { #delete_tag delete_tag } or the { #cascade_delete_tag_namespace cascade_delete_tag_namespace } operation until this process completes . In order to delete tags you must first retire the tags . Use { #update_tag update_tag } to retire a tag .
def bulk_delete_tags(bulk_delete_tags_details, opts = {})
      logger.debug 'Calling operation IdentityClient#bulk_delete_tags.' if logger
      raise "Missing the required parameter 'bulk_delete_tags_details' when calling bulk_delete_tags." if bulk_delete_tags_details.nil?
      path = '/tags/actions/bulkDelete'
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
      header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
      post_body = @api_client.object_to_http_body(bulk_delete_tags_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#bulk_delete_tags') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def bulk_delete_tags ( bulk_delete_tags_details , opts = { } ) logger . debug 'Calling operation IdentityClient#bulk_delete_tags.' if logger raise "Missing the required parameter 'bulk_delete_tags_details' when calling bulk_delete_tags." if bulk_delete_tags_details . nil? path = '/tags/actions/bulkDelete' operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] header_params [ :' opc-retry-token ' ] = opts [ :opc_retry_token ] if opts [ :opc_retry_token ] header_params [ :' opc-retry-token ' ] ||= OCI :: Retry . generate_opc_retry_token post_body = @api_client . object_to_http_body ( bulk_delete_tags_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#bulk_delete_tags' ) do @api_client . call_api ( :POST , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Deletes the specified tag key definitions.
Deletes the specified tag key definitions .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type nil
A Response object with data of type nil
Response
bulk_delete_tags_details
opts
:opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations .
: opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again . Retry tokens expire after 24 hours but can be invalidated before then due to conflicting operations .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use bulk_delete_tags API.
Click [ here ] to see an example of how to use bulk_delete_tags API .