public sealed class Resource : IMessage<Resource>, IEquatable<Resource>, IDeepCloneable<Resource>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class Resource.
Information related to the Google Cloud resource.
Namespace
Google.Cloud.SecurityCenter.V2Assembly
Google.Cloud.SecurityCenter.V2.dll
Constructors
Resource()
public Resource()
Resource(Resource)
public Resource(Resource other)
Parameter | |
---|---|
Name | Description |
other |
Resource |
Properties
AwsMetadata
public AwsMetadata AwsMetadata { get; set; }
The AWS metadata associated with the finding.
Property Value | |
---|---|
Type | Description |
AwsMetadata |
AzureMetadata
public AzureMetadata AzureMetadata { get; set; }
The Azure metadata associated with the finding.
Property Value | |
---|---|
Type | Description |
AzureMetadata |
CloudProvider
public CloudProvider CloudProvider { get; set; }
Indicates which cloud provider the finding is from.
Property Value | |
---|---|
Type | Description |
CloudProvider |
CloudProviderMetadataCase
public Resource.CloudProviderMetadataOneofCase CloudProviderMetadataCase { get; }
Property Value | |
---|---|
Type | Description |
ResourceCloudProviderMetadataOneofCase |
DisplayName
public string DisplayName { get; set; }
The human readable name of the resource.
Property Value | |
---|---|
Type | Description |
string |
GcpMetadata
public GcpMetadata GcpMetadata { get; set; }
The GCP metadata associated with the finding.
Property Value | |
---|---|
Type | Description |
GcpMetadata |
Location
public string Location { get; set; }
The region or location of the service (if applicable).
Property Value | |
---|---|
Type | Description |
string |
Name
public string Name { get; set; }
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
Property Value | |
---|---|
Type | Description |
string |
ResourcePath
public ResourcePath ResourcePath { get; set; }
Provides the path to the resource within the resource hierarchy.
Property Value | |
---|---|
Type | Description |
ResourcePath |
ResourcePathString
public string ResourcePathString { get; set; }
A string representation of the resource path.
For Google Cloud, it has the format of
organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
where there can be any number of folders.
For AWS, it has the format of
org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
where there can be any number of organizational units.
For Azure, it has the format of
mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
where there can be any number of management groups.
Property Value | |
---|---|
Type | Description |
string |
Service
public string Service { get; set; }
The service or resource provider associated with the resource.
Property Value | |
---|---|
Type | Description |
string |
Type
public string Type { get; set; }
The full resource type of the resource.
Property Value | |
---|---|
Type | Description |
string |