Cloud Logging Service, REST: Sink.get
Returns the specified sink.
To get the list of all available sinks, make a list request.
HTTP request
GET https://logging.api.cloud.yandex.net/logging/v1/sinks/{sinkId}
Path parameters
Parameter | Description |
---|---|
sinkId | Required. ID of the sink to return. To get a sink ID make a list request. The maximum string length in characters is 64. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"folderId": "string",
"cloudId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"serviceAccountId": "string",
// includes only one of the fields `yds`, `s3`
"yds": {
"streamName": "string"
},
"s3": {
"bucket": "string",
"prefix": "string"
},
// end of the list of possible fields
}
Field | Description |
---|---|
id | string Sink ID. |
folderId | string Sink folder ID. |
cloudId | string Sink cloud ID. |
createdAt | string (date-time) Sink creation time. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
name | string Sink name. |
description | string Sink description. |
labels | object Sink labels. |
serviceAccountId | string Logs will be written to the sink on behalf of this service account |
yds | object Yandex data stream includes only one of the fields yds , s3 |
yds. streamName |
string Fully qualified name of data stream The maximum string length in characters is 512. |
s3 | object Object storage includes only one of the fields yds , s3 |
s3. bucket |
string Object storage bucket Value must match the regular expression |
s3. prefix |
string Prefix to use for saved log object names The maximum string length in characters is 1024. |