Verify

Validate And Verify Service Connector Config

post

Verifies if a service connector configuration has access to resources.

This requires the service connector implementation to be installed on the ZenML server, otherwise a 501 Not Implemented error will be returned.

Args: connector: The service connector configuration to verify. list_resources: If True, the list of all resources accessible through the service connector is returned.

Returns: The list of resources that the service connector configuration has access to.

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
list_resourcesbooleanOptionalDefault: true
Body

Request model for service connectors.

userany ofOptional
string · uuidOptional
or
nullOptional
namestring · max: 255Required
connector_typeany ofRequired
stringOptional
or
descriptionstringOptionalDefault: ""
auth_methodstring · max: 255Required
resource_typesstring[]Optional
resource_idany ofOptional
string · max: 255Optional
or
nullOptional
supports_instancesbooleanOptionalDefault: false
expires_atany ofOptional
string · date-timeOptional
or
nullOptional
expires_skew_toleranceany ofOptional
integerOptional
or
nullOptional
expiration_secondsany ofOptional
integerOptional
or
nullOptional
Responses
200

Successful Response

application/json
post
/api/v1/service_connectors/verify

Validate And Verify Service Connector

put

Verifies if a service connector instance has access to one or more resources.

This requires the service connector implementation to be installed on the ZenML server, otherwise a 501 Not Implemented error will be returned.

Args: connector_id: The ID of the service connector to verify. resource_type: The type of resource to verify access to. resource_id: The ID of the resource to verify access to. list_resources: If True, the list of all resources accessible through the service connector and matching the supplied resource type and ID are returned.

Returns: The list of resources that the service connector has access to, scoped to the supplied resource type and ID, if provided.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connector_idstring · uuidRequired
Query parameters
resource_typeany ofOptional
stringOptional
or
nullOptional
resource_idany ofOptional
stringOptional
or
nullOptional
list_resourcesbooleanOptionalDefault: true
Responses
200

Successful Response

application/json
put
/api/v1/service_connectors/{connector_id}/verify

Last updated

Was this helpful?