Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.firestore/v1beta1.getIndex
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets an index.
Using getIndex
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 getIndex(args: GetIndexArgs, opts?: InvokeOptions): Promise<GetIndexResult>
function getIndexOutput(args: GetIndexOutputArgs, opts?: InvokeOptions): Output<GetIndexResult>
def get_index(database_id: Optional[str] = None,
index_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIndexResult
def get_index_output(database_id: Optional[pulumi.Input[str]] = None,
index_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIndexResult]
func LookupIndex(ctx *Context, args *LookupIndexArgs, opts ...InvokeOption) (*LookupIndexResult, error)
func LookupIndexOutput(ctx *Context, args *LookupIndexOutputArgs, opts ...InvokeOption) LookupIndexResultOutput
> Note: This function is named LookupIndex
in the Go SDK.
public static class GetIndex
{
public static Task<GetIndexResult> InvokeAsync(GetIndexArgs args, InvokeOptions? opts = null)
public static Output<GetIndexResult> Invoke(GetIndexInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIndexResult> getIndex(GetIndexArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:firestore/v1beta1:getIndex
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id string - Index
Id string - Project string
- Database
Id string - Index
Id string - Project string
- database
Id String - index
Id String - project String
- database
Id string - index
Id string - project string
- database_
id str - index_
id str - project str
- database
Id String - index
Id String - project String
getIndex Result
The following output properties are available:
- Collection
Id string - The collection ID to which this index applies. Required.
- Fields
List<Pulumi.
Google Native. Firestore. V1Beta1. Outputs. Google Firestore Admin V1beta1Index Field Response> - The fields to index.
- Name string
- The resource name of the index. Output only.
- State string
- The state of the index. Output only.
- Collection
Id string - The collection ID to which this index applies. Required.
- Fields
[]Google
Firestore Admin V1beta1Index Field Response - The fields to index.
- Name string
- The resource name of the index. Output only.
- State string
- The state of the index. Output only.
- collection
Id String - The collection ID to which this index applies. Required.
- fields
List<Google
Firestore Admin V1beta1Index Field Response> - The fields to index.
- name String
- The resource name of the index. Output only.
- state String
- The state of the index. Output only.
- collection
Id string - The collection ID to which this index applies. Required.
- fields
Google
Firestore Admin V1beta1Index Field Response[] - The fields to index.
- name string
- The resource name of the index. Output only.
- state string
- The state of the index. Output only.
- collection_
id str - The collection ID to which this index applies. Required.
- fields
Sequence[Google
Firestore Admin V1beta1Index Field Response] - The fields to index.
- name str
- The resource name of the index. Output only.
- state str
- The state of the index. Output only.
- collection
Id String - The collection ID to which this index applies. Required.
- fields List<Property Map>
- The fields to index.
- name String
- The resource name of the index. Output only.
- state String
- The state of the index. Output only.
Supporting Types
GoogleFirestoreAdminV1beta1IndexFieldResponse
- field_
path str - The path of the field. Must match the field path specification described by google.firestore.v1beta1.Document.fields. Special field path
__name__
may be used by itself or at the end of a path.__type__
may be used only at the end of path. - mode str
- The field's mode.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi