Exemplo n.º 1
0
        protected override void ProcessRecord()
        {
            var request = new CatIndicesRequest(GetIndices(this.Index));
            var cat     = this.Client.CatIndices(request);

            this.CheckResponse(cat);

            foreach (var index in cat.Records)
            {
                WriteObject(new Types.Index(index));
            }
        }
Exemplo n.º 2
0
        public ICatResponse <CatIndicesRecord> IndexList()
        {
            var request = new CatIndicesRequest();

            return(client.CatIndices(request));
        }