listConnectors
inline suspend fun Inspector2Client.listConnectors(crossinline block: ListConnectorsRequest.Builder.() -> Unit): ListConnectorsResponse
Lists connectors in your account. Results are paginated. Use the nextToken parameter to retrieve the next page of results.
Samples
// List all Azure customer managed connectors
val resp = inspector2Client.listConnectors {
maxResults = 10
filterCriteria = ConnectorFilterCriteria {
provider = listOf<ProviderFilter>(
ProviderFilter {
comparison = ProviderComparison.fromValue("EQUALS")
value = ConnectorCloudProvider.fromValue("AZURE")
}
)
connectorType = listOf<ConnectorTypeFilter>(
ConnectorTypeFilter {
comparison = ConnectorTypeComparison.fromValue("EQUALS")
value = ConnectorType.fromValue("CUSTOMER_MANAGED")
}
)
}
}Content copied to clipboard