Skip to content

Commit 93a14aa

Browse files
committed
Add specification for security.update_settings
1 parent eac5ecf commit 93a14aa

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ security-api-saml-prepare-authentication,https://www.elastic.co/guide/en/elastic
658658
security-api-saml-sp-metadata,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-saml-sp-metadata.html
659659
security-api-ssl,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-ssl.html
660660
security-privileges,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-privileges.html
661+
security-api-get-settings,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-get-settings.html
661662
service-accounts,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/service-accounts.html
662663
set-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/set-processor.html
663664
shape,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/shape.html
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import { RequestBase } from '@_types/Base'
21+
import { Duration } from '@_types/Time'
22+
23+
/**
24+
* Get security index settings.
25+
* Get the user-configurable settings for the security internal index (`.security` and associated indices).
26+
* @rest_spec_name security.get_settings
27+
* @availability stack stability=stable visibility=public
28+
* @doc_id security-api-get-settings
29+
* @cluster_privileges read_security
30+
*/
31+
export interface Request extends RequestBase {
32+
query_parameters: {
33+
/**
34+
* Period to wait for a connection to the master node.
35+
* If no response is received before the timeout expires, the request fails and returns an error.
36+
*/
37+
master_timeout?: Duration
38+
}
39+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import { Actions } from '@security/put_privileges/types'
21+
import { Dictionary } from '@spec_utils/Dictionary'
22+
23+
export class Response {
24+
/** @codegen_name privileges */
25+
body: Dictionary<string, Dictionary<string, Actions>>
26+
}

0 commit comments

Comments
 (0)