Class GetIndexSettingsRequest
Request for GetSettings
https://opensearch.org/docs/latest/api-reference/index-apis/get-settings/
Inheritance
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class GetIndexSettingsRequest : PlainRequestBase<GetIndexSettingsRequestParameters>, IGetIndexSettingsRequest, IRequest<GetIndexSettingsRequestParameters>, IRequest
Constructors
| Edit this page View SourceGetIndexSettingsRequest()
/_settings
Declaration
public GetIndexSettingsRequest()
GetIndexSettingsRequest(Indices)
/{index}/_settings
Declaration
public GetIndexSettingsRequest(Indices index)
Parameters
Type | Name | Description |
---|---|---|
Indices | index | Optional, accepts null |
GetIndexSettingsRequest(Indices, Names)
/{index}/_settings/{name}
Declaration
public GetIndexSettingsRequest(Indices index, Names name)
Parameters
Type | Name | Description |
---|---|---|
Indices | index | Optional, accepts null |
Names | name | Optional, accepts null |
GetIndexSettingsRequest(Names)
/_settings/{name}
Declaration
public GetIndexSettingsRequest(Names name)
Parameters
Type | Name | Description |
---|---|---|
Names | name | Optional, accepts null |
Properties
| Edit this page View SourceAllowNoIndices
If false
, the request returns an error if any wildcard expression, index alias, or _all
value targets only missing or closed indexes.
This behavior applies even if the request targets other open indexes. For example, a request targeting foo*,bar*
returns an error if an
index starts with foo but no index starts with bar
.
Declaration
public bool? AllowNoIndices { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ClusterManagerTimeout
Operation timeout for connection to cluster-manager node.
Declaration
public Time ClusterManagerTimeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
Remarks
Supported by OpenSearch servers of version 2.0.0 or greater.
ExpandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard
expressions match hidden data streams. Supports comma-separated values, such as open,hidden
.
Declaration
public ExpandWildcards? ExpandWildcards { get; set; }
Property Value
Type | Description |
---|---|
ExpandWildcards? |
FlatSettings
If true
, returns settings in flat format.
Declaration
public bool? FlatSettings { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IgnoreUnavailable
If false
, the request returns an error if it targets a missing or closed index.
Declaration
public bool? IgnoreUnavailable { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IncludeDefaults
If true
, return all default settings in the response.
Declaration
public bool? IncludeDefaults { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Local
If true
, the request retrieves information from the local node only. If false
, information is retrieved from the cluster-manager node.
Declaration
public bool? Local { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MasterTimeout
Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
Declaration
[Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use `cluster_manager_timeout` instead.")]
public Time MasterTimeout { get; set; }
Property Value
Type | Description |
---|---|
Time |
Self
Declaration
protected IGetIndexSettingsRequest Self { get; }
Property Value
Type | Description |
---|---|
IGetIndexSettingsRequest |