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. Returns information about your Elastic license, including its type, its status, when it was issued, and when it expires. For more information about the different types of licenses, refer to Elastic Stack subscriptions.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticsearch-serverless/api/license/get.rb', line 36 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 |