50.5. UpdateReportConfiguration


PUT /v1/report/configurations/{id}

UpdateReportConfiguration がレポート設定を更新します

50.5.1. 説明

50.5.2. パラメーター

50.5.2.1. パスパラメーター

Expand
名前説明必須デフォルトPattern

id

 

X

null

 

50.5.2.2. ボディパラメーター

Expand
名前説明必須デフォルトPattern

body

V1UpdateReportConfigurationRequest

X

  

50.5.3. 戻り値のタイプ

Object

50.5.4. コンテンツタイプ

  • application/json

50.5.5. レスポンス

Expand
表50.5 HTTP 応答コード
コードメッセージデータタイプ

200

正常な応答。

Object

0

予期しないエラーの応答です。

RuntimeError

50.5.6. サンプル

50.5.7. 共通のオブジェクト参照

50.5.7.1. ProtobufAny

any には、シリアライズされたメッセージの型を記述する URL とともに、任意のシリアライズされたプロトコルバッファーメッセージが含まれます。

Protobuf ライブラリーは、パック/アンパックをサポートします。任意の値は、ユーティリティー関数の形式で、または Any タイプの追加の生成されたメソッドになります。

例 1: C++ のメッセージをパックして展開します。

Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
  ...
}
Copy to Clipboard Toggle word wrap

例 2: Java でメッセージをパックして解凍します。

Foo foo = ...;
Any any = Any.pack(foo);
...
if (any.is(Foo.class)) {
  foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
  foo = any.unpack(Foo.getDefaultInstance());
}
Copy to Clipboard Toggle word wrap
Example 3: Pack and unpack a message in Python.
Copy to Clipboard Toggle word wrap
foo = Foo(...)
any = Any()
any.Pack(foo)
...
if any.Is(Foo.DESCRIPTOR):
  any.Unpack(foo)
  ...
Copy to Clipboard Toggle word wrap
Example 4: Pack and unpack a message in Go
Copy to Clipboard Toggle word wrap
foo := &pb.Foo{...}
any, err := anypb.New(foo)
if err != nil {
  ...
}
...
foo := &pb.Foo{}
if err := any.UnmarshalTo(foo); err != nil {
  ...
}
Copy to Clipboard Toggle word wrap

protobuf ライブラリーが提供するパックメソッドは、デフォルトで type.googleapis.com/full.type.name をタイプ URL として使用し、unzip メソッドは、タイプ URL の最後の//のみを使用します。たとえば、"foo.bar.com/x/y.z" のように、"foo.bar.com/x/y.z" の型名 "y.z" が生成されます。

50.5.7.1.1. JSON 表現

Any 値の JSON 表現は、デシリアライズされた埋め込みメッセージの通常の表現を使用し、タイプ URL が含まれる追加のフィールド @type を使用します。以下に例を示します。

package google.profile;
message Person {
  string first_name = 1;
  string last_name = 2;
}
Copy to Clipboard Toggle word wrap
{
  "@type": "type.googleapis.com/google.profile.Person",
  "firstName": <string>,
  "lastName": <string>
}
Copy to Clipboard Toggle word wrap

埋め込みメッセージタイプがよく知られていて、カスタム JSON 表現がある場合、その表現は埋め込みされ、@type フィールドに加えてカスタム JSON を保持するフィールド が追加されます。例(メッセージ [google.protobuf.Duration][] の場合):

{
  "@type": "type.googleapis.com/google.protobuf.Duration",
  "value": "1.212s"
}
Copy to Clipboard Toggle word wrap
Expand
フィールド名必須Null 許容型説明形式

typeUrl

  

String

シリアライズされたプロトコルバッファーメッセージのタイプを一意に識別する URL/リソース名。この文字列には最低でも 1 つの \"/\" 文字を含める必要があります。URL のパスの最後のセグメントは、タイプの完全修飾名( path/google.protobuf.Durationにあるように)を表す必要があります。名前は正規の形式である必要があります(たとえば、先頭 \".\" は受け入れられません)。実際には、チームは通常、バイナリーにプリコンパイルして、任意 のコンテキストで使用することを期待しているすべてのタイプにプレコンパイルします。ただし、スキーム httphttps、またはスキームを使用しない URL の場合、以下のようにタイプ URL をメッセージ定義にマップするタイプサーバーを設定できます。* スキームが指定されていない場合、https は想定されます。* URL の HTTP GET はバイナリー形式の [google.protobuf.Type][] 値を生成するか、エラーを生成する必要があります。* アプリケーションは、URL に基づいてルックアップ結果をキャッシュするか、ルックアップを回避するためにバイナリーにプリコンパイルして使用できます。したがって、タイプへの変更時にバイナリー互換性を保持する必要があります。(バージョン付けされたタイプ名を使用して、重大な変更を管理します。)注記:この機能は現在、公式の protobuf リリースでは利用できないため、type.googleapis.com で始まるタイプ URL には使用されません。2023 年 5 月時点では、広く使用されているタイプサーバー実装はもう 1 つも実装する予定はありません。http 以外のスキーム、https (または空のスキーム)は、実装固有のセマンティクスで使用できます。

 

value

  

byte[]

上記の指定されたタイプの有効なシリアライズされたプロトコルバッファーである必要があります。

byte

50.5.7.2. ReportConfigurationReportType

Expand
Enum 値

脆弱性

50.5.7.3. ReportLastRunStatusRunStatus

Expand
Enum 値

SUCCESS

FAILURE

50.5.7.4. RuntimeError

Expand
フィールド名必須Null 許容型説明形式

error

  

String

  

code

  

Integer

 

int32

message

  

String

  

details

  

ProtobufAnyのリスト

  

50.5.7.5. ScheduleDaysOfMonth

1 for 1st, 2 for 2nd .... 31 for 31st
Copy to Clipboard Toggle word wrap
Expand
フィールド名必須Null 許容型説明形式

  

整数一覧

 

int32

50.5.7.6. ScheduleDaysOfWeek

Sunday = 0, Monday = 1, .... Saturday =  6
Copy to Clipboard Toggle word wrap
Expand
フィールド名必須Null 許容型説明形式

  

整数一覧

 

int32

50.5.7.7. ScheduleIntervalType

Expand
Enum 値

UNSET

毎日

WEEKLY (毎週)

MONTHLY (毎月)

50.5.7.8. ScheduleWeeklyInterval

Expand
フィールド名必須Null 許容型説明形式

day

  

Integer

 

int32

50.5.7.9. SimpleAccessScopeRules

繰り返されるフィールドの各要素は、個別のルールです。ルールは論理 OR で結合されます。リソース x を許可するルールが存在する場合は、x がアクセススコープにあります。

Expand
フィールド名必須Null 許容型説明形式

includedClusters

  

string のリスト

  

includedNamespaces

  

SimpleAccessScopeRulesNamespaceの一覧

  

clusterLabelSelectors

  

StorageSetBasedLabelSelectorの一覧

  

namespaceLabelSelectors

  

StorageSetBasedLabelSelectorの一覧

  

50.5.7.10. SimpleAccessScopeRulesNamespace

Expand
フィールド名必須Null 許容型説明形式

clusterName

  

String

両方のフィールドを設定する必要があります。

 

namespaceName

  

String

  

50.5.7.11. StorageEmailNotifierConfiguration

Expand
フィールド名必須Null 許容型説明形式

notifierId

  

String

  

メーリングリスト

  

string のリスト

  

customSubject

  

String

  

customBody

  

String

  

50.5.7.12. StorageNotifierConfiguration

Expand
フィールド名必須Null 許容型説明形式

emailConfig

  

StorageEmailNotifierConfiguration

  

id

  

String

  

50.5.7.13. StorageReportConfiguration

Expand
フィールド名必須Null 許容型説明形式

id

  

String

  

name

  

String

  

description

  

String

  

type

  

ReportConfigurationReportType

 

脆弱性

vulnReportFilters

  

StorageVulnerabilityReportFilters

  

scopeId

  

String

  

emailConfig

  

StorageEmailNotifierConfiguration

  

schedule

  

StorageSchedule

  

lastRunStatus

  

StorageReportLastRunStatus

  

lastSuccessfulRunTime

  

Date

 

date-time

resourceScope

  

StorageResourceScope

  

通知機能

  

StorageNotifierConfigurationのリスト

  

creator

  

StorageSlimUser

  

version

  

Integer

 

int32

50.5.7.14. StorageReportLastRunStatus

Expand
フィールド名必須Null 許容型説明形式

reportStatus

  

ReportLastRunStatusRunStatus

 

成功、失敗、

lastRunTime

  

Date

 

date-time

errorMsg

  

String

  

50.5.7.15. StorageResourceScope

Expand
フィールド名必須Null 許容型説明形式

collectionId

  

String

  

50.5.7.16. StorageSchedule

Expand
フィールド名必須Null 許容型説明形式

intervalType

  

ScheduleIntervalType

 

UNSET、DAILY、WEEKLY、MONTHLY、

hour

  

Integer

 

int32

minute

  

Integer

 

int32

weekly

  

ScheduleWeeklyInterval

  

daysOfWeek

  

ScheduleDaysOfWeek

  

daysOfMonth

  

ScheduleDaysOfMonth

  

50.5.7.17. StorageSetBasedLabelSelector

SetBasedLabelSelector は、セットベースのラベル要件のみを許可します。

次に利用可能なタグ:3

Expand
フィールド名必須Null 許容型説明形式

要件

  

List of StorageSetBasedLabelSelectorRequirement

  

50.5.7.18. StorageSetBasedLabelSelectorOperator

Expand
Enum 値

UNKNOWN

IN

NOT_IN

EXISTS

NOT_EXISTS

50.5.7.19. StorageSetBasedLabelSelectorRequirement

Next available tag: 4
Copy to Clipboard Toggle word wrap
Expand
フィールド名必須Null 許容型説明形式

key

  

String

  

op

  

StorageSetBasedLabelSelectorOperator

 

UNKNOWN、IN、NOT_IN、EXISTS、NOT_EXISTS、

values

  

string のリスト

  

50.5.7.20. StorageSlimUser

Expand
フィールド名必須Null 許容型説明形式

id

  

String

  

name

  

String

  

50.5.7.21. StorageVulnerabilityReportFilters

Expand
フィールド名必須Null 許容型説明形式

修正可能性

  

VulnerabilityReportFiltersFixability

 

両方の FIXABLE、NOT_FIXABLE、

sinceLastReport

  

Boolean

  

severities

  

StorageVulnerabilitySeverityのリスト

  

imageTypes

  

List of VulnerabilityReportFiltersImageType

  

allVuln

  

Boolean

  

sinceLastSentScheduledReport

  

Boolean

  

sinceStartDate

  

Date

 

date-time

accessScopeRules

  

SimpleAccessScopeRulesの一覧

  

50.5.7.22. StorageVulnerabilitySeverity

Expand
Enum 値

UNKNOWN_VULNERABILITY_SEVERITY

LOW_VULNERABILITY_SEVERITY

MODERATE_VULNERABILITY_SEVERITY

IMPORTANT_VULNERABILITY_SEVERITY

CRITICAL_VULNERABILITY_SEVERITY

50.5.7.23. V1UpdateReportConfigurationRequest

Expand
フィールド名必須Null 許容型説明形式

id

  

String

  

reportConfig

  

StorageReportConfiguration

  

50.5.7.24. VulnerabilityReportFiltersFixability

Expand
Enum 値

BOTH

FIXABLE

NOT_FIXABLE

50.5.7.25. VulnerabilityReportFiltersImageType

Expand
Enum 値

DEPLOYED

WATCHED

トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat