- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Manage your Datadog Fastly integration accounts and services directly through the Datadog API. See the Fastly integration page for more information.
GET https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accountshttps://api.datadoghq.eu/api/v2/integrations/fastly/accountshttps://api.ddog-gov.com/api/v2/integrations/fastly/accountshttps://api.datadoghq.com/api/v2/integrations/fastly/accountshttps://api.us3.datadoghq.com/api/v2/integrations/fastly/accountshttps://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts
List Fastly accounts.
This endpoint requires the integrations_read
permission.
OK
The expected response schema when getting Fastly accounts.
항목
유형
설명
data
[object]
The JSON:API data schema.
attributes [required]
object
Attributes object of a Fastly account.
name [required]
string
The name of the Fastly account.
services
[object]
A list of services belonging to the parent account.
id [required]
string
The ID of the Fastly service
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly account, a hash of the account name.
type [required]
enum
The JSON:API type for this API. Should always be fastly-accounts
.
Allowed enum values: fastly-accounts
default: fastly-accounts
{
"data": [
{
"attributes": {
"name": "test-name",
"services": [
{
"id": "6abc7de6893AbcDe9fghIj",
"tags": [
"myTag",
"myTag2:myValue"
]
}
]
},
"id": "abc123",
"type": "fastly-accounts"
}
]
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* List Fastly accounts returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
apiInstance
.listFastlyAccounts()
.then((data: v2.FastlyAccountsResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
POST https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accountshttps://api.datadoghq.eu/api/v2/integrations/fastly/accountshttps://api.ddog-gov.com/api/v2/integrations/fastly/accountshttps://api.datadoghq.com/api/v2/integrations/fastly/accountshttps://api.us3.datadoghq.com/api/v2/integrations/fastly/accountshttps://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts
Create a Fastly account.
This endpoint requires the manage_integrations
permission.
항목
유형
설명
data [required]
object
Data object for creating a Fastly account.
attributes [required]
object
Attributes object for creating a Fastly account.
api_key [required]
string
The API key for the Fastly account.
name [required]
string
The name of the Fastly account.
services
[object]
A list of services belonging to the parent account.
id [required]
string
The ID of the Fastly service
tags
[string]
A list of tags for the Fastly service.
type [required]
enum
The JSON:API type for this API. Should always be fastly-accounts
.
Allowed enum values: fastly-accounts
default: fastly-accounts
{
"data": {
"attributes": {
"api_key": "ExampleFastlyIntegration",
"name": "Example-Fastly-Integration",
"services": []
},
"type": "fastly-accounts"
}
}
CREATED
The expected response schema when getting a Fastly account.
항목
유형
설명
data
object
Data object of a Fastly account.
attributes [required]
object
Attributes object of a Fastly account.
name [required]
string
The name of the Fastly account.
services
[object]
A list of services belonging to the parent account.
id [required]
string
The ID of the Fastly service
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly account, a hash of the account name.
type [required]
enum
The JSON:API type for this API. Should always be fastly-accounts
.
Allowed enum values: fastly-accounts
default: fastly-accounts
{
"data": {
"attributes": {
"name": "test-name",
"services": [
{
"id": "6abc7de6893AbcDe9fghIj",
"tags": [
"myTag",
"myTag2:myValue"
]
}
]
},
"id": "abc123",
"type": "fastly-accounts"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Add Fastly account returns "CREATED" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
const params: v2.FastlyIntegrationApiCreateFastlyAccountRequest = {
body: {
data: {
attributes: {
apiKey: "ExampleFastlyIntegration",
name: "Example-Fastly-Integration",
services: [],
},
type: "fastly-accounts",
},
},
};
apiInstance
.createFastlyAccount(params)
.then((data: v2.FastlyAccountResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
GET https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}https://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}https://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}
Get a Fastly account.
This endpoint requires the integrations_read
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
OK
The expected response schema when getting a Fastly account.
항목
유형
설명
data
object
Data object of a Fastly account.
attributes [required]
object
Attributes object of a Fastly account.
name [required]
string
The name of the Fastly account.
services
[object]
A list of services belonging to the parent account.
id [required]
string
The ID of the Fastly service
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly account, a hash of the account name.
type [required]
enum
The JSON:API type for this API. Should always be fastly-accounts
.
Allowed enum values: fastly-accounts
default: fastly-accounts
{
"data": {
"attributes": {
"name": "test-name",
"services": [
{
"id": "6abc7de6893AbcDe9fghIj",
"tags": [
"myTag",
"myTag2:myValue"
]
}
]
},
"id": "abc123",
"type": "fastly-accounts"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Get Fastly account returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
// there is a valid "fastly_account" in the system
const FASTLY_ACCOUNT_DATA_ID = process.env.FASTLY_ACCOUNT_DATA_ID as string;
const params: v2.FastlyIntegrationApiGetFastlyAccountRequest = {
accountId: FASTLY_ACCOUNT_DATA_ID,
};
apiInstance
.getFastlyAccount(params)
.then((data: v2.FastlyAccountResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
PATCH https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}https://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}https://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}
Update a Fastly account.
This endpoint requires the manage_integrations
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
항목
유형
설명
data [required]
object
Data object for updating a Fastly account.
attributes
object
Attributes object for updating a Fastly account.
api_key
string
The API key of the Fastly account.
name
string
The name of the Fastly account.
type
enum
The JSON:API type for this API. Should always be fastly-accounts
.
Allowed enum values: fastly-accounts
default: fastly-accounts
{
"data": {
"attributes": {
"api_key": "update-secret"
},
"type": "fastly-accounts"
}
}
OK
The expected response schema when getting a Fastly account.
항목
유형
설명
data
object
Data object of a Fastly account.
attributes [required]
object
Attributes object of a Fastly account.
name [required]
string
The name of the Fastly account.
services
[object]
A list of services belonging to the parent account.
id [required]
string
The ID of the Fastly service
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly account, a hash of the account name.
type [required]
enum
The JSON:API type for this API. Should always be fastly-accounts
.
Allowed enum values: fastly-accounts
default: fastly-accounts
{
"data": {
"attributes": {
"name": "test-name",
"services": [
{
"id": "6abc7de6893AbcDe9fghIj",
"tags": [
"myTag",
"myTag2:myValue"
]
}
]
},
"id": "abc123",
"type": "fastly-accounts"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Update Fastly account returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
// there is a valid "fastly_account" in the system
const FASTLY_ACCOUNT_DATA_ID = process.env.FASTLY_ACCOUNT_DATA_ID as string;
const params: v2.FastlyIntegrationApiUpdateFastlyAccountRequest = {
body: {
data: {
attributes: {
apiKey: "update-secret",
},
type: "fastly-accounts",
},
},
accountId: FASTLY_ACCOUNT_DATA_ID,
};
apiInstance
.updateFastlyAccount(params)
.then((data: v2.FastlyAccountResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
DELETE https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}https://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}https://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}https://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}
Delete a Fastly account.
This endpoint requires the manage_integrations
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
OK
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Delete Fastly account returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
const params: v2.FastlyIntegrationApiDeleteFastlyAccountRequest = {
accountId: "account_id",
};
apiInstance
.deleteFastlyAccount(params)
.then((data: any) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
GET https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services
List Fastly services for an account.
This endpoint requires the integrations_read
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
OK
The expected response schema when getting Fastly services.
항목
유형
설명
data
[object]
The JSON:API data schema.
attributes
object
Attributes object for Fastly service requests.
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly service.
type [required]
enum
The JSON:API type for this API. Should always be fastly-services
.
Allowed enum values: fastly-services
default: fastly-services
{
"data": [
{
"attributes": {
"tags": [
"myTag",
"myTag2:myValue"
]
},
"id": "abc123",
"type": "fastly-services"
}
]
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* List Fastly services returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
const params: v2.FastlyIntegrationApiListFastlyServicesRequest = {
accountId: "account_id",
};
apiInstance
.listFastlyServices(params)
.then((data: v2.FastlyServicesResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
POST https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/serviceshttps://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services
Create a Fastly service for an account.
This endpoint requires the manage_integrations
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
항목
유형
설명
data [required]
object
Data object for Fastly service requests.
attributes
object
Attributes object for Fastly service requests.
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly service.
type [required]
enum
The JSON:API type for this API. Should always be fastly-services
.
Allowed enum values: fastly-services
default: fastly-services
{
"data": {
"attributes": {
"tags": [
"myTag",
"myTag2:myValue"
]
},
"id": "abc123",
"type": "fastly-services"
}
}
CREATED
The expected response schema when getting a Fastly service.
항목
유형
설명
data
object
Data object for Fastly service requests.
attributes
object
Attributes object for Fastly service requests.
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly service.
type [required]
enum
The JSON:API type for this API. Should always be fastly-services
.
Allowed enum values: fastly-services
default: fastly-services
{
"data": {
"attributes": {
"tags": [
"myTag",
"myTag2:myValue"
]
},
"id": "abc123",
"type": "fastly-services"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Add Fastly service returns "CREATED" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
const params: v2.FastlyIntegrationApiCreateFastlyServiceRequest = {
body: {
data: {
attributes: {
tags: ["myTag", "myTag2:myValue"],
},
id: "abc123",
type: "fastly-services",
},
},
accountId: "account_id",
};
apiInstance
.createFastlyService(params)
.then((data: v2.FastlyServiceResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
GET https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}
Get a Fastly service for an account.
This endpoint requires the integrations_read
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
service_id [required]
string
Fastly Service ID.
OK
The expected response schema when getting a Fastly service.
항목
유형
설명
data
object
Data object for Fastly service requests.
attributes
object
Attributes object for Fastly service requests.
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly service.
type [required]
enum
The JSON:API type for this API. Should always be fastly-services
.
Allowed enum values: fastly-services
default: fastly-services
{
"data": {
"attributes": {
"tags": [
"myTag",
"myTag2:myValue"
]
},
"id": "abc123",
"type": "fastly-services"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Get Fastly service returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
const params: v2.FastlyIntegrationApiGetFastlyServiceRequest = {
accountId: "account_id",
serviceId: "service_id",
};
apiInstance
.getFastlyService(params)
.then((data: v2.FastlyServiceResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
PATCH https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}
Update a Fastly service for an account.
This endpoint requires the manage_integrations
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
service_id [required]
string
Fastly Service ID.
항목
유형
설명
data [required]
object
Data object for Fastly service requests.
attributes
object
Attributes object for Fastly service requests.
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly service.
type [required]
enum
The JSON:API type for this API. Should always be fastly-services
.
Allowed enum values: fastly-services
default: fastly-services
{
"data": {
"attributes": {
"tags": [
"myTag",
"myTag2:myValue"
]
},
"id": "abc123",
"type": "fastly-services"
}
}
OK
The expected response schema when getting a Fastly service.
항목
유형
설명
data
object
Data object for Fastly service requests.
attributes
object
Attributes object for Fastly service requests.
tags
[string]
A list of tags for the Fastly service.
id [required]
string
The ID of the Fastly service.
type [required]
enum
The JSON:API type for this API. Should always be fastly-services
.
Allowed enum values: fastly-services
default: fastly-services
{
"data": {
"attributes": {
"tags": [
"myTag",
"myTag2:myValue"
]
},
"id": "abc123",
"type": "fastly-services"
}
}
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Update Fastly service returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
const params: v2.FastlyIntegrationApiUpdateFastlyServiceRequest = {
body: {
data: {
attributes: {
tags: ["myTag", "myTag2:myValue"],
},
id: "abc123",
type: "fastly-services",
},
},
accountId: "account_id",
serviceId: "service_id",
};
apiInstance
.updateFastlyService(params)
.then((data: v2.FastlyServiceResponse) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"
DELETE https://api.ap1.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.datadoghq.eu/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.ddog-gov.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.us3.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}https://api.us5.datadoghq.com/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}
Delete a Fastly service for an account.
This endpoint requires the manage_integrations
permission.
이름
유형
설명
account_id [required]
string
Fastly Account id.
service_id [required]
string
Fastly Service ID.
OK
Bad Request
API error response.
{
"errors": [
"Bad Request"
]
}
Forbidden
API error response.
{
"errors": [
"Bad Request"
]
}
Not Found
API error response.
{
"errors": [
"Bad Request"
]
}
Too many requests
API error response.
{
"errors": [
"Bad Request"
]
}
/**
* Delete Fastly service returns "OK" response
*/
import { client, v2 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v2.FastlyIntegrationApi(configuration);
const params: v2.FastlyIntegrationApiDeleteFastlyServiceRequest = {
accountId: "account_id",
serviceId: "service_id",
};
apiInstance
.deleteFastlyService(params)
.then((data: any) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
First install the library and its dependencies and then save the example to example.ts
and run following commands:
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" tsc "example.ts"