Download OpenAPI specification:Download OpenAPI Spec (YAML)Download OpenAPI Spec (JSON)
さくらのクラウド セキュリティコントロール機能のAPI。
クラウド環境におけるセキュリティ上の問題を早期に発見して対応を支援する。
現在のプロジェクトでセキュリティコントロールを有効化します。 成功時は201を返し、リクエストが不正な場合は400を返します。
| servicePrincipalId required | string プロジェクトに紐づくサービスプリンシパルID(評価対象リソースへのアクセス権限付与)。 |
{- "servicePrincipalId": "string"
}{- "servicePrincipalId": "string",
- "isActive": true,
- "automatedActionLimit": 0
}現在のプロジェクトの有効化状態を更新します。 成功時は200で更新後の有効化詳細を返し、リクエストが不正な場合は400を返します。
| servicePrincipalId required | string プロジェクトに紐づくサービスプリンシパルID(評価対象リソースへのアクセス権限付与)。 |
| isActive required | boolean 現在のプロジェクトで「セキュリティコントロール」が有効かどうか。 |
{- "servicePrincipalId": "string",
- "isActive": true
}{- "servicePrincipalId": "string",
- "isActive": true,
- "automatedActionLimit": 0
}プロジェクトの評価ルール一覧を取得します。
pageSizeの最大値は100。100を超える値は100として扱う。 pageSize未指定時は50。
| page_size | integer 返却する要素の最大数。 サービス側でこの値より少なく返す場合がある。 |
| next | string このページトークンより後の要素を取得する。 このフィールドと ページネーション時、他のリクエストパラメータは元のリクエストと一致している必要がある。 無効な場合は400 Bad Requestとなる。 |
| prev | string このページトークンより前の要素を取得する。 このフィールドと ページネーション時、他のリクエストパラメータは元のリクエストと一致している必要がある。 無効な場合は400 Bad Requestとなる。 |
{- "items": [
- {
- "rule": {
- "evaluationRuleId": "server-no-public-ip",
- "parameter": {
- "servicePrincipalId": "1",
- "zones": [
- "tk1a",
- "is1a",
- "is1b"
]
}
}, - "description": "string",
- "iamRolesRequired": [
- "string"
], - "isEnabled": true
}
], - "nextPageToken": "string",
- "prevPageToken": "string",
- "totalSize": 0
}指定されたIDの評価ルール詳細を取得します。
| evaluationRuleId required | string (EvaluationRuleID) Enum: "server-no-public-ip" "disk-encryption-enabled" "dba-encryption-enabled" "dba-no-public-ip" "objectstorage-bucket-acl-changed" "objectstorage-bucket-encryption-enabled" "addon-datalake-no-public-access" "addon-dwh-no-public-access" "addon-threat-detection-enabled" "elb-logging-enabled" "iam-member-operation-detected" "nosql-encryption-enabled" "addon-threat-detections" "addon-vulnerability-detections" |
{- "rule": {
- "evaluationRuleId": "server-no-public-ip",
- "parameter": {
- "servicePrincipalId": "1",
- "zones": [
- "tk1a",
- "is1a",
- "is1b"
]
}
}, - "description": "string",
- "iamRolesRequired": [
- "string"
], - "isEnabled": true
}指定されたIDの評価ルールを更新します。
| evaluationRuleId required | string (EvaluationRuleID) Enum: "server-no-public-ip" "disk-encryption-enabled" "dba-encryption-enabled" "dba-no-public-ip" "objectstorage-bucket-acl-changed" "objectstorage-bucket-encryption-enabled" "addon-datalake-no-public-access" "addon-dwh-no-public-access" "addon-threat-detection-enabled" "elb-logging-enabled" "iam-member-operation-detected" "nosql-encryption-enabled" "addon-threat-detections" "addon-vulnerability-detections" |
required | object or object or object or object or object or object or object or object or object or object or object or object or object or object (EvaluationRuleUnion) |
| isEnabled required | boolean ルールが有効かどうか。 |
{- "rule": {
- "evaluationRuleId": "server-no-public-ip",
- "parameter": {
- "servicePrincipalId": "1",
- "zones": [
- "tk1a",
- "is1a",
- "is1b"
]
}
}, - "isEnabled": true
}{- "rule": {
- "evaluationRuleId": "server-no-public-ip",
- "parameter": {
- "servicePrincipalId": "1",
- "zones": [
- "tk1a",
- "is1a",
- "is1b"
]
}
}, - "description": "string",
- "iamRolesRequired": [
- "string"
], - "isEnabled": true
}新しい自動アクションを作成します。
| name required | string 自動アクションの名称。 |
| description | string 自動アクションの説明。 |
required | object アクションの定義(アクションタイプごとに異なる)。 |
| executionCondition required | string どのような条件で自動アクションを実行するかの条件式。 この条件式を満たした場合にのみ、自動アクションが実行される。 CEL(Common Expression Language)形式で記述する。 |
| isEnabled required | boolean 自動アクションが有効かどうか。 |
{- "name": "string",
- "description": "string",
- "action": {
- "actionType": "simpleNotification",
- "actionParameter": {
- "servicePrincipalId": "string",
- "notificationGroupId": "string"
}
}, - "executionCondition": "string",
- "isEnabled": true
}{- "automatedActionId": "string",
- "name": "string",
- "description": "string",
- "action": {
- "actionType": "simpleNotification",
- "actionParameter": {
- "servicePrincipalId": "string",
- "notificationGroupId": "string"
}
}, - "executionCondition": "string",
- "isEnabled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}自動アクション一覧を取得します。
pageSizeの最大値は100。100を超える値は100として扱う。 pageSize未指定時は50。
| page_size | integer 返却する要素の最大数。 サービス側でこの値より少なく返す場合がある。 |
| next | string このページトークンより後の要素を取得する。 このフィールドと ページネーション時、他のリクエストパラメータは元のリクエストと一致している必要がある。 無効な場合は400 Bad Requestとなる。 |
| prev | string このページトークンより前の要素を取得する。 このフィールドと ページネーション時、他のリクエストパラメータは元のリクエストと一致している必要がある。 無効な場合は400 Bad Requestとなる。 |
{- "items": [
- {
- "automatedActionId": "string",
- "name": "string",
- "description": "string",
- "action": {
- "actionType": "simpleNotification",
- "actionParameter": {
- "servicePrincipalId": "string",
- "notificationGroupId": "string"
}
}, - "executionCondition": "string",
- "isEnabled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "nextPageToken": "string",
- "prevPageToken": "string",
- "totalSize": 0
}指定されたIDの自動アクション詳細を取得します。
| actionId required | string (AutomatedActionID) 自動アクションの一意な識別子。 |
{- "automatedActionId": "string",
- "name": "string",
- "description": "string",
- "action": {
- "actionType": "simpleNotification",
- "actionParameter": {
- "servicePrincipalId": "string",
- "notificationGroupId": "string"
}
}, - "executionCondition": "string",
- "isEnabled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}指定されたIDの自動アクションを更新します。
| actionId required | string (AutomatedActionID) 自動アクションの一意な識別子。 |
| name required | string 自動アクションの名称。 |
| description | string 自動アクションの説明。 |
required | object アクションの定義(アクションタイプごとに異なる)。 |
| executionCondition required | string どのような条件で自動アクションを実行するかの条件式。 この条件式を満たした場合にのみ、自動アクションが実行される。 CEL(Common Expression Language)形式で記述する。 |
| isEnabled required | boolean 自動アクションが有効かどうか。 |
{- "name": "string",
- "description": "string",
- "action": {
- "actionType": "simpleNotification",
- "actionParameter": {
- "servicePrincipalId": "string",
- "notificationGroupId": "string"
}
}, - "executionCondition": "string",
- "isEnabled": true
}{- "automatedActionId": "string",
- "name": "string",
- "description": "string",
- "action": {
- "actionType": "simpleNotification",
- "actionParameter": {
- "servicePrincipalId": "string",
- "notificationGroupId": "string"
}
}, - "executionCondition": "string",
- "isEnabled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}指定されたIDの自動アクションを削除します。
| actionId required | string (AutomatedActionID) 自動アクションの一意な識別子。 |
{- "type": "../dictionary",
- "title": "string",
- "status": 401,
- "detail": "authentication_failed",
- "instance": "../dictionary"
}