The v2 interface for creating and configuring index is still in progress. Please refer to the v1 docs.