Auto-generated code for 8.x (#2471)
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.transport.request({
|
||||
method: "DELETE",
|
||||
path: "/_ingest/geoip/database/my-database-id",
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
@ -5,7 +5,7 @@
|
||||
----
|
||||
const response = await client.ingest.putPipeline({
|
||||
id: "geoip",
|
||||
description: "Add geoip info",
|
||||
description: "Add ip geolocation info",
|
||||
processors: [
|
||||
{
|
||||
geoip: {
|
||||
@ -5,7 +5,7 @@
|
||||
----
|
||||
const response = await client.ingest.putPipeline({
|
||||
id: "geoip",
|
||||
description: "Add geoip info",
|
||||
description: "Add ip geolocation info",
|
||||
processors: [
|
||||
{
|
||||
geoip: {
|
||||
@ -1,11 +0,0 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.transport.request({
|
||||
method: "GET",
|
||||
path: "/_ingest/geoip/database/my-database-id",
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
@ -1,11 +0,0 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.transport.request({
|
||||
method: "DELETE",
|
||||
path: "/_ingest/geoip/database/example-database-id",
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
@ -4,7 +4,7 @@
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.security.putRole({
|
||||
name: "role_with_remote_indices",
|
||||
name: "only_remote_access_role",
|
||||
remote_indices: [
|
||||
{
|
||||
clusters: ["my_remote"],
|
||||
@ -12,6 +12,12 @@ const response = await client.security.putRole({
|
||||
privileges: ["read", "read_cross_cluster", "view_index_metadata"],
|
||||
},
|
||||
],
|
||||
remote_cluster: [
|
||||
{
|
||||
clusters: ["my_remote"],
|
||||
privileges: ["monitor_stats"],
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
34
docs/doc_examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc
Normal file
34
docs/doc_examples/7f1fade93225f8cf6000b93334d76ce4.asciidoc
Normal file
@ -0,0 +1,34 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.ingest.putPipeline({
|
||||
id: "ip_location",
|
||||
description: "Add ip geolocation info",
|
||||
processors: [
|
||||
{
|
||||
ip_location: {
|
||||
field: "ip",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
|
||||
const response1 = await client.index({
|
||||
index: "my-index-000001",
|
||||
id: "my_id",
|
||||
pipeline: "ip_location",
|
||||
document: {
|
||||
ip: "80.231.5.0",
|
||||
},
|
||||
});
|
||||
console.log(response1);
|
||||
|
||||
const response2 = await client.get({
|
||||
index: "my-index-000001",
|
||||
id: "my_id",
|
||||
});
|
||||
console.log(response2);
|
||||
----
|
||||
@ -1,17 +0,0 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.transport.request({
|
||||
method: "PUT",
|
||||
path: "/_ingest/geoip/database/my-database-id",
|
||||
body: {
|
||||
name: "GeoIP2-Domain",
|
||||
maxmind: {
|
||||
account_id: "1025402",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
34
docs/doc_examples/a3779f21f132787c48681bfb50453592.asciidoc
Normal file
34
docs/doc_examples/a3779f21f132787c48681bfb50453592.asciidoc
Normal file
@ -0,0 +1,34 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.ingest.putPipeline({
|
||||
id: "ip_location",
|
||||
description: "Add ip geolocation info",
|
||||
processors: [
|
||||
{
|
||||
ip_location: {
|
||||
field: "ip",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
|
||||
const response1 = await client.index({
|
||||
index: "my-index-000001",
|
||||
id: "my_id",
|
||||
pipeline: "ip_location",
|
||||
document: {
|
||||
ip: "89.160.20.128",
|
||||
},
|
||||
});
|
||||
console.log(response1);
|
||||
|
||||
const response2 = await client.get({
|
||||
index: "my-index-000001",
|
||||
id: "my_id",
|
||||
});
|
||||
console.log(response2);
|
||||
----
|
||||
@ -5,7 +5,7 @@
|
||||
----
|
||||
const response = await client.ingest.putPipeline({
|
||||
id: "geoip",
|
||||
description: "Add geoip info",
|
||||
description: "Add ip geolocation info",
|
||||
processors: [
|
||||
{
|
||||
geoip: {
|
||||
36
docs/doc_examples/e308899a306e61d1a590868308689955.asciidoc
Normal file
36
docs/doc_examples/e308899a306e61d1a590868308689955.asciidoc
Normal file
@ -0,0 +1,36 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.ingest.putPipeline({
|
||||
id: "ip_location",
|
||||
description: "Add ip geolocation info",
|
||||
processors: [
|
||||
{
|
||||
ip_location: {
|
||||
field: "ip",
|
||||
target_field: "geo",
|
||||
database_file: "GeoLite2-Country.mmdb",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
|
||||
const response1 = await client.index({
|
||||
index: "my-index-000001",
|
||||
id: "my_id",
|
||||
pipeline: "ip_location",
|
||||
document: {
|
||||
ip: "89.160.20.128",
|
||||
},
|
||||
});
|
||||
console.log(response1);
|
||||
|
||||
const response2 = await client.get({
|
||||
index: "my-index-000001",
|
||||
id: "my_id",
|
||||
});
|
||||
console.log(response2);
|
||||
----
|
||||
@ -5938,6 +5938,17 @@ client.ingest.deleteGeoipDatabase({ id })
|
||||
If no response is received before the timeout expires, the request fails and returns an error.
|
||||
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
|
||||
|
||||
[discrete]
|
||||
==== delete_ip_location_database
|
||||
Deletes an ip location database configuration
|
||||
|
||||
{ref}/delete-ip-location-database-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.ingest.deleteIpLocationDatabase()
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
==== delete_pipeline
|
||||
Deletes one or more existing ingest pipeline.
|
||||
@ -5990,6 +6001,17 @@ To get all database configurations, omit this parameter or use `*`.
|
||||
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
|
||||
If no response is received before the timeout expires, the request fails and returns an error.
|
||||
|
||||
[discrete]
|
||||
==== get_ip_location_database
|
||||
Returns the specified ip location database configuration
|
||||
|
||||
{ref}/get-ip-location-database-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.ingest.getIpLocationDatabase()
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
==== get_pipeline
|
||||
Returns information about one or more ingest pipelines.
|
||||
@ -6047,6 +6069,17 @@ At present, the only supported provider is maxmind, and the maxmind provider req
|
||||
If no response is received before the timeout expires, the request fails and returns an error.
|
||||
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
|
||||
|
||||
[discrete]
|
||||
==== put_ip_location_database
|
||||
Puts the configuration for a ip location database to be downloaded
|
||||
|
||||
{ref}/put-ip-location-database-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.ingest.putIpLocationDatabase()
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
==== put_pipeline
|
||||
Creates or updates an ingest pipeline.
|
||||
@ -9171,7 +9204,7 @@ client.security.bulkPutRole({ roles })
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`roles` (Record<string, { cluster, indices, global, applications, metadata, run_as, description, transient_metadata }>)*: A dictionary of role name to RoleDescriptor objects to add or update
|
||||
** *`roles` (Record<string, { cluster, indices, remote_indices, remote_cluster, global, applications, metadata, run_as, description, transient_metadata }>)*: A dictionary of role name to RoleDescriptor objects to add or update
|
||||
** *`refresh` (Optional, Enum(true | false | "wait_for"))*: If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|
||||
|
||||
[discrete]
|
||||
@ -9328,7 +9361,7 @@ client.security.createApiKey({ ... })
|
||||
* *Request (object):*
|
||||
** *`expiration` (Optional, string | -1 | 0)*: Expiration time for the API key. By default, API keys never expire.
|
||||
** *`name` (Optional, string)*: Specifies the name for this API key.
|
||||
** *`role_descriptors` (Optional, Record<string, { cluster, indices, global, applications, metadata, run_as, description, transient_metadata }>)*: An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API.
|
||||
** *`role_descriptors` (Optional, Record<string, { cluster, indices, remote_indices, remote_cluster, global, applications, metadata, run_as, description, transient_metadata }>)*: An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API.
|
||||
** *`metadata` (Optional, Record<string, User-defined value>)*: Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with `_` are reserved for system usage.
|
||||
** *`refresh` (Optional, Enum(true | false | "wait_for"))*: If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|
||||
|
||||
@ -9887,7 +9920,7 @@ client.security.hasPrivileges({ ... })
|
||||
* *Request (object):*
|
||||
** *`user` (Optional, string)*: Username
|
||||
** *`application` (Optional, { application, privileges, resources }[])*
|
||||
** *`cluster` (Optional, Enum("all" | "cancel_task" | "create_snapshot" | "cross_cluster_replication" | "cross_cluster_search" | "delegate_pki" | "grant_api_key" | "manage" | "manage_api_key" | "manage_autoscaling" | "manage_behavioral_analytics" | "manage_ccr" | "manage_data_frame_transforms" | "manage_data_stream_global_retention" | "manage_enrich" | "manage_ilm" | "manage_index_templates" | "manage_inference" | "manage_ingest_pipelines" | "manage_logstash_pipelines" | "manage_ml" | "manage_oidc" | "manage_own_api_key" | "manage_pipeline" | "manage_rollup" | "manage_saml" | "manage_search_application" | "manage_search_query_rules" | "manage_search_synonyms" | "manage_security" | "manage_service_account" | "manage_slm" | "manage_token" | "manage_transform" | "manage_user_profile" | "manage_watcher" | "monitor" | "monitor_data_frame_transforms" | "monitor_data_stream_global_retention" | "monitor_enrich" | "monitor_inference" | "monitor_ml" | "monitor_rollup" | "monitor_snapshot" | "monitor_text_structure" | "monitor_transform" | "monitor_watcher" | "none" | "post_behavioral_analytics_event" | "read_ccr" | "read_fleet_secrets" | "read_ilm" | "read_pipeline" | "read_security" | "read_slm" | "transport_client" | "write_connector_secrets" | "write_fleet_secrets")[])*: A list of the cluster privileges that you want to check.
|
||||
** *`cluster` (Optional, Enum("all" | "cancel_task" | "create_snapshot" | "cross_cluster_replication" | "cross_cluster_search" | "delegate_pki" | "grant_api_key" | "manage" | "manage_api_key" | "manage_autoscaling" | "manage_behavioral_analytics" | "manage_ccr" | "manage_data_frame_transforms" | "manage_data_stream_global_retention" | "manage_enrich" | "manage_ilm" | "manage_index_templates" | "manage_inference" | "manage_ingest_pipelines" | "manage_logstash_pipelines" | "manage_ml" | "manage_oidc" | "manage_own_api_key" | "manage_pipeline" | "manage_rollup" | "manage_saml" | "manage_search_application" | "manage_search_query_rules" | "manage_search_synonyms" | "manage_security" | "manage_service_account" | "manage_slm" | "manage_token" | "manage_transform" | "manage_user_profile" | "manage_watcher" | "monitor" | "monitor_data_frame_transforms" | "monitor_data_stream_global_retention" | "monitor_enrich" | "monitor_inference" | "monitor_ml" | "monitor_rollup" | "monitor_snapshot" | "monitor_stats" | "monitor_text_structure" | "monitor_transform" | "monitor_watcher" | "none" | "post_behavioral_analytics_event" | "read_ccr" | "read_fleet_secrets" | "read_ilm" | "read_pipeline" | "read_security" | "read_slm" | "transport_client" | "write_connector_secrets" | "write_fleet_secrets")[])*: A list of the cluster privileges that you want to check.
|
||||
** *`index` (Optional, { names, privileges, allow_restricted_indices }[])*
|
||||
|
||||
[discrete]
|
||||
@ -10040,10 +10073,11 @@ client.security.putRole({ name })
|
||||
* *Request (object):*
|
||||
** *`name` (string)*: The name of the role that is being created or updated. On Elasticsearch Serverless, the role name must begin with a letter or digit and can only contain letters, digits and the characters '_', '-', and '.'. Each role must have a unique name, as this will serve as the identifier for that role.
|
||||
** *`applications` (Optional, { application, privileges, resources }[])*: A list of application privilege entries.
|
||||
** *`cluster` (Optional, Enum("all" | "cancel_task" | "create_snapshot" | "cross_cluster_replication" | "cross_cluster_search" | "delegate_pki" | "grant_api_key" | "manage" | "manage_api_key" | "manage_autoscaling" | "manage_behavioral_analytics" | "manage_ccr" | "manage_data_frame_transforms" | "manage_data_stream_global_retention" | "manage_enrich" | "manage_ilm" | "manage_index_templates" | "manage_inference" | "manage_ingest_pipelines" | "manage_logstash_pipelines" | "manage_ml" | "manage_oidc" | "manage_own_api_key" | "manage_pipeline" | "manage_rollup" | "manage_saml" | "manage_search_application" | "manage_search_query_rules" | "manage_search_synonyms" | "manage_security" | "manage_service_account" | "manage_slm" | "manage_token" | "manage_transform" | "manage_user_profile" | "manage_watcher" | "monitor" | "monitor_data_frame_transforms" | "monitor_data_stream_global_retention" | "monitor_enrich" | "monitor_inference" | "monitor_ml" | "monitor_rollup" | "monitor_snapshot" | "monitor_text_structure" | "monitor_transform" | "monitor_watcher" | "none" | "post_behavioral_analytics_event" | "read_ccr" | "read_fleet_secrets" | "read_ilm" | "read_pipeline" | "read_security" | "read_slm" | "transport_client" | "write_connector_secrets" | "write_fleet_secrets")[])*: A list of cluster privileges. These privileges define the cluster-level actions for users with this role.
|
||||
** *`cluster` (Optional, Enum("all" | "cancel_task" | "create_snapshot" | "cross_cluster_replication" | "cross_cluster_search" | "delegate_pki" | "grant_api_key" | "manage" | "manage_api_key" | "manage_autoscaling" | "manage_behavioral_analytics" | "manage_ccr" | "manage_data_frame_transforms" | "manage_data_stream_global_retention" | "manage_enrich" | "manage_ilm" | "manage_index_templates" | "manage_inference" | "manage_ingest_pipelines" | "manage_logstash_pipelines" | "manage_ml" | "manage_oidc" | "manage_own_api_key" | "manage_pipeline" | "manage_rollup" | "manage_saml" | "manage_search_application" | "manage_search_query_rules" | "manage_search_synonyms" | "manage_security" | "manage_service_account" | "manage_slm" | "manage_token" | "manage_transform" | "manage_user_profile" | "manage_watcher" | "monitor" | "monitor_data_frame_transforms" | "monitor_data_stream_global_retention" | "monitor_enrich" | "monitor_inference" | "monitor_ml" | "monitor_rollup" | "monitor_snapshot" | "monitor_stats" | "monitor_text_structure" | "monitor_transform" | "monitor_watcher" | "none" | "post_behavioral_analytics_event" | "read_ccr" | "read_fleet_secrets" | "read_ilm" | "read_pipeline" | "read_security" | "read_slm" | "transport_client" | "write_connector_secrets" | "write_fleet_secrets")[])*: A list of cluster privileges. These privileges define the cluster-level actions for users with this role.
|
||||
** *`global` (Optional, Record<string, User-defined value>)*: An object defining global privileges. A global privilege is a form of cluster privilege that is request-aware. Support for global privileges is currently limited to the management of application privileges.
|
||||
** *`indices` (Optional, { field_security, names, privileges, query, allow_restricted_indices }[])*: A list of indices permissions entries.
|
||||
** *`remote_indices` (Optional, { clusters, field_security, names, privileges, query, allow_restricted_indices }[])*: A list of remote indices permissions entries.
|
||||
** *`remote_cluster` (Optional, { clusters, privileges }[])*: A list of remote cluster permissions entries.
|
||||
** *`metadata` (Optional, Record<string, User-defined value>)*: Optional metadata. Within the metadata object, keys that begin with an underscore (`_`) are reserved for system use.
|
||||
** *`run_as` (Optional, string[])*: A list of users that the owners of this role can impersonate. *Note*: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty `run_as` field, but a non-empty list will be rejected.
|
||||
** *`description` (Optional, string)*: Optional description of the role descriptor
|
||||
@ -10397,7 +10431,7 @@ client.security.updateApiKey({ id })
|
||||
|
||||
* *Request (object):*
|
||||
** *`id` (string)*: The ID of the API key to update.
|
||||
** *`role_descriptors` (Optional, Record<string, { cluster, indices, global, applications, metadata, run_as, description, transient_metadata }>)*: An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API.
|
||||
** *`role_descriptors` (Optional, Record<string, { cluster, indices, remote_indices, remote_cluster, global, applications, metadata, run_as, description, transient_metadata }>)*: An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API.
|
||||
** *`metadata` (Optional, Record<string, User-defined value>)*: Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage.
|
||||
** *`expiration` (Optional, string | -1 | 0)*: Expiration time for the API key.
|
||||
|
||||
@ -11266,7 +11300,7 @@ client.tasks.list({ ... })
|
||||
** *`actions` (Optional, string | string[])*: List or wildcard expression of actions used to limit the request.
|
||||
** *`detailed` (Optional, boolean)*: If `true`, the response includes detailed information about shard recoveries.
|
||||
** *`group_by` (Optional, Enum("nodes" | "parents" | "none"))*: Key used to group tasks in the response.
|
||||
** *`node_id` (Optional, string[])*: List of node IDs or names used to limit returned information.
|
||||
** *`nodes` (Optional, string | string[])*: List of node IDs or names used to limit returned information.
|
||||
** *`parent_task_id` (Optional, string)*: Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`.
|
||||
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
|
||||
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
|
||||
|
||||
@ -76,6 +76,38 @@ export default class Ingest {
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes an ip location database configuration
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-ip-location-database-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async deleteIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async deleteIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async deleteIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async deleteIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['id']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'DELETE'
|
||||
const path = `/_ingest/ip_location/database/${encodeURIComponent(params.id.toString())}`
|
||||
const meta: TransportRequestMetadata = {
|
||||
name: 'ingest.delete_ip_location_database',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
}
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes one or more existing ingest pipeline.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html | Elasticsearch API documentation}
|
||||
@ -178,6 +210,45 @@ export default class Ingest {
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the specified ip location database configuration
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-ip-location-database-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async getIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async getIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async getIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async getIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['id']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
let method = ''
|
||||
let path = ''
|
||||
if (params.id != null) {
|
||||
method = 'GET'
|
||||
path = `/_ingest/ip_location/database/${encodeURIComponent(params.id.toString())}`
|
||||
} else {
|
||||
method = 'GET'
|
||||
path = '/_ingest/ip_location/database'
|
||||
}
|
||||
const meta: TransportRequestMetadata = {
|
||||
name: 'ingest.get_ip_location_database',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
}
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about one or more ingest pipelines. This API returns a local reference of the pipeline.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html | Elasticsearch API documentation}
|
||||
@ -292,6 +363,38 @@ export default class Ingest {
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Puts the configuration for a ip location database to be downloaded
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/put-ip-location-database-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async putIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async putIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async putIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async putIpLocationDatabase (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['id']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'PUT'
|
||||
const path = `/_ingest/ip_location/database/${encodeURIComponent(params.id.toString())}`
|
||||
const meta: TransportRequestMetadata = {
|
||||
name: 'ingest.put_ip_location_database',
|
||||
pathParts: {
|
||||
id: params.id
|
||||
}
|
||||
}
|
||||
return await this.transport.request({ path, method, querystring, body, meta }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates or updates an ingest pipeline. Changes made using this API take effect immediately.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/ingest.html | Elasticsearch API documentation}
|
||||
|
||||
@ -1697,7 +1697,7 @@ export default class Security {
|
||||
async putRole (this: That, params: T.SecurityPutRoleRequest | TB.SecurityPutRoleRequest, options?: TransportRequestOptions): Promise<T.SecurityPutRoleResponse>
|
||||
async putRole (this: That, params: T.SecurityPutRoleRequest | TB.SecurityPutRoleRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['name']
|
||||
const acceptedBody: string[] = ['applications', 'cluster', 'global', 'indices', 'remote_indices', 'metadata', 'run_as', 'description', 'transient_metadata']
|
||||
const acceptedBody: string[] = ['applications', 'cluster', 'global', 'indices', 'remote_indices', 'remote_cluster', 'metadata', 'run_as', 'description', 'transient_metadata']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
|
||||
@ -10954,6 +10954,8 @@ export interface IndicesIndexTemplate {
|
||||
_meta?: Metadata
|
||||
allow_auto_create?: boolean
|
||||
data_stream?: IndicesIndexTemplateDataStreamConfiguration
|
||||
deprecated?: boolean
|
||||
ignore_missing_component_templates?: Names
|
||||
}
|
||||
|
||||
export interface IndicesIndexTemplateDataStreamConfiguration {
|
||||
@ -13358,6 +13360,7 @@ export interface MigrationDeprecationsRequest extends RequestBase {
|
||||
export interface MigrationDeprecationsResponse {
|
||||
cluster_settings: MigrationDeprecationsDeprecation[]
|
||||
index_settings: Record<string, MigrationDeprecationsDeprecation[]>
|
||||
data_streams: Record<string, MigrationDeprecationsDeprecation[]>
|
||||
node_settings: MigrationDeprecationsDeprecation[]
|
||||
ml_settings: MigrationDeprecationsDeprecation[]
|
||||
}
|
||||
@ -17298,7 +17301,7 @@ export interface SecurityClusterNode {
|
||||
name: Name
|
||||
}
|
||||
|
||||
export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'cross_cluster_replication' | 'cross_cluster_search' | 'delegate_pki' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_autoscaling' | 'manage_behavioral_analytics' | 'manage_ccr' | 'manage_data_frame_transforms' | 'manage_data_stream_global_retention' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_inference' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_search_application' | 'manage_search_query_rules' | 'manage_search_synonyms' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_data_frame_transforms' | 'monitor_data_stream_global_retention' | 'monitor_enrich' | 'monitor_inference' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'none' | 'post_behavioral_analytics_event' | 'read_ccr' | 'read_fleet_secrets' | 'read_ilm' | 'read_pipeline' | 'read_security' | 'read_slm' | 'transport_client' | 'write_connector_secrets' | 'write_fleet_secrets' | string
|
||||
export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'cross_cluster_replication' | 'cross_cluster_search' | 'delegate_pki' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_autoscaling' | 'manage_behavioral_analytics' | 'manage_ccr' | 'manage_data_frame_transforms' | 'manage_data_stream_global_retention' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_inference' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_search_application' | 'manage_search_query_rules' | 'manage_search_synonyms' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_data_frame_transforms' | 'monitor_data_stream_global_retention' | 'monitor_enrich' | 'monitor_inference' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_stats' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'none' | 'post_behavioral_analytics_event' | 'read_ccr' | 'read_fleet_secrets' | 'read_ilm' | 'read_pipeline' | 'read_security' | 'read_slm' | 'transport_client' | 'write_connector_secrets' | 'write_fleet_secrets' | string
|
||||
|
||||
export interface SecurityCreatedStatus {
|
||||
created: boolean
|
||||
@ -17342,6 +17345,13 @@ export interface SecurityRealmInfo {
|
||||
type: string
|
||||
}
|
||||
|
||||
export type SecurityRemoteClusterPrivilege = 'monitor_enrich' | 'monitor_stats'
|
||||
|
||||
export interface SecurityRemoteClusterPrivileges {
|
||||
clusters: Names
|
||||
privileges: SecurityRemoteClusterPrivilege[]
|
||||
}
|
||||
|
||||
export interface SecurityRemoteIndicesPrivileges {
|
||||
clusters: Names
|
||||
field_security?: SecurityFieldSecurity
|
||||
@ -17353,12 +17363,15 @@ export interface SecurityRemoteIndicesPrivileges {
|
||||
|
||||
export interface SecurityReplicationAccess {
|
||||
names: IndexName[]
|
||||
allow_restricted_indices?: boolean
|
||||
}
|
||||
|
||||
export interface SecurityRoleDescriptor {
|
||||
cluster?: SecurityClusterPrivilege[]
|
||||
indices?: SecurityIndicesPrivileges[]
|
||||
index?: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege
|
||||
applications?: SecurityApplicationPrivileges[]
|
||||
metadata?: Metadata
|
||||
@ -17371,6 +17384,8 @@ export interface SecurityRoleDescriptorRead {
|
||||
cluster: SecurityClusterPrivilege[]
|
||||
indices: SecurityIndicesPrivileges[]
|
||||
index: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege
|
||||
applications?: SecurityApplicationPrivileges[]
|
||||
metadata?: Metadata
|
||||
@ -17758,8 +17773,9 @@ export interface SecurityGetBuiltinPrivilegesRequest extends RequestBase {
|
||||
}
|
||||
|
||||
export interface SecurityGetBuiltinPrivilegesResponse {
|
||||
cluster: string[]
|
||||
cluster: SecurityClusterPrivilege[]
|
||||
index: IndexName[]
|
||||
remote_cluster: SecurityRemoteClusterPrivilege[]
|
||||
}
|
||||
|
||||
export interface SecurityGetPrivilegesRequest extends RequestBase {
|
||||
@ -17776,8 +17792,10 @@ export interface SecurityGetRoleRequest extends RequestBase {
|
||||
export type SecurityGetRoleResponse = Record<string, SecurityGetRoleRole>
|
||||
|
||||
export interface SecurityGetRoleRole {
|
||||
cluster: string[]
|
||||
cluster: SecurityClusterPrivilege[]
|
||||
indices: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
metadata: Metadata
|
||||
run_as: string[]
|
||||
transient_metadata?: Record<string, any>
|
||||
@ -18030,6 +18048,7 @@ export interface SecurityPutRoleRequest extends RequestBase {
|
||||
global?: Record<string, any>
|
||||
indices?: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
metadata?: Metadata
|
||||
run_as?: string[]
|
||||
description?: string
|
||||
@ -19147,7 +19166,7 @@ export interface TasksListRequest extends RequestBase {
|
||||
actions?: string | string[]
|
||||
detailed?: boolean
|
||||
group_by?: TasksGroupBy
|
||||
node_id?: string[]
|
||||
nodes?: NodeIds
|
||||
parent_task_id?: Id
|
||||
master_timeout?: Duration
|
||||
timeout?: Duration
|
||||
|
||||
@ -11131,6 +11131,8 @@ export interface IndicesIndexTemplate {
|
||||
_meta?: Metadata
|
||||
allow_auto_create?: boolean
|
||||
data_stream?: IndicesIndexTemplateDataStreamConfiguration
|
||||
deprecated?: boolean
|
||||
ignore_missing_component_templates?: Names
|
||||
}
|
||||
|
||||
export interface IndicesIndexTemplateDataStreamConfiguration {
|
||||
@ -13597,6 +13599,7 @@ export interface MigrationDeprecationsRequest extends RequestBase {
|
||||
export interface MigrationDeprecationsResponse {
|
||||
cluster_settings: MigrationDeprecationsDeprecation[]
|
||||
index_settings: Record<string, MigrationDeprecationsDeprecation[]>
|
||||
data_streams: Record<string, MigrationDeprecationsDeprecation[]>
|
||||
node_settings: MigrationDeprecationsDeprecation[]
|
||||
ml_settings: MigrationDeprecationsDeprecation[]
|
||||
}
|
||||
@ -17676,7 +17679,7 @@ export interface SecurityClusterNode {
|
||||
name: Name
|
||||
}
|
||||
|
||||
export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'cross_cluster_replication' | 'cross_cluster_search' | 'delegate_pki' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_autoscaling' | 'manage_behavioral_analytics' | 'manage_ccr' | 'manage_data_frame_transforms' | 'manage_data_stream_global_retention' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_inference' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_search_application' | 'manage_search_query_rules' | 'manage_search_synonyms' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_data_frame_transforms' | 'monitor_data_stream_global_retention' | 'monitor_enrich' | 'monitor_inference' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'none' | 'post_behavioral_analytics_event' | 'read_ccr' | 'read_fleet_secrets' | 'read_ilm' | 'read_pipeline' | 'read_security' | 'read_slm' | 'transport_client' | 'write_connector_secrets' | 'write_fleet_secrets' | string
|
||||
export type SecurityClusterPrivilege = 'all' | 'cancel_task' | 'create_snapshot' | 'cross_cluster_replication' | 'cross_cluster_search' | 'delegate_pki' | 'grant_api_key' | 'manage' | 'manage_api_key' | 'manage_autoscaling' | 'manage_behavioral_analytics' | 'manage_ccr' | 'manage_data_frame_transforms' | 'manage_data_stream_global_retention' | 'manage_enrich' | 'manage_ilm' | 'manage_index_templates' | 'manage_inference' | 'manage_ingest_pipelines' | 'manage_logstash_pipelines' | 'manage_ml' | 'manage_oidc' | 'manage_own_api_key' | 'manage_pipeline' | 'manage_rollup' | 'manage_saml' | 'manage_search_application' | 'manage_search_query_rules' | 'manage_search_synonyms' | 'manage_security' | 'manage_service_account' | 'manage_slm' | 'manage_token' | 'manage_transform' | 'manage_user_profile' | 'manage_watcher' | 'monitor' | 'monitor_data_frame_transforms' | 'monitor_data_stream_global_retention' | 'monitor_enrich' | 'monitor_inference' | 'monitor_ml' | 'monitor_rollup' | 'monitor_snapshot' | 'monitor_stats' | 'monitor_text_structure' | 'monitor_transform' | 'monitor_watcher' | 'none' | 'post_behavioral_analytics_event' | 'read_ccr' | 'read_fleet_secrets' | 'read_ilm' | 'read_pipeline' | 'read_security' | 'read_slm' | 'transport_client' | 'write_connector_secrets' | 'write_fleet_secrets' | string
|
||||
|
||||
export interface SecurityCreatedStatus {
|
||||
created: boolean
|
||||
@ -17720,6 +17723,13 @@ export interface SecurityRealmInfo {
|
||||
type: string
|
||||
}
|
||||
|
||||
export type SecurityRemoteClusterPrivilege = 'monitor_enrich' | 'monitor_stats'
|
||||
|
||||
export interface SecurityRemoteClusterPrivileges {
|
||||
clusters: Names
|
||||
privileges: SecurityRemoteClusterPrivilege[]
|
||||
}
|
||||
|
||||
export interface SecurityRemoteIndicesPrivileges {
|
||||
clusters: Names
|
||||
field_security?: SecurityFieldSecurity
|
||||
@ -17731,12 +17741,15 @@ export interface SecurityRemoteIndicesPrivileges {
|
||||
|
||||
export interface SecurityReplicationAccess {
|
||||
names: IndexName[]
|
||||
allow_restricted_indices?: boolean
|
||||
}
|
||||
|
||||
export interface SecurityRoleDescriptor {
|
||||
cluster?: SecurityClusterPrivilege[]
|
||||
indices?: SecurityIndicesPrivileges[]
|
||||
index?: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege
|
||||
applications?: SecurityApplicationPrivileges[]
|
||||
metadata?: Metadata
|
||||
@ -17749,6 +17762,8 @@ export interface SecurityRoleDescriptorRead {
|
||||
cluster: SecurityClusterPrivilege[]
|
||||
indices: SecurityIndicesPrivileges[]
|
||||
index: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
global?: SecurityGlobalPrivilege[] | SecurityGlobalPrivilege
|
||||
applications?: SecurityApplicationPrivileges[]
|
||||
metadata?: Metadata
|
||||
@ -18154,8 +18169,9 @@ export interface SecurityGetBuiltinPrivilegesRequest extends RequestBase {
|
||||
}
|
||||
|
||||
export interface SecurityGetBuiltinPrivilegesResponse {
|
||||
cluster: string[]
|
||||
cluster: SecurityClusterPrivilege[]
|
||||
index: IndexName[]
|
||||
remote_cluster: SecurityRemoteClusterPrivilege[]
|
||||
}
|
||||
|
||||
export interface SecurityGetPrivilegesRequest extends RequestBase {
|
||||
@ -18172,8 +18188,10 @@ export interface SecurityGetRoleRequest extends RequestBase {
|
||||
export type SecurityGetRoleResponse = Record<string, SecurityGetRoleRole>
|
||||
|
||||
export interface SecurityGetRoleRole {
|
||||
cluster: string[]
|
||||
cluster: SecurityClusterPrivilege[]
|
||||
indices: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
metadata: Metadata
|
||||
run_as: string[]
|
||||
transient_metadata?: Record<string, any>
|
||||
@ -18447,6 +18465,7 @@ export interface SecurityPutRoleRequest extends RequestBase {
|
||||
global?: Record<string, any>
|
||||
indices?: SecurityIndicesPrivileges[]
|
||||
remote_indices?: SecurityRemoteIndicesPrivileges[]
|
||||
remote_cluster?: SecurityRemoteClusterPrivileges[]
|
||||
metadata?: Metadata
|
||||
run_as?: string[]
|
||||
description?: string
|
||||
@ -19639,7 +19658,7 @@ export interface TasksListRequest extends RequestBase {
|
||||
actions?: string | string[]
|
||||
detailed?: boolean
|
||||
group_by?: TasksGroupBy
|
||||
node_id?: string[]
|
||||
nodes?: NodeIds
|
||||
parent_task_id?: Id
|
||||
master_timeout?: Duration
|
||||
timeout?: Duration
|
||||
|
||||
Reference in New Issue
Block a user