> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.fabricgateway.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.fabricgateway.ai/_mcp/server.

# List Plugin-Instances

GET https://control-plane.example.com/api/v1/{tenant}/plugin-instances

Reference: https://docs.fabricgateway.ai/reference/admin-api/plugin-instances/list-plugin-instances

## Authentication

- `fg-tenant-api-key` header (required) — API Key authentication via header

## Request

### Path parameters

- `tenant` (string, required)

### Query parameters

- `plugin_id` (string, optional)
- `rule_service` (string, optional)
- `subject_kind` (string, optional)
- `subject_name` (string, optional)

## Response

### 200

200- list of plugin instances

- `list of ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItems`

## Errors

### 401 Unauthorized Error

401- missing access token

- `error` (ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaError, optional)

### 500 Internal Server Error

Server Error

## Types

### ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItems

- `name` (string, optional)
- `plugin_id` (string, optional)
- `scope` (ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsScope, optional)
- `when` (ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsWhen, optional)
- `config` (ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsConfig, optional)
- `enabled` (boolean, optional)

### ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaError

- `code` (string, optional)
- `message` (string, optional)

### ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsScope

- `kind` (string, optional)
- `name` (string, optional)

### ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsWhen

### ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsConfig

- `rules` (list of ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsConfigRulesItems, optional)

### ApiV1TenantPluginInstancesGetResponsesContentApplicationJsonSchemaItemsConfigRulesItems

- `service` (string, optional)

## Examples

**Response**

```json
[
  {
    "name": "HARI-ACCESSS",
    "plugin_id": "access-control",
    "scope": {
      "kind": "consumer",
      "name": "1234567"
    },
    "when": {},
    "config": {
      "rules": [
        {
          "service": "atlassian"
        }
      ]
    },
    "enabled": true
  }
]
```

**SDK Code**

```python Plugin instances_listPluginInstances_example
import requests

url = "https://control-plane.example.com/api/v1/acme/plugin-instances"

querystring = {"plugin_id":"","rule_service":"","subject_kind":"","subject_name":""}

headers = {"fg-tenant-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Plugin instances_listPluginInstances_example
const url = 'https://control-plane.example.com/api/v1/acme/plugin-instances?plugin_id=&rule_service=&subject_kind=&subject_name=';
const options = {method: 'GET', headers: {'fg-tenant-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Plugin instances_listPluginInstances_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://control-plane.example.com/api/v1/acme/plugin-instances?plugin_id=&rule_service=&subject_kind=&subject_name="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("fg-tenant-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Plugin instances_listPluginInstances_example
require 'uri'
require 'net/http'

url = URI("https://control-plane.example.com/api/v1/acme/plugin-instances?plugin_id=&rule_service=&subject_kind=&subject_name=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["fg-tenant-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Plugin instances_listPluginInstances_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://control-plane.example.com/api/v1/acme/plugin-instances?plugin_id=&rule_service=&subject_kind=&subject_name=")
  .header("fg-tenant-api-key", "<apiKey>")
  .asString();
```

```php Plugin instances_listPluginInstances_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://control-plane.example.com/api/v1/acme/plugin-instances?plugin_id=&rule_service=&subject_kind=&subject_name=', [
  'headers' => [
    'fg-tenant-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Plugin instances_listPluginInstances_example
using RestSharp;

var client = new RestClient("https://control-plane.example.com/api/v1/acme/plugin-instances?plugin_id=&rule_service=&subject_kind=&subject_name=");
var request = new RestRequest(Method.GET);
request.AddHeader("fg-tenant-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Plugin instances_listPluginInstances_example
import Foundation

let headers = ["fg-tenant-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://control-plane.example.com/api/v1/acme/plugin-instances?plugin_id=&rule_service=&subject_kind=&subject_name=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```