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 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)
public static Output<GetIndexResult> getIndex(GetIndexArgs args, InvokeOptions options)
fn::invoke:
function: google-native:firestore/v1beta2: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:
- Fields
List<Pulumi.
Google Native. Firestore. V1Beta2. Outputs. Google Firestore Admin V1beta2Index Field Response> - The fields supported by this index. For composite indexes, this is always 2 or more 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.
- Fields
[]Google
Firestore Admin V1beta2Index Field Response - The fields supported by this index. For composite indexes, this is always 2 or more 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.
- fields
List<Google
Firestore Admin V1beta2Index Field Response> - The fields supported by this index. For composite indexes, this is always 2 or more 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.
- fields
Google
Firestore Admin V1beta2Index Field Response[] - The fields supported by this index. For composite indexes, this is always 2 or more 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.
- fields
Sequence[Google
Firestore Admin V1beta2Index Field Response] - The fields supported by this index. For composite indexes, this is always 2 or more 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.
- fields List<Property Map>
- The fields supported by this index. For composite indexes, this is always 2 or more 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
GoogleFirestoreAdminV1beta2IndexFieldResponse
- 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 =, <, <=, >, >=.
- 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 =, <, <=, >, >=.
- 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 =, <, <=, >, >=.
- 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 =, <, <=, >, >=.
- 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 =, <, <=, >, >=.
- 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 =, <, <=, >, >=.
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
