- 필수 기능
- 시작하기
- 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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyAccountsResponse;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
try {
FastlyAccountsResponse result = apiInstance.listFastlyAccounts();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#listFastlyAccounts");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyAccountCreateRequest;
import com.datadog.api.client.v2.model.FastlyAccountCreateRequestAttributes;
import com.datadog.api.client.v2.model.FastlyAccountCreateRequestData;
import com.datadog.api.client.v2.model.FastlyAccountResponse;
import com.datadog.api.client.v2.model.FastlyAccountType;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
FastlyAccountCreateRequest body =
new FastlyAccountCreateRequest()
.data(
new FastlyAccountCreateRequestData()
.attributes(
new FastlyAccountCreateRequestAttributes()
.apiKey("ExampleFastlyIntegration")
.name("Example-Fastly-Integration"))
.type(FastlyAccountType.FASTLY_ACCOUNTS));
try {
FastlyAccountResponse result = apiInstance.createFastlyAccount(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#createFastlyAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyAccountResponse;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
// there is a valid "fastly_account" in the system
String FASTLY_ACCOUNT_DATA_ID = System.getenv("FASTLY_ACCOUNT_DATA_ID");
try {
FastlyAccountResponse result = apiInstance.getFastlyAccount(FASTLY_ACCOUNT_DATA_ID);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#getFastlyAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyAccountResponse;
import com.datadog.api.client.v2.model.FastlyAccountType;
import com.datadog.api.client.v2.model.FastlyAccountUpdateRequest;
import com.datadog.api.client.v2.model.FastlyAccountUpdateRequestAttributes;
import com.datadog.api.client.v2.model.FastlyAccountUpdateRequestData;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
// there is a valid "fastly_account" in the system
String FASTLY_ACCOUNT_DATA_ID = System.getenv("FASTLY_ACCOUNT_DATA_ID");
FastlyAccountUpdateRequest body =
new FastlyAccountUpdateRequest()
.data(
new FastlyAccountUpdateRequestData()
.attributes(new FastlyAccountUpdateRequestAttributes().apiKey("update-secret"))
.type(FastlyAccountType.FASTLY_ACCOUNTS));
try {
FastlyAccountResponse result = apiInstance.updateFastlyAccount(FASTLY_ACCOUNT_DATA_ID, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#updateFastlyAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
try {
apiInstance.deleteFastlyAccount("account_id");
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#deleteFastlyAccount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyServicesResponse;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
try {
FastlyServicesResponse result = apiInstance.listFastlyServices("account_id");
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#listFastlyServices");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyServiceAttributes;
import com.datadog.api.client.v2.model.FastlyServiceData;
import com.datadog.api.client.v2.model.FastlyServiceRequest;
import com.datadog.api.client.v2.model.FastlyServiceResponse;
import com.datadog.api.client.v2.model.FastlyServiceType;
import java.util.Arrays;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
FastlyServiceRequest body =
new FastlyServiceRequest()
.data(
new FastlyServiceData()
.attributes(
new FastlyServiceAttributes()
.tags(Arrays.asList("myTag", "myTag2:myValue")))
.id("abc123")
.type(FastlyServiceType.FASTLY_SERVICES));
try {
FastlyServiceResponse result = apiInstance.createFastlyService("account_id", body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#createFastlyService");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyServiceResponse;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
try {
FastlyServiceResponse result = apiInstance.getFastlyService("account_id", "service_id");
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#getFastlyService");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
import com.datadog.api.client.v2.model.FastlyServiceAttributes;
import com.datadog.api.client.v2.model.FastlyServiceData;
import com.datadog.api.client.v2.model.FastlyServiceRequest;
import com.datadog.api.client.v2.model.FastlyServiceResponse;
import com.datadog.api.client.v2.model.FastlyServiceType;
import java.util.Arrays;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
FastlyServiceRequest body =
new FastlyServiceRequest()
.data(
new FastlyServiceData()
.attributes(
new FastlyServiceAttributes()
.tags(Arrays.asList("myTag", "myTag2:myValue")))
.id("abc123")
.type(FastlyServiceType.FASTLY_SERVICES));
try {
FastlyServiceResponse result =
apiInstance.updateFastlyService("account_id", "service_id", body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#updateFastlyService");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"
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 com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.FastlyIntegrationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
FastlyIntegrationApi apiInstance = new FastlyIntegrationApi(defaultClient);
try {
apiInstance.deleteFastlyService("account_id", "service_id");
} catch (ApiException e) {
System.err.println("Exception when calling FastlyIntegrationApi#deleteFastlyService");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
First install the library and its dependencies and then save the example to Example.java
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>" java "Example.java"