Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.ots.getSecondaryIndexes
Explore with Pulumi AI
This data source provides the ots secondary index of the current Alibaba Cloud user.
For information about OTS secondary index and how to use it, see Secondary index overview.
NOTE: Available in v1.187.0+.
Example Usage
data "alicloud_ots_secondary_indexes" "secondary_index_ds" {
instance_name = "sample-instance"
table_name = "sample-table"
name_regex = "sample-secondary-index"
output_file = "secondary-indexs.txt"
}
output "first_secondary_index_id" {
value = "${data.alicloud_ots_secondary_indexes.secondary_index_ds.indexs.0.id}"
}
Using getSecondaryIndexes
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSecondaryIndexes(args: GetSecondaryIndexesArgs, opts?: InvokeOptions): Promise<GetSecondaryIndexesResult>
function getSecondaryIndexesOutput(args: GetSecondaryIndexesOutputArgs, opts?: InvokeOptions): Output<GetSecondaryIndexesResult>
def get_secondary_indexes(ids: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
table_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecondaryIndexesResult
def get_secondary_indexes_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
table_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecondaryIndexesResult]
func GetSecondaryIndexes(ctx *Context, args *GetSecondaryIndexesArgs, opts ...InvokeOption) (*GetSecondaryIndexesResult, error)
func GetSecondaryIndexesOutput(ctx *Context, args *GetSecondaryIndexesOutputArgs, opts ...InvokeOption) GetSecondaryIndexesResultOutput
> Note: This function is named GetSecondaryIndexes
in the Go SDK.
public static class GetSecondaryIndexes
{
public static Task<GetSecondaryIndexesResult> InvokeAsync(GetSecondaryIndexesArgs args, InvokeOptions? opts = null)
public static Output<GetSecondaryIndexesResult> Invoke(GetSecondaryIndexesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecondaryIndexesResult> getSecondaryIndexes(GetSecondaryIndexesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ots/getSecondaryIndexes:getSecondaryIndexes
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Name string - The name of OTS instance.
- Table
Name string - The name of OTS table.
- Ids List<string>
- A list of secondary index IDs.
- Name
Regex string - A regex string to filter results by secondary index name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Instance
Name string - The name of OTS instance.
- Table
Name string - The name of OTS table.
- Ids []string
- A list of secondary index IDs.
- Name
Regex string - A regex string to filter results by secondary index name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- instance
Name String - The name of OTS instance.
- table
Name String - The name of OTS table.
- ids List<String>
- A list of secondary index IDs.
- name
Regex String - A regex string to filter results by secondary index name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- instance
Name string - The name of OTS instance.
- table
Name string - The name of OTS table.
- ids string[]
- A list of secondary index IDs.
- name
Regex string - A regex string to filter results by secondary index name.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- instance_
name str - The name of OTS instance.
- table_
name str - The name of OTS table.
- ids Sequence[str]
- A list of secondary index IDs.
- name_
regex str - A regex string to filter results by secondary index name.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- instance
Name String - The name of OTS instance.
- table
Name String - The name of OTS table.
- ids List<String>
- A list of secondary index IDs.
- name
Regex String - A regex string to filter results by secondary index name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getSecondaryIndexes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of secondary index IDs.
- Indexes
List<Pulumi.
Ali Cloud. Ots. Outputs. Get Secondary Indexes Index> - A list of indexes. Each element contains the following attributes:
- Instance
Name string - The OTS instance name.
- Names List<string>
- A list of secondary index names.
- Table
Name string - The table name of the OTS which could not be changed.
- Name
Regex string - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of secondary index IDs.
- Indexes
[]Get
Secondary Indexes Index - A list of indexes. Each element contains the following attributes:
- Instance
Name string - The OTS instance name.
- Names []string
- A list of secondary index names.
- Table
Name string - The table name of the OTS which could not be changed.
- Name
Regex string - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of secondary index IDs.
- indexes
List<Get
Secondary Indexes Index> - A list of indexes. Each element contains the following attributes:
- instance
Name String - The OTS instance name.
- names List<String>
- A list of secondary index names.
- table
Name String - The table name of the OTS which could not be changed.
- name
Regex String - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of secondary index IDs.
- indexes
Get
Secondary Indexes Index[] - A list of indexes. Each element contains the following attributes:
- instance
Name string - The OTS instance name.
- names string[]
- A list of secondary index names.
- table
Name string - The table name of the OTS which could not be changed.
- name
Regex string - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of secondary index IDs.
- indexes
Sequence[Get
Secondary Indexes Index] - A list of indexes. Each element contains the following attributes:
- instance_
name str - The OTS instance name.
- names Sequence[str]
- A list of secondary index names.
- table_
name str - The table name of the OTS which could not be changed.
- name_
regex str - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of secondary index IDs.
- indexes List<Property Map>
- A list of indexes. Each element contains the following attributes:
- instance
Name String - The OTS instance name.
- names List<String>
- A list of secondary index names.
- table
Name String - The table name of the OTS which could not be changed.
- name
Regex String - output
File String
Supporting Types
GetSecondaryIndexesIndex
- Defined
Columns List<string> - A list of defined column for index, referenced from Table's primary keys or predefined columns.
- Id string
- The resource ID. The value is
<instance_name>:<table_name>:<indexName>:<indexType>
. - Index
Name string - The index name of the OTS Table which could not be changed.
- Index
Type string - The index type of the OTS Table which could not be changed.
- Instance
Name string - The name of OTS instance.
- Primary
Keys List<string> - A list of primary keys for index, referenced from Table's primary keys or predefined columns.
- Table
Name string - The name of OTS table.
- Defined
Columns []string - A list of defined column for index, referenced from Table's primary keys or predefined columns.
- Id string
- The resource ID. The value is
<instance_name>:<table_name>:<indexName>:<indexType>
. - Index
Name string - The index name of the OTS Table which could not be changed.
- Index
Type string - The index type of the OTS Table which could not be changed.
- Instance
Name string - The name of OTS instance.
- Primary
Keys []string - A list of primary keys for index, referenced from Table's primary keys or predefined columns.
- Table
Name string - The name of OTS table.
- defined
Columns List<String> - A list of defined column for index, referenced from Table's primary keys or predefined columns.
- id String
- The resource ID. The value is
<instance_name>:<table_name>:<indexName>:<indexType>
. - index
Name String - The index name of the OTS Table which could not be changed.
- index
Type String - The index type of the OTS Table which could not be changed.
- instance
Name String - The name of OTS instance.
- primary
Keys List<String> - A list of primary keys for index, referenced from Table's primary keys or predefined columns.
- table
Name String - The name of OTS table.
- defined
Columns string[] - A list of defined column for index, referenced from Table's primary keys or predefined columns.
- id string
- The resource ID. The value is
<instance_name>:<table_name>:<indexName>:<indexType>
. - index
Name string - The index name of the OTS Table which could not be changed.
- index
Type string - The index type of the OTS Table which could not be changed.
- instance
Name string - The name of OTS instance.
- primary
Keys string[] - A list of primary keys for index, referenced from Table's primary keys or predefined columns.
- table
Name string - The name of OTS table.
- defined_
columns Sequence[str] - A list of defined column for index, referenced from Table's primary keys or predefined columns.
- id str
- The resource ID. The value is
<instance_name>:<table_name>:<indexName>:<indexType>
. - index_
name str - The index name of the OTS Table which could not be changed.
- index_
type str - The index type of the OTS Table which could not be changed.
- instance_
name str - The name of OTS instance.
- primary_
keys Sequence[str] - A list of primary keys for index, referenced from Table's primary keys or predefined columns.
- table_
name str - The name of OTS table.
- defined
Columns List<String> - A list of defined column for index, referenced from Table's primary keys or predefined columns.
- id String
- The resource ID. The value is
<instance_name>:<table_name>:<indexName>:<indexType>
. - index
Name String - The index name of the OTS Table which could not be changed.
- index
Type String - The index type of the OTS Table which could not be changed.
- instance
Name String - The name of OTS instance.
- primary
Keys List<String> - A list of primary keys for index, referenced from Table's primary keys or predefined columns.
- table
Name String - The name of OTS table.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.