1. Packages
  2. Google Cloud Native
  3. API Docs
  4. datastore
  5. datastore/v1
  6. getIndex

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.datastore/v1.getIndex

Explore with Pulumi AI

google-native logo

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(index_id: Optional[str] = None,
                  project: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetIndexResult
    def get_index_output(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:datastore/v1:getIndex
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IndexId string
    Project string
    IndexId string
    Project string
    indexId String
    project String
    indexId string
    project string
    indexId String
    project String

    getIndex Result

    The following output properties are available:

    Ancestor string
    The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
    IndexId string
    The resource ID of the index.
    Kind string
    The entity kind to which this index applies.
    Project string
    Project ID.
    Properties List<Pulumi.GoogleNative.Datastore.V1.Outputs.GoogleDatastoreAdminV1IndexedPropertyResponse>
    An ordered sequence of property names and their index attributes. Requires: * A maximum of 100 properties.
    State string
    The state of the index.
    Ancestor string
    The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
    IndexId string
    The resource ID of the index.
    Kind string
    The entity kind to which this index applies.
    Project string
    Project ID.
    Properties []GoogleDatastoreAdminV1IndexedPropertyResponse
    An ordered sequence of property names and their index attributes. Requires: * A maximum of 100 properties.
    State string
    The state of the index.
    ancestor String
    The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
    indexId String
    The resource ID of the index.
    kind String
    The entity kind to which this index applies.
    project String
    Project ID.
    properties List<GoogleDatastoreAdminV1IndexedPropertyResponse>
    An ordered sequence of property names and their index attributes. Requires: * A maximum of 100 properties.
    state String
    The state of the index.
    ancestor string
    The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
    indexId string
    The resource ID of the index.
    kind string
    The entity kind to which this index applies.
    project string
    Project ID.
    properties GoogleDatastoreAdminV1IndexedPropertyResponse[]
    An ordered sequence of property names and their index attributes. Requires: * A maximum of 100 properties.
    state string
    The state of the index.
    ancestor str
    The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
    index_id str
    The resource ID of the index.
    kind str
    The entity kind to which this index applies.
    project str
    Project ID.
    properties Sequence[GoogleDatastoreAdminV1IndexedPropertyResponse]
    An ordered sequence of property names and their index attributes. Requires: * A maximum of 100 properties.
    state str
    The state of the index.
    ancestor String
    The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
    indexId String
    The resource ID of the index.
    kind String
    The entity kind to which this index applies.
    project String
    Project ID.
    properties List<Property Map>
    An ordered sequence of property names and their index attributes. Requires: * A maximum of 100 properties.
    state String
    The state of the index.

    Supporting Types

    GoogleDatastoreAdminV1IndexedPropertyResponse

    Direction string
    The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
    Name string
    The property name to index.
    Direction string
    The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
    Name string
    The property name to index.
    direction String
    The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
    name String
    The property name to index.
    direction string
    The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
    name string
    The property name to index.
    direction str
    The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
    name str
    The property name to index.
    direction String
    The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
    name String
    The property name to index.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    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