Python 2.7 telah mencapai akhir dukungan
dan akan dihentikan penggunaannya
pada 31 Januari 2026. Setelah penghentian penggunaan, Anda tidak akan dapat men-deploy aplikasi Python 2.7, meskipun organisasi Anda sebelumnya menggunakan kebijakan organisasi untuk mengaktifkan kembali deployment runtime lama. Aplikasi Python 2.7 yang ada akan terus berjalan dan menerima traffic setelah
tanggal penghentiannya. Sebaiknya Anda bermigrasi ke versi Python terbaru yang didukung.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-11 UTC."],[[["\u003cp\u003eThis API function \u003ccode\u003eget_indexes\u003c/code\u003e is available for first-generation runtimes and can be used when migrating to second-generation runtimes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget_indexes\u003c/code\u003e function retrieves a list of indexes within a specified namespace, with options to set an offset, limit, starting index, and prefix.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eget_indexes_async()\u003c/code\u003e method offers asynchronous retrieval of the index list, returning a future that requires \u003ccode\u003eget_result()\u003c/code\u003e to be called to obtain the actual result.\u003c/p\u003e\n"],["\u003cp\u003eParameters for \u003ccode\u003eget_indexes\u003c/code\u003e include options for namespace, offset, limit, starting index name, prefix, fetching schema information, and setting a deadline for the RPC call.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns a \u003ccode\u003eGetResponse\u003c/code\u003e object which contains the list of indexes and their schemas when \u003ccode\u003efetch_schema\u003c/code\u003e is set to true, and it can raise a \u003ccode\u003eTypeError\u003c/code\u003e or \u003ccode\u003eInternalError\u003c/code\u003e in case of issues.\u003c/p\u003e\n"]]],[],null,["# Functions\n\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n| python3\n|\n| /services/access). If you are updating to the App Engine Python 3 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/python-differences) to learn about your migration options for legacy bundled services.\n\nThe `google.appengine.api.search` package includes the following function:\n\n\nget_indexes(namespace='', offset=None, limit=None, start_index_name=None, include_start_index=True, index_name_prefix=None, fetch_schema=False, deadline=None)\n\n\nReturn list of available indexes.\n\n\n| **Note:** There is also a corresponding asynchronous method, `get_indexes_async()`, which is identical except it returns a future. To get the actual result, call `get_result()` on the returned value; that call will block.\n\n\n:\n\n Arguments\n\n namespace\n\n : Namespace of indexes to return. If not set, the current namespace is used.\n\n offset\n\n : Offset of first index to return.\n\n limit\n\n : Number of indexes to return.\n\n start_index_name\n\n : Name of first index to return.\n\n include_start_index\n\n : If `true`, include index specified by `start_index_name` in results.\n\n index_name_prefix\n\n : Prefix for selecting indexes to return.\n\n fetch_schema\n\n : Specifies whether to fetch the schema for each index.\n\n deadline\n\n : Deadline for RPC call in seconds.\n\n Result value\n\n : [GetResponse](/appengine/docs/legacy/standard/python/search/getresponseclass) object representing a list of indexes. If fetch_schema==true, each index will contain its schema.\n\n Exceptions\n\n TypeError\n\n : Invalid argument passed.\n\n InternalError\n\n : Request failed on internal servers."]]