エージェントを削除する
delete
/oaa-policy/agent/v1/{agentgid}
リクエスト
パス・パラメータ
- agentgid(required): string
エージェントの識別子。
この操作にはリクエスト本文はありません。
先頭に戻るレスポンス
サポートされるメディア・タイプ
- application/xml
- application/json
200レスポンス
エージェントがストアから削除されました。
ルート・スキーマ: AgentResponse
型:
ソースの表示
object-
agent: object schema
エージェントの詳細
-
agentgid: string
後続のリクエストで使用できるエージェントのグローバル識別子。
-
message: string
リクエストのステータスに関連するメッセージ
-
status: string
リクエストのステータス
ネストされたスキーマ: schema
型:
objectエージェントの詳細
ソースの表示
-
agentgid: string
エージェントの一意の識別子。
-
agentName(required): string
エージェントの一意の名前
-
clientId: string
エージェントの識別に使用されるエージェントのクライアントID
-
clientSecret: string
クライアントの認証に使用されるクライアント・シークレット
-
clientType(required): string
クライアント・タイプ。このフィールドで使用可能な値はOAM、RadiusまたはAPIです。
-
createTime: string (date-time)
"rfc3339セクション5.6の形式の日時文字列。https://tools.ietf.org/html/rfc3339#section-5.6"
-
description: string
エージェントの説明
-
privateKey: string
リクエスト・パラメータを暗号化/復号化するために使用できるエージェントの秘密キーの文字列表現。
-
privateKeyFile: string
秘密キーのファイル名。
-
privateKeyPassword: string
秘密キーのBase64でエンコードされたパスワード。
-
updateTime: string (date-time)
"rfc3339セクション5.6の形式の日時文字列。https://tools.ietf.org/html/rfc3339#section-5.6"
401レスポンス
未認可
405レスポンス
無効な入力
ルート・スキーマ: AgentResponse
型:
ソースの表示
object-
agent: object schema
エージェントの詳細
-
agentgid: string
後続のリクエストで使用できるエージェントのグローバル識別子。
-
message: string
リクエストのステータスに関連するメッセージ
-
status: string
リクエストのステータス
ネストされたスキーマ: schema
型:
objectエージェントの詳細
ソースの表示
-
agentgid: string
エージェントの一意の識別子。
-
agentName(required): string
エージェントの一意の名前
-
clientId: string
エージェントの識別に使用されるエージェントのクライアントID
-
clientSecret: string
クライアントの認証に使用されるクライアント・シークレット
-
clientType(required): string
クライアント・タイプ。このフィールドで使用可能な値はOAM、RadiusまたはAPIです。
-
createTime: string (date-time)
"rfc3339セクション5.6の形式の日時文字列。https://tools.ietf.org/html/rfc3339#section-5.6"
-
description: string
エージェントの説明
-
privateKey: string
リクエスト・パラメータを暗号化/復号化するために使用できるエージェントの秘密キーの文字列表現。
-
privateKeyFile: string
秘密キーのファイル名。
-
privateKeyPassword: string
秘密キーのBase64でエンコードされたパスワード。
-
updateTime: string (date-time)
"rfc3339セクション5.6の形式の日時文字列。https://tools.ietf.org/html/rfc3339#section-5.6"
500レスポンス
内部サーバー・エラー
503レスポンス
サービス使用不可
例
次の例は、エージェントを削除するサンプルのリクエストとレスポンスを示します。
JSON形式でエージェントを削除するcURLコマンド
curl --location --request DELETE '<PolicyUrl>/oaa-policy/agent/v1/ed022f31-c5f5-4665-8a19-159655f514ae' \ --header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'
JSON形式のサンプル・レスポンス
{
"status": "200",
"message": "Agent deleted",
"agentgid": "ed022f31-c5f5-4665-8a19-159655f514ae",
"agent": {
"agentName": "APIAgent2",
"description": "Agent for REST API",
"clientId": "0a47d442-9dc0-4841-b734-8e15e1634ee4",
"clientSecret": "273a8d9c-29ad-4956-bc8d-69ffcfbf1d73",
"clientType": "api",
"agentgid": "ed022f31-c5f5-4665-8a19-159655f514ae",
"createTime": {
"parseFailed": false,
"dateTime": "2021-04-01T09:19:23.28Z",
"rawParam": "2021-04-01T09:19:23.28Z"
},
"updateTime": {
"parseFailed": false,
"dateTime": "2021-04-01T09:19:23.28Z",
"rawParam": "2021-04-01T09:19:23.28Z"
}
}
}XML形式でエージェントを削除するcURLコマンド
curl --location --request DELETE '<PolicyUrl>/oaa-policy/agent/v1/ed022f31-c5f5-4665-8a19-159655f514ae' \ --header 'Content-Type: application/xml' \ --header 'Accept: application/xml' \ --header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'
XML形式のサンプル・レスポンス
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AgentResponse>
<status>200</status>
<message>Agent deleted</message>
<agentgid>ed022f31-c5f5-4665-8a19-159655f514ae</agentgid>
<agent>
<agentName>APIAgent2</agentName>
<description>Agent for REST API</description>
<clientId>0a47d442-9dc0-4841-b734-8e15e1634ee4</clientId>
<clientSecret>273a8d9c-29ad-4956-bc8d-69ffcfbf1d73</clientSecret>
<clientType>api</clientType>
<agentgid>ed022f31-c5f5-4665-8a19-159655f514ae</agentgid>
<createTime>
<parseFailed>false</parseFailed>
<dateTime>2021-04-01T09:19:23.28Z</dateTime>
<rawParam>2021-04-01T09:19:23.28Z</rawParam>
</createTime>
<updateTime>
<parseFailed>false</parseFailed>
<dateTime>2021-04-01T09:19:23.28Z</dateTime>
<rawParam>2021-04-01T09:19:23.28Z</rawParam>
</updateTime>
</AgentResponse>