Security Command Center API . folders

Instance Methods

containerThreatDetectionSettings()

Returns the containerThreatDetectionSettings Resource.

eventThreatDetectionSettings()

Returns the eventThreatDetectionSettings Resource.

securityHealthAnalyticsSettings()

Returns the securityHealthAnalyticsSettings Resource.

webSecurityScannerSettings()

Returns the webSecurityScannerSettings Resource.

close()

Close httplib2 connections.

getContainerThreatDetectionSettings(name, x__xgafv=None)

Get the ContainerThreatDetectionSettings resource.

getEventThreatDetectionSettings(name, x__xgafv=None)

Get the EventThreatDetectionSettings resource.

getSecurityHealthAnalyticsSettings(name, x__xgafv=None)

Get the SecurityHealthAnalyticsSettings resource.

getWebSecurityScannerSettings(name, x__xgafv=None)

Get the WebSecurityScannerSettings resource.

updateContainerThreatDetectionSettings(name, body=None, updateMask=None, x__xgafv=None)

Update the ContainerThreatDetectionSettings resource.

updateEventThreatDetectionSettings(name, body=None, updateMask=None, x__xgafv=None)

Update the EventThreatDetectionSettings resource.

updateSecurityHealthAnalyticsSettings(name, body=None, updateMask=None, x__xgafv=None)

Update the SecurityHealthAnalyticsSettings resource.

updateWebSecurityScannerSettings(name, body=None, updateMask=None, x__xgafv=None)

Update the WebSecurityScannerSettings resource.

Method Details

close()
Close httplib2 connections.
getContainerThreatDetectionSettings(name, x__xgafv=None)
Get the ContainerThreatDetectionSettings resource.

Args:
  name: string, Required. The name of the ContainerThreatDetectionSettings to retrieve. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Container Threat Detection service.
      "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
        "a_key": { # Configuration of a module.
          "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
            "a_key": "", # Properties of the object.
          },
          "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
        },
      },
      "serviceAccount": "A String", # Output only. The service account used by Container Threat Detection for scanning. Service accounts are scoped at the project level meaning this field will be empty at any level above a project.
      "name": "A String", # The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings
      "updateTime": "A String", # Output only. The time the settings were last updated.
      "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
    }
getEventThreatDetectionSettings(name, x__xgafv=None)
Get the EventThreatDetectionSettings resource.

Args:
  name: string, Required. The name of the EventThreatDetectionSettings to retrieve. Formats: * organizations/{organization}/eventThreatDetectionSettings * folders/{folder}/eventThreatDetectionSettings * projects/{project}/eventThreatDetectionSettings (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Event Threat Detection service.
    "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
    "name": "A String", # The resource name of the EventThreatDetectionSettings. Formats: * organizations/{organization}/eventThreatDetectionSettings * folders/{folder}/eventThreatDetectionSettings * projects/{project}/eventThreatDetectionSettings
    "updateTime": "A String", # Output only. The time the settings were last updated.
    "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
      "a_key": { # Configuration of a module.
        "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
          "a_key": "", # Properties of the object.
        },
        "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
      },
    },
  }
getSecurityHealthAnalyticsSettings(name, x__xgafv=None)
Get the SecurityHealthAnalyticsSettings resource.

Args:
  name: string, Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: * organizations/{organization}/securityHealthAnalyticsSettings * folders/{folder}/securityHealthAnalyticsSettings * projects/{project}/securityHealthAnalyticsSettings (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Security Health Analytics service.
      "name": "A String", # The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/{organization}/securityHealthAnalyticsSettings * folders/{folder}/securityHealthAnalyticsSettings * projects/{project}/securityHealthAnalyticsSettings
      "updateTime": "A String", # Output only. The time the settings were last updated.
      "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
        "a_key": { # Configuration of a module.
          "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
            "a_key": "", # Properties of the object.
          },
          "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
        },
      },
      "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
      "serviceAccount": "A String", # Output only. The service account used by Security Health Analytics detectors.
    }
getWebSecurityScannerSettings(name, x__xgafv=None)
Get the WebSecurityScannerSettings resource.

Args:
  name: string, Required. The name of the WebSecurityScannerSettings to retrieve. Formats: * organizations/{organization}/webSecurityScannerSettings * folders/{folder}/webSecurityScannerSettings * projects/{project}/webSecurityScannerSettings (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Web Security Scanner service.
      "updateTime": "A String", # Output only. The time the settings were last updated.
      "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
        "a_key": { # Configuration of a module.
          "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
            "a_key": "", # Properties of the object.
          },
          "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
        },
      },
      "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
      "name": "A String", # The resource name of the WebSecurityScannerSettings. Formats: * organizations/{organization}/webSecurityScannerSettings * folders/{folder}/webSecurityScannerSettings * projects/{project}/webSecurityScannerSettings
    }
updateContainerThreatDetectionSettings(name, body=None, updateMask=None, x__xgafv=None)
Update the ContainerThreatDetectionSettings resource.

Args:
  name: string, The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings (required)
  body: object, The request body.
    The object takes the form of:

{ # Resource capturing the settings for the Container Threat Detection service.
    "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
      "a_key": { # Configuration of a module.
        "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
          "a_key": "", # Properties of the object.
        },
        "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
      },
    },
    "serviceAccount": "A String", # Output only. The service account used by Container Threat Detection for scanning. Service accounts are scoped at the project level meaning this field will be empty at any level above a project.
    "name": "A String", # The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings
    "updateTime": "A String", # Output only. The time the settings were last updated.
    "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
  }

  updateMask: string, The list of fields to be updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Container Threat Detection service.
      "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
        "a_key": { # Configuration of a module.
          "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
            "a_key": "", # Properties of the object.
          },
          "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
        },
      },
      "serviceAccount": "A String", # Output only. The service account used by Container Threat Detection for scanning. Service accounts are scoped at the project level meaning this field will be empty at any level above a project.
      "name": "A String", # The resource name of the ContainerThreatDetectionSettings. Formats: * organizations/{organization}/containerThreatDetectionSettings * folders/{folder}/containerThreatDetectionSettings * projects/{project}/containerThreatDetectionSettings * projects/{project}/locations/{location}/clusters/{cluster}/containerThreatDetectionSettings
      "updateTime": "A String", # Output only. The time the settings were last updated.
      "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
    }
updateEventThreatDetectionSettings(name, body=None, updateMask=None, x__xgafv=None)
Update the EventThreatDetectionSettings resource.

Args:
  name: string, The resource name of the EventThreatDetectionSettings. Formats: * organizations/{organization}/eventThreatDetectionSettings * folders/{folder}/eventThreatDetectionSettings * projects/{project}/eventThreatDetectionSettings (required)
  body: object, The request body.
    The object takes the form of:

{ # Resource capturing the settings for the Event Threat Detection service.
  "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
  "name": "A String", # The resource name of the EventThreatDetectionSettings. Formats: * organizations/{organization}/eventThreatDetectionSettings * folders/{folder}/eventThreatDetectionSettings * projects/{project}/eventThreatDetectionSettings
  "updateTime": "A String", # Output only. The time the settings were last updated.
  "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
    "a_key": { # Configuration of a module.
      "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
        "a_key": "", # Properties of the object.
      },
      "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
    },
  },
}

  updateMask: string, The list of fields to be updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Event Threat Detection service.
    "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
    "name": "A String", # The resource name of the EventThreatDetectionSettings. Formats: * organizations/{organization}/eventThreatDetectionSettings * folders/{folder}/eventThreatDetectionSettings * projects/{project}/eventThreatDetectionSettings
    "updateTime": "A String", # Output only. The time the settings were last updated.
    "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
      "a_key": { # Configuration of a module.
        "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
          "a_key": "", # Properties of the object.
        },
        "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
      },
    },
  }
updateSecurityHealthAnalyticsSettings(name, body=None, updateMask=None, x__xgafv=None)
Update the SecurityHealthAnalyticsSettings resource.

Args:
  name: string, The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/{organization}/securityHealthAnalyticsSettings * folders/{folder}/securityHealthAnalyticsSettings * projects/{project}/securityHealthAnalyticsSettings (required)
  body: object, The request body.
    The object takes the form of:

{ # Resource capturing the settings for the Security Health Analytics service.
    "name": "A String", # The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/{organization}/securityHealthAnalyticsSettings * folders/{folder}/securityHealthAnalyticsSettings * projects/{project}/securityHealthAnalyticsSettings
    "updateTime": "A String", # Output only. The time the settings were last updated.
    "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
      "a_key": { # Configuration of a module.
        "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
          "a_key": "", # Properties of the object.
        },
        "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
      },
    },
    "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
    "serviceAccount": "A String", # Output only. The service account used by Security Health Analytics detectors.
  }

  updateMask: string, The list of fields to be updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Security Health Analytics service.
      "name": "A String", # The resource name of the SecurityHealthAnalyticsSettings. Formats: * organizations/{organization}/securityHealthAnalyticsSettings * folders/{folder}/securityHealthAnalyticsSettings * projects/{project}/securityHealthAnalyticsSettings
      "updateTime": "A String", # Output only. The time the settings were last updated.
      "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
        "a_key": { # Configuration of a module.
          "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
            "a_key": "", # Properties of the object.
          },
          "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
        },
      },
      "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
      "serviceAccount": "A String", # Output only. The service account used by Security Health Analytics detectors.
    }
updateWebSecurityScannerSettings(name, body=None, updateMask=None, x__xgafv=None)
Update the WebSecurityScannerSettings resource.

Args:
  name: string, The resource name of the WebSecurityScannerSettings. Formats: * organizations/{organization}/webSecurityScannerSettings * folders/{folder}/webSecurityScannerSettings * projects/{project}/webSecurityScannerSettings (required)
  body: object, The request body.
    The object takes the form of:

{ # Resource capturing the settings for the Web Security Scanner service.
    "updateTime": "A String", # Output only. The time the settings were last updated.
    "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
      "a_key": { # Configuration of a module.
        "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
          "a_key": "", # Properties of the object.
        },
        "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
      },
    },
    "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
    "name": "A String", # The resource name of the WebSecurityScannerSettings. Formats: * organizations/{organization}/webSecurityScannerSettings * folders/{folder}/webSecurityScannerSettings * projects/{project}/webSecurityScannerSettings
  }

  updateMask: string, The list of fields to be updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Resource capturing the settings for the Web Security Scanner service.
      "updateTime": "A String", # Output only. The time the settings were last updated.
      "modules": { # The configurations including the state of enablement for the service's different modules. The absence of a module in the map implies its configuration is inherited from its parent's.
        "a_key": { # Configuration of a module.
          "value": { # The configuration value for the module. The absence of this field implies its inheritance from the parent.
            "a_key": "", # Properties of the object.
          },
          "moduleEnablementState": "A String", # The state of enablement for the module at its level of the resource hierarchy.
        },
      },
      "serviceEnablementState": "A String", # The state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
      "name": "A String", # The resource name of the WebSecurityScannerSettings. Formats: * organizations/{organization}/webSecurityScannerSettings * folders/{folder}/webSecurityScannerSettings * projects/{project}/webSecurityScannerSettings
    }