Module: ElasticsearchServerless::API::License::Actions
- Defined in:
- lib/elasticsearch-serverless/api/license/get.rb
Instance Method Summary collapse
-
#get(arguments = {}) ⇒ Object
Get license information.
Instance Method Details
#get(arguments = {}) ⇒ Object
Get license information. Get information about your Elastic license including its type, its status, when it was issued, and when it expires.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/elasticsearch-serverless/api/license/get.rb', line 35 def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = ElasticsearchServerless::API::HTTP_GET path = '_license' params = Utils.process_params(arguments) ElasticsearchServerless::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |