- status - Beta: Get datasource status
Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice.
Tip: Refer to the Troubleshooting tutorial for more information.
package hello.world;
import com.glean.api_client.glean_api_client.Glean;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceStatusResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Glean sdk = Glean.builder()
.apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
.build();
PostApiIndexV1DebugDatasourceStatusResponse res = sdk.indexing().datasource().status()
.datasource("<value>")
.call();
if (res.debugDatasourceStatusResponse().isPresent()) {
System.out.println(res.debugDatasourceStatusResponse().get());
}
}
}
| Parameter |
Type |
Required |
Description |
| datasource |
String |
✔️ |
The datasource to get debug status for. |
PostApiIndexV1DebugDatasourceStatusResponse
| Error Type |
Status Code |
Content Type |
| models/errors/APIException |
4XX, 5XX |
*/* |