---
title: "Validate And Verify Service Connector"
method: PUT
path: "/api/v1/service_connectors/{connector_id}/verify"
tags: ["service_connectors"]
---

# Validate And Verify Service Connector

`PUT /api/v1/service_connectors/{connector_id}/verify`

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.

## Path parameters

- `connector_id` string, uuid, required

## Query parameters

- `resource_type` string, nullable
- `resource_id` string, nullable
- `list_resources` boolean

## Response `200`

Successful Response

- ServiceConnectorResourcesModel — Service connector resources list. Lists the resource types and resource instances that a service connector can provide access to.
  - `id` string, uuid, nullable
  - `name` string, nullable
  - `connector_type` union, required
    - string
    - ServiceConnectorTypeModel — Service connector type specification. Describes the types of resources to which the service connector can be used to gain access and the authentication methods that are supported by the service connector. The connector type, resource types, resource IDs and authentication methods can all be used as search criteria to lookup and filter service connector instances that are compatible with the requirements of a consumer (e.g. a stack component).
      - `name` string, required
      - `connector_type` string, required
      - `description` string
      - `resource_types` ResourceTypeModel[], required
        - `name` string, required
        - `resource_type` string, required
        - `description` string
        - `auth_methods` string[], required
        - `supports_instances` boolean
        - `logo_url` string, nullable
        - `emoji` string, nullable
      - `auth_methods` AuthenticationMethodModel[], required
        - `name` string, required
        - `auth_method` string, required
        - `description` string
        - `config_schema` object
        - `min_expiration_seconds` integer, nullable
        - `max_expiration_seconds` integer, nullable
        - `default_expiration_seconds` integer, nullable
      - `supports_auto_configuration` boolean
      - `logo_url` string, nullable
      - `emoji` string, nullable
      - `docs_url` string, nullable
      - `sdk_docs_url` string, nullable
      - `local` boolean
      - `remote` boolean
  - `resources` ServiceConnectorTypedResourcesModel[]
    - `resource_type` string, required
    - `resource_ids` string[], nullable
    - `error` string, nullable
  - `error` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/zenml-io/apis/zenml-2.md) · [All operations](https://skmtc.net/zenml-io/apis/zenml-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenml-io/zenml-2/versions/febb01b8bce3/schema)
