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/v1.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 a composite 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(collection_group_id: Optional[str] = None,
              database_id: Optional[str] = None,
              index_id: Optional[str] = None,
              project: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetIndexResult
def get_index_output(collection_group_id: Optional[pulumi.Input[str]] = None,
              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/v1:getIndex
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Collection
Group stringId  - Database
Id string - Index
Id string - Project string
 
- Collection
Group stringId  - Database
Id string - Index
Id string - Project string
 
- collection
Group StringId  - database
Id String - index
Id String - project String
 
- collection
Group stringId  - database
Id string - index
Id string - project string
 
- collection_
group_ strid  - database_
id str - index_
id str - project str
 
- collection
Group StringId  - database
Id String - index
Id String - project String
 
getIndex Result
The following output properties are available:
- Api
Scope string - The API scope supported by this index.
 - Fields
List<Pulumi.
Google Native. Firestore. V1. Outputs. Google Firestore Admin V1Index Field Response>  - The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path 
__name__. If, on creation,__name__was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the__name__will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. - Name string
 - A server defined name for this index. The form of this name for composite indexes will be: 
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}For single field indexes, this field will be empty. - Query
Scope string - Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.
 - State string
 - The serving state of the index.
 
- Api
Scope string - The API scope supported by this index.
 - Fields
[]Google
Firestore Admin V1Index Field Response  - The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path 
__name__. If, on creation,__name__was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the__name__will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. - Name string
 - A server defined name for this index. The form of this name for composite indexes will be: 
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}For single field indexes, this field will be empty. - Query
Scope string - Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.
 - State string
 - The serving state of the index.
 
- api
Scope String - The API scope supported by this index.
 - fields
List<Google
Firestore Admin V1Index Field Response>  - The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path 
__name__. If, on creation,__name__was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the__name__will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. - name String
 - A server defined name for this index. The form of this name for composite indexes will be: 
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}For single field indexes, this field will be empty. - query
Scope String - Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.
 - state String
 - The serving state of the index.
 
- api
Scope string - The API scope supported by this index.
 - fields
Google
Firestore Admin V1Index Field Response[]  - The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path 
__name__. If, on creation,__name__was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the__name__will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. - name string
 - A server defined name for this index. The form of this name for composite indexes will be: 
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}For single field indexes, this field will be empty. - query
Scope string - Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.
 - state string
 - The serving state of the index.
 
- api_
scope str - The API scope supported by this index.
 - fields
Sequence[Google
Firestore Admin V1Index Field Response]  - The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path 
__name__. If, on creation,__name__was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the__name__will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. - name str
 - A server defined name for this index. The form of this name for composite indexes will be: 
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}For single field indexes, this field will be empty. - query_
scope str - Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.
 - state str
 - The serving state of the index.
 
- api
Scope String - The API scope supported by this index.
 - fields List<Property Map>
 - The fields supported by this index. For composite indexes, this requires a minimum of 2 and a maximum of 100 fields. The last field entry is always for the field path 
__name__. If, on creation,__name__was not specified as the last field, it will be added automatically with the same direction as that of the last field defined. If the final field in a composite index is not directional, the__name__will be ordered ASCENDING (unless explicitly specified). For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field. - name String
 - A server defined name for this index. The form of this name for composite indexes will be: 
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}For single field indexes, this field will be empty. - query
Scope String - Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id. Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.
 - state String
 - The serving state of the index.
 
Supporting Types
GoogleFirestoreAdminV1IndexFieldResponse     
- Array
Config string - Indicates that this field supports operations on 
array_values. - Field
Path string - Can be name. For single field indexes, this must match the name of the field or may be omitted.
 - Order string
 - Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
 - Vector
Config Pulumi.Google Native. Firestore. V1. Inputs. Google Firestore Admin V1Vector Config Response  - Indicates that this field supports nearest neighbors and distance operations on vector.
 
- Array
Config string - Indicates that this field supports operations on 
array_values. - Field
Path string - Can be name. For single field indexes, this must match the name of the field or may be omitted.
 - Order string
 - Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
 - Vector
Config GoogleFirestore Admin V1Vector Config Response  - Indicates that this field supports nearest neighbors and distance operations on vector.
 
- array
Config String - Indicates that this field supports operations on 
array_values. - field
Path String - Can be name. For single field indexes, this must match the name of the field or may be omitted.
 - order String
 - Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
 - vector
Config GoogleFirestore Admin V1Vector Config Response  - Indicates that this field supports nearest neighbors and distance operations on vector.
 
- array
Config string - Indicates that this field supports operations on 
array_values. - field
Path string - Can be name. For single field indexes, this must match the name of the field or may be omitted.
 - order string
 - Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
 - vector
Config GoogleFirestore Admin V1Vector Config Response  - Indicates that this field supports nearest neighbors and distance operations on vector.
 
- array_
config str - Indicates that this field supports operations on 
array_values. - field_
path str - Can be name. For single field indexes, this must match the name of the field or may be omitted.
 - order str
 - Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
 - vector_
config GoogleFirestore Admin V1Vector Config Response  - Indicates that this field supports nearest neighbors and distance operations on vector.
 
- array
Config String - Indicates that this field supports operations on 
array_values. - field
Path String - Can be name. For single field indexes, this must match the name of the field or may be omitted.
 - order String
 - Indicates that this field supports ordering by the specified order or comparing using =, !=, <, <=, >, >=.
 - vector
Config Property Map - Indicates that this field supports nearest neighbors and distance operations on vector.
 
GoogleFirestoreAdminV1VectorConfigResponse     
- Dimension int
 - The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
 - Flat
Pulumi.
Google Native. Firestore. V1. Inputs. Google Firestore Admin V1Flat Index Response  - Indicates the vector index is a flat index.
 
- Dimension int
 - The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
 - Flat
Google
Firestore Admin V1Flat Index Response  - Indicates the vector index is a flat index.
 
- dimension Integer
 - The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
 - flat
Google
Firestore Admin V1Flat Index Response  - Indicates the vector index is a flat index.
 
- dimension number
 - The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
 - flat
Google
Firestore Admin V1Flat Index Response  - Indicates the vector index is a flat index.
 
- dimension int
 - The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
 - flat
Google
Firestore Admin V1Flat Index Response  - Indicates the vector index is a flat index.
 
- dimension Number
 - The vector dimension this configuration applies to. The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.
 - flat Property Map
 - Indicates the vector index is a flat index.
 
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