Security Command Center API . organizations

Instance Methods

assets()

Returns the assets Resource.

operations()

Returns the operations Resource.

sources()

Returns the sources Resource.

close()

Close httplib2 connections.

getOrganizationSettings(name, x__xgafv=None)

Gets the settings for an organization.

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

Updates an organization's settings.

Method Details

close()
Close httplib2 connections.
getOrganizationSettings(name, x__xgafv=None)
Gets the settings for an organization.

Args:
  name: string, Required. Name of the organization to get organization settings for. Its format is "organizations/[organization_id]/organizationSettings". (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # User specified settings that are attached to the Security Command Center organization.
  "assetDiscoveryConfig": { # The configuration used for Asset Discovery runs. # The configuration used for Asset Discovery runs.
    "inclusionMode": "A String", # The mode to use for filtering asset discovery.
    "projectIds": [ # The project ids to use for filtering asset discovery.
      "A String",
    ],
  },
  "enableAssetDiscovery": True or False, # A flag that indicates if Asset Discovery should be enabled. If the flag is set to `true`, then discovery of assets will occur. If it is set to `false, all historical assets will remain, but discovery of future assets will not occur.
  "name": "A String", # The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".
}
updateOrganizationSettings(name, body=None, updateMask=None, x__xgafv=None)
Updates an organization's settings.

Args:
  name: string, The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings". (required)
  body: object, The request body.
    The object takes the form of:

{ # User specified settings that are attached to the Security Command Center organization.
  "assetDiscoveryConfig": { # The configuration used for Asset Discovery runs. # The configuration used for Asset Discovery runs.
    "inclusionMode": "A String", # The mode to use for filtering asset discovery.
    "projectIds": [ # The project ids to use for filtering asset discovery.
      "A String",
    ],
  },
  "enableAssetDiscovery": True or False, # A flag that indicates if Asset Discovery should be enabled. If the flag is set to `true`, then discovery of assets will occur. If it is set to `false, all historical assets will remain, but discovery of future assets will not occur.
  "name": "A String", # The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".
}

  updateMask: string, The FieldMask to use when updating the settings resource.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # User specified settings that are attached to the Security Command Center organization.
  "assetDiscoveryConfig": { # The configuration used for Asset Discovery runs. # The configuration used for Asset Discovery runs.
    "inclusionMode": "A String", # The mode to use for filtering asset discovery.
    "projectIds": [ # The project ids to use for filtering asset discovery.
      "A String",
    ],
  },
  "enableAssetDiscovery": True or False, # A flag that indicates if Asset Discovery should be enabled. If the flag is set to `true`, then discovery of assets will occur. If it is set to `false, all historical assets will remain, but discovery of future assets will not occur.
  "name": "A String", # The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".
}