use Google\Cloud\SecurityCenter\V1\SecurityCenterClient;
use Google\Cloud\SecurityCenter\V1\Source;
$security = new SecurityCenterClient();
$parent = SecurityCenterClient::organizationName('[YOUR ORGANIZATION]');
$source = new Source([
'name' => SecurityCenterClient::sourceName('[YOUR ORGANIZATION]', '[YOUR SOURCE]'),
'displayName' => '[YOUR SOURCE]'
]);
$res = $security->createSource($parent, $source);
This repository was archived by the owner on May 4, 2021. It is now read-only.
Repository navigation
V1
Directory actions
More options
Directory actions
More options
V1
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||