Network Logging
Overview
SCP에서 제공하는 IaaS/PaaS 상품을 프로그램적으로 이용할 수 있도록 지원하는 응용 프로그램 인터페이스(Application Programming Interface, API)를 제공합니다.
본 가이드는 Network Logging 서비스에 대한 간략한 설명 및 API를 호출하는 방법을 제공합니다.
API는 RESTful API 방식으로 제공되며, JSON 형식으로 응답합니다.
Version
| Version | Status | Supported Until |
|---|
| 1.0 | CURRENT | - |
OpenAPI URL
https://network-logging.{region}.{environment}.samsungsdscloud.com
Environment and Region List
| environment | region |
|---|
| s | kr-west1 |
| s | kr-east1 |
| g | kr-south1 |
| g | kr-south2 |
| g | kr-south3 |
| e | kr-west1 |
| e | kr-east1 |
1.1.1 - 1.0
post /v1/network-logging/storages
Description
Network Logging Storage 생성한다.
상태
ACTIVE (CURRENT)
Parameters
Responses
Example HTTP request
Request path
/v1/network-logging/storages
"Scp-Accesskey = 2sd2gg=2agbdSD26svcD",
"Scp-Signature = fsfsdf235f9U35sdgf35Xsf/qgsdgsdg326=sfsdr23rsef=",
"Scp-Timestamp = 1605290625682",
"Scp-ClientType = Openapi",
"Accept-Language = ko-KR",
"Scp-Api-Version = network-logging 1.0"
Request body
{
"bucket_name": "",
"resource_type": "FIREWALL"
}
Example HTTP response
Response 201
{
"network_logging_storage": {
"account_id": "",
"bucket_name": "",
"created_at": "2024-05-17T00:23:17Z",
"created_by": "90dddfc2b1e04edba54ba2b41539a9ac",
"id": "",
"modified_at": "2024-05-17T00:23:17Z",
"modified_by": "90dddfc2b1e04edba54ba2b41539a9ac",
"resource_type": "FIREWALL"
}
}
1.2.1 - 1.0
delete /v1/network-logging/storages/{network_logging_storage_id}
Description
Network Logging Storage 삭제한다.
상태
ACTIVE (CURRENT)
Parameters
| Type | Name | Description | Schema | Default |
|---|
| path | network_logging_storage_id required | Network Logging Storage ID Example :
| string | None |
Responses
| HTTP Code | Description | Schema |
|---|
| 204 | No Content | None |
| 400 | Bad Request | None |
| 403 | Forbidden | None |
| 404 | Not Found | None |
Example HTTP request
Request path
/v1/network-logging/storages/{network_logging_storage_id}
"Scp-Accesskey = 2sd2gg=2agbdSD26svcD",
"Scp-Signature = fsfsdf235f9U35sdgf35Xsf/qgsdgsdg326=sfsdr23rsef=",
"Scp-Timestamp = 1605290625682",
"Scp-ClientType = Openapi",
"Accept-Language = ko-KR",
"Scp-Api-Version = network-logging 1.0"
Example HTTP response
Response 204
1.3.1 - 1.0
get /v1/network-logging/configurations
Description
Network Logging Configuration 목록 조회한다.
상태
ACTIVE (CURRENT)
Parameters
| Type | Name | Description | Schema | Default |
|---|
| query | with_count optional | with count Example : true
| any of [string, null] | None |
| query | limit optional | 한도 Example : 20
| any of [integer, null] | None |
| query | marker optional | 마커 Example : 607e0938521643b5b4b266f343fae693
| any of [string, null] | None |
| query | sort optional | sort Example : created_at:desc
| any of [string, null] | None |
| query | resource_id optional | 리소스 ID Example :
| string | None |
| query | resource_name optional | 리소스 이름 Example :
| string | None |
| query | resource_type required | 리소스 타입 Example :
| enum (FIREWALL, SECURITY_GROUP, NAT) | None |
Responses
Example HTTP request
Request path
/v1/network-logging/configurations?resource_type={resource_type}
"Scp-Accesskey = 2sd2gg=2agbdSD26svcD",
"Scp-Signature = fsfsdf235f9U35sdgf35Xsf/qgsdgsdg326=sfsdr23rsef=",
"Scp-Timestamp = 1605290625682",
"Scp-ClientType = Openapi",
"Accept-Language = ko-KR",
"Scp-Api-Version = network-logging 1.0"
Example HTTP response
Response 200
{
"count": 20,
"links": [
{
"href": "http://scp.samsungsdscloud.com/v1/notices",
"rel": "self"
}
],
"network_logging_configurations": [
{
"account_id": "",
"bucket_name": "",
"created_at": "2024-05-17T00:23:17Z",
"created_by": "90dddfc2b1e04edba54ba2b41539a9ac",
"down_interface": "",
"id": "",
"modified_at": "2024-05-17T00:23:17Z",
"modified_by": "90dddfc2b1e04edba54ba2b41539a9ac",
"resource_id": "",
"resource_name": "",
"resource_type": "FIREWALL",
"security_group_log_id": "",
"up_interface": ""
}
]
}
1.4.1 - 1.0
get /v1/network-logging/storages
Description
Network Logging Storage 목록 조회한다.
상태
ACTIVE (CURRENT)
Parameters
| Type | Name | Description | Schema | Default |
|---|
| query | with_count optional | with count Example : true
| any of [string, null] | None |
| query | limit optional | 한도 Example : 20
| any of [integer, null] | None |
| query | marker optional | 마커 Example : 607e0938521643b5b4b266f343fae693
| any of [string, null] | None |
| query | sort optional | sort Example : created_at:desc
| any of [string, null] | None |
| query | resource_type required | 리소스 타입 Example :
| enum (FIREWALL, SECURITY_GROUP, NAT) | None |
Responses
Example HTTP request
Request path
/v1/network-logging/storages?resource_type={resource_type}
"Scp-Accesskey = 2sd2gg=2agbdSD26svcD",
"Scp-Signature = fsfsdf235f9U35sdgf35Xsf/qgsdgsdg326=sfsdr23rsef=",
"Scp-Timestamp = 1605290625682",
"Scp-ClientType = Openapi",
"Accept-Language = ko-KR",
"Scp-Api-Version = network-logging 1.0"
Example HTTP response
Response 200
{
"count": 20,
"links": [
{
"href": "http://scp.samsungsdscloud.com/v1/notices",
"rel": "self"
}
],
"network_logging_storages": [
{
"account_id": "",
"bucket_name": "",
"created_at": "2024-05-17T00:23:17Z",
"created_by": "90dddfc2b1e04edba54ba2b41539a9ac",
"id": "",
"modified_at": "2024-05-17T00:23:17Z",
"modified_by": "90dddfc2b1e04edba54ba2b41539a9ac",
"resource_type": "FIREWALL"
}
]
}