JavaScript
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const response = await client.v1.entityTypes.checkActiveEntities('id');
console.log(response.data);import os
from stigg import Stigg
client = Stigg(
api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted
)
response = client.v1.entity_types.check_active_entities(
id="id",
)
print(response.data)package main
import (
"context"
"fmt"
"github.com/stiggio/stigg-go"
"github.com/stiggio/stigg-go/option"
)
func main() {
client := stigg.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.V1.EntityTypes.CheckActiveEntities(
context.TODO(),
"id",
stigg.V1EntityTypeCheckActiveEntitiesParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package io.stigg.example;
import io.stigg.client.StiggClient;
import io.stigg.client.okhttp.StiggOkHttpClient;
import io.stigg.models.v1.entitytypes.EntityTypeCheckActiveEntitiesParams;
import io.stigg.models.v1.entitytypes.EntityTypeCheckActiveEntitiesResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
StiggClient client = StiggOkHttpClient.fromEnv();
EntityTypeCheckActiveEntitiesResponse response = client.v1().entityTypes().checkActiveEntities("id");
}
}require "stigg"
stigg = Stigg::Client.new(api_key: "My API Key")
response = stigg.v1.entity_types.check_active_entities("id")
puts(response)using System;
using Stigg.Client;
using Stigg.Client.Models.V1.EntityTypes;
StiggClient client = new();
EntityTypeCheckActiveEntitiesParams parameters = new() { ID = "id" };
var response = await client.V1.EntityTypes.CheckActiveEntities(parameters);
Console.WriteLine(response);stigg v1:entity-types check-active-entities \
--api-key 'My API Key' \
--id idcurl --request GET \
--url https://api.stigg.io/api/v1/entity-types/{id}/has-active-entities \
--header 'X-API-KEY: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stigg.io/api/v1/entity-types/{id}/has-active-entities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"hasActiveEntities": true
}
}{
"message": "<string>",
"code": "BadUserInput",
"reason": "<string>"
}{
"message": "<string>",
"code": "Unauthenticated"
}{
"message": "<string>",
"code": "IdentityForbidden"
}{
"message": "<string>",
"code": "RateLimitExceeded"
}Governance Entity Types
Check whether an entity type has active entities
Returns whether any active entity of this entity type exists, across every customer. An entity type can be archived only when this is false. An unknown entity type returns false.
GET
/
api
/
v1
/
entity-types
/
{id}
/
has-active-entities
JavaScript
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const response = await client.v1.entityTypes.checkActiveEntities('id');
console.log(response.data);import os
from stigg import Stigg
client = Stigg(
api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted
)
response = client.v1.entity_types.check_active_entities(
id="id",
)
print(response.data)package main
import (
"context"
"fmt"
"github.com/stiggio/stigg-go"
"github.com/stiggio/stigg-go/option"
)
func main() {
client := stigg.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.V1.EntityTypes.CheckActiveEntities(
context.TODO(),
"id",
stigg.V1EntityTypeCheckActiveEntitiesParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Data)
}
package io.stigg.example;
import io.stigg.client.StiggClient;
import io.stigg.client.okhttp.StiggOkHttpClient;
import io.stigg.models.v1.entitytypes.EntityTypeCheckActiveEntitiesParams;
import io.stigg.models.v1.entitytypes.EntityTypeCheckActiveEntitiesResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
StiggClient client = StiggOkHttpClient.fromEnv();
EntityTypeCheckActiveEntitiesResponse response = client.v1().entityTypes().checkActiveEntities("id");
}
}require "stigg"
stigg = Stigg::Client.new(api_key: "My API Key")
response = stigg.v1.entity_types.check_active_entities("id")
puts(response)using System;
using Stigg.Client;
using Stigg.Client.Models.V1.EntityTypes;
StiggClient client = new();
EntityTypeCheckActiveEntitiesParams parameters = new() { ID = "id" };
var response = await client.V1.EntityTypes.CheckActiveEntities(parameters);
Console.WriteLine(response);stigg v1:entity-types check-active-entities \
--api-key 'My API Key' \
--id idcurl --request GET \
--url https://api.stigg.io/api/v1/entity-types/{id}/has-active-entities \
--header 'X-API-KEY: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stigg.io/api/v1/entity-types/{id}/has-active-entities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"hasActiveEntities": true
}
}{
"message": "<string>",
"code": "BadUserInput",
"reason": "<string>"
}{
"message": "<string>",
"code": "Unauthenticated"
}{
"message": "<string>",
"code": "IdentityForbidden"
}{
"message": "<string>",
"code": "RateLimitExceeded"
}