Search + K

Command Palette

Search for a command to run...

Sign In

Get target

GET /accounts/{account_id}/infrastructure/targets/{target_id}
Copy endpoint
https://api.cloudflare.com/client/v4

Parameters

path Path Parameters

Name Type
account_id required
type InfraAccountTag = string
target_id required
type InfraTargetId = string

Responses

200 application/json

Successfully retrieved the target

type InfraApiResponseSingle = interface InfraApiResponseCommon {
errors: InfraMessages
type InfraMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
messages: InfraMessages
type InfraMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
success: true;
}
& {}
& { result?: InfraTarget
interface InfraTarget {
created_at: string;
hostname: string;
id: InfraTargetId;
ip: InfraIPInfo;
modified_at: string;
}
; }

Client Errors

4XX application/json

Failed to retrieve the target

interface InfraApiResponseCommonFailure {
errors: InfraMessages
type InfraMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
messages: InfraMessages
type InfraMessages = {
code: number;
documentation_url?: string;
message: string;
source?: { pointer?: string; };
}
[]
;
result: null;
success: false;
}