gcp.apigee.SecurityMonitoringCondition
Explore with Pulumi AI
Security monitoring condition for risk assessment version 2 in Apigee.
To get more information about SecurityMonitoringCondition, see:
Example Usage
Apigee Security Monitoring Condition Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const current = gcp.organizations.getClientConfig({});
const apigeeNetwork = new gcp.compute.Network("apigee_network", {name: "apigee-network"});
const apigeeRange = new gcp.compute.GlobalAddress("apigee_range", {
name: "apigee-range",
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: apigeeNetwork.id,
});
const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigee_vpc_connection", {
network: apigeeNetwork.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [apigeeRange.name],
});
const apigeeOrg = new gcp.apigee.Organization("apigee_org", {
analyticsRegion: "us-central1",
projectId: current.then(current => current.project),
authorizedNetwork: apigeeNetwork.id,
}, {
dependsOn: [apigeeVpcConnection],
});
const env = new gcp.apigee.Environment("env", {
name: "my-environment",
description: "Apigee Environment",
displayName: "environment-1",
orgId: apigeeOrg.id,
});
const apigeeOrgSecurityAddonsConfig = new gcp.apigee.AddonsConfig("apigee_org_security_addons_config", {
org: apigeeOrg.name,
addonsConfig: {
apiSecurityConfig: {
enabled: true,
},
},
});
const securityMonitoringCondition = new gcp.apigee.SecurityMonitoringCondition("security_monitoring_condition", {
conditionId: "my-condition",
orgId: apigeeOrg.id,
profile: "google-default",
scope: "my-environment",
includeAllResources: {},
}, {
dependsOn: [apigeeOrgSecurityAddonsConfig],
});
import pulumi
import pulumi_gcp as gcp
current = gcp.organizations.get_client_config()
apigee_network = gcp.compute.Network("apigee_network", name="apigee-network")
apigee_range = gcp.compute.GlobalAddress("apigee_range",
name="apigee-range",
purpose="VPC_PEERING",
address_type="INTERNAL",
prefix_length=16,
network=apigee_network.id)
apigee_vpc_connection = gcp.servicenetworking.Connection("apigee_vpc_connection",
network=apigee_network.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[apigee_range.name])
apigee_org = gcp.apigee.Organization("apigee_org",
analytics_region="us-central1",
project_id=current.project,
authorized_network=apigee_network.id,
opts = pulumi.ResourceOptions(depends_on=[apigee_vpc_connection]))
env = gcp.apigee.Environment("env",
name="my-environment",
description="Apigee Environment",
display_name="environment-1",
org_id=apigee_org.id)
apigee_org_security_addons_config = gcp.apigee.AddonsConfig("apigee_org_security_addons_config",
org=apigee_org.name,
addons_config={
"api_security_config": {
"enabled": True,
},
})
security_monitoring_condition = gcp.apigee.SecurityMonitoringCondition("security_monitoring_condition",
condition_id="my-condition",
org_id=apigee_org.id,
profile="google-default",
scope="my-environment",
include_all_resources={},
opts = pulumi.ResourceOptions(depends_on=[apigee_org_security_addons_config]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/apigee"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/servicenetworking"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := organizations.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
apigeeNetwork, err := compute.NewNetwork(ctx, "apigee_network", &compute.NetworkArgs{
Name: pulumi.String("apigee-network"),
})
if err != nil {
return err
}
apigeeRange, err := compute.NewGlobalAddress(ctx, "apigee_range", &compute.GlobalAddressArgs{
Name: pulumi.String("apigee-range"),
Purpose: pulumi.String("VPC_PEERING"),
AddressType: pulumi.String("INTERNAL"),
PrefixLength: pulumi.Int(16),
Network: apigeeNetwork.ID(),
})
if err != nil {
return err
}
apigeeVpcConnection, err := servicenetworking.NewConnection(ctx, "apigee_vpc_connection", &servicenetworking.ConnectionArgs{
Network: apigeeNetwork.ID(),
Service: pulumi.String("servicenetworking.googleapis.com"),
ReservedPeeringRanges: pulumi.StringArray{
apigeeRange.Name,
},
})
if err != nil {
return err
}
apigeeOrg, err := apigee.NewOrganization(ctx, "apigee_org", &apigee.OrganizationArgs{
AnalyticsRegion: pulumi.String("us-central1"),
ProjectId: pulumi.String(current.Project),
AuthorizedNetwork: apigeeNetwork.ID(),
}, pulumi.DependsOn([]pulumi.Resource{
apigeeVpcConnection,
}))
if err != nil {
return err
}
_, err = apigee.NewEnvironment(ctx, "env", &apigee.EnvironmentArgs{
Name: pulumi.String("my-environment"),
Description: pulumi.String("Apigee Environment"),
DisplayName: pulumi.String("environment-1"),
OrgId: apigeeOrg.ID(),
})
if err != nil {
return err
}
apigeeOrgSecurityAddonsConfig, err := apigee.NewAddonsConfig(ctx, "apigee_org_security_addons_config", &apigee.AddonsConfigArgs{
Org: apigeeOrg.Name,
AddonsConfig: &apigee.AddonsConfigAddonsConfigArgs{
ApiSecurityConfig: &apigee.AddonsConfigAddonsConfigApiSecurityConfigArgs{
Enabled: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
_, err = apigee.NewSecurityMonitoringCondition(ctx, "security_monitoring_condition", &apigee.SecurityMonitoringConditionArgs{
ConditionId: pulumi.String("my-condition"),
OrgId: apigeeOrg.ID(),
Profile: pulumi.String("google-default"),
Scope: pulumi.String("my-environment"),
IncludeAllResources: &apigee.SecurityMonitoringConditionIncludeAllResourcesArgs{},
}, pulumi.DependsOn([]pulumi.Resource{
apigeeOrgSecurityAddonsConfig,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var current = Gcp.Organizations.GetClientConfig.Invoke();
var apigeeNetwork = new Gcp.Compute.Network("apigee_network", new()
{
Name = "apigee-network",
});
var apigeeRange = new Gcp.Compute.GlobalAddress("apigee_range", new()
{
Name = "apigee-range",
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = apigeeNetwork.Id,
});
var apigeeVpcConnection = new Gcp.ServiceNetworking.Connection("apigee_vpc_connection", new()
{
Network = apigeeNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
apigeeRange.Name,
},
});
var apigeeOrg = new Gcp.Apigee.Organization("apigee_org", new()
{
AnalyticsRegion = "us-central1",
ProjectId = current.Apply(getClientConfigResult => getClientConfigResult.Project),
AuthorizedNetwork = apigeeNetwork.Id,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeVpcConnection,
},
});
var env = new Gcp.Apigee.Environment("env", new()
{
Name = "my-environment",
Description = "Apigee Environment",
DisplayName = "environment-1",
OrgId = apigeeOrg.Id,
});
var apigeeOrgSecurityAddonsConfig = new Gcp.Apigee.AddonsConfig("apigee_org_security_addons_config", new()
{
Org = apigeeOrg.Name,
AddonsConfigDetails = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigArgs
{
ApiSecurityConfig = new Gcp.Apigee.Inputs.AddonsConfigAddonsConfigApiSecurityConfigArgs
{
Enabled = true,
},
},
});
var securityMonitoringCondition = new Gcp.Apigee.SecurityMonitoringCondition("security_monitoring_condition", new()
{
ConditionId = "my-condition",
OrgId = apigeeOrg.Id,
Profile = "google-default",
Scope = "my-environment",
IncludeAllResources = null,
}, new CustomResourceOptions
{
DependsOn =
{
apigeeOrgSecurityAddonsConfig,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.apigee.Organization;
import com.pulumi.gcp.apigee.OrganizationArgs;
import com.pulumi.gcp.apigee.Environment;
import com.pulumi.gcp.apigee.EnvironmentArgs;
import com.pulumi.gcp.apigee.AddonsConfig;
import com.pulumi.gcp.apigee.AddonsConfigArgs;
import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigArgs;
import com.pulumi.gcp.apigee.inputs.AddonsConfigAddonsConfigApiSecurityConfigArgs;
import com.pulumi.gcp.apigee.SecurityMonitoringCondition;
import com.pulumi.gcp.apigee.SecurityMonitoringConditionArgs;
import com.pulumi.gcp.apigee.inputs.SecurityMonitoringConditionIncludeAllResourcesArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = OrganizationsFunctions.getClientConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
var apigeeNetwork = new Network("apigeeNetwork", NetworkArgs.builder()
.name("apigee-network")
.build());
var apigeeRange = new GlobalAddress("apigeeRange", GlobalAddressArgs.builder()
.name("apigee-range")
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(apigeeNetwork.id())
.build());
var apigeeVpcConnection = new Connection("apigeeVpcConnection", ConnectionArgs.builder()
.network(apigeeNetwork.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(apigeeRange.name())
.build());
var apigeeOrg = new Organization("apigeeOrg", OrganizationArgs.builder()
.analyticsRegion("us-central1")
.projectId(current.project())
.authorizedNetwork(apigeeNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeVpcConnection)
.build());
var env = new Environment("env", EnvironmentArgs.builder()
.name("my-environment")
.description("Apigee Environment")
.displayName("environment-1")
.orgId(apigeeOrg.id())
.build());
var apigeeOrgSecurityAddonsConfig = new AddonsConfig("apigeeOrgSecurityAddonsConfig", AddonsConfigArgs.builder()
.org(apigeeOrg.name())
.addonsConfig(AddonsConfigAddonsConfigArgs.builder()
.apiSecurityConfig(AddonsConfigAddonsConfigApiSecurityConfigArgs.builder()
.enabled(true)
.build())
.build())
.build());
var securityMonitoringCondition = new SecurityMonitoringCondition("securityMonitoringCondition", SecurityMonitoringConditionArgs.builder()
.conditionId("my-condition")
.orgId(apigeeOrg.id())
.profile("google-default")
.scope("my-environment")
.includeAllResources(SecurityMonitoringConditionIncludeAllResourcesArgs.builder()
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(apigeeOrgSecurityAddonsConfig)
.build());
}
}
resources:
apigeeNetwork:
type: gcp:compute:Network
name: apigee_network
properties:
name: apigee-network
apigeeRange:
type: gcp:compute:GlobalAddress
name: apigee_range
properties:
name: apigee-range
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: ${apigeeNetwork.id}
apigeeVpcConnection:
type: gcp:servicenetworking:Connection
name: apigee_vpc_connection
properties:
network: ${apigeeNetwork.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${apigeeRange.name}
apigeeOrg:
type: gcp:apigee:Organization
name: apigee_org
properties:
analyticsRegion: us-central1
projectId: ${current.project}
authorizedNetwork: ${apigeeNetwork.id}
options:
dependsOn:
- ${apigeeVpcConnection}
env:
type: gcp:apigee:Environment
properties:
name: my-environment
description: Apigee Environment
displayName: environment-1
orgId: ${apigeeOrg.id}
apigeeOrgSecurityAddonsConfig:
type: gcp:apigee:AddonsConfig
name: apigee_org_security_addons_config
properties:
org: ${apigeeOrg.name}
addonsConfig:
apiSecurityConfig:
enabled: true
securityMonitoringCondition:
type: gcp:apigee:SecurityMonitoringCondition
name: security_monitoring_condition
properties:
conditionId: my-condition
orgId: ${apigeeOrg.id}
profile: google-default
scope: my-environment
includeAllResources: {}
options:
dependsOn:
- ${apigeeOrgSecurityAddonsConfig}
variables:
current:
fn::invoke:
function: gcp:organizations:getClientConfig
arguments: {}
Create SecurityMonitoringCondition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityMonitoringCondition(name: string, args: SecurityMonitoringConditionArgs, opts?: CustomResourceOptions);
@overload
def SecurityMonitoringCondition(resource_name: str,
args: SecurityMonitoringConditionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityMonitoringCondition(resource_name: str,
opts: Optional[ResourceOptions] = None,
condition_id: Optional[str] = None,
org_id: Optional[str] = None,
profile: Optional[str] = None,
scope: Optional[str] = None,
include_all_resources: Optional[SecurityMonitoringConditionIncludeAllResourcesArgs] = None)
func NewSecurityMonitoringCondition(ctx *Context, name string, args SecurityMonitoringConditionArgs, opts ...ResourceOption) (*SecurityMonitoringCondition, error)
public SecurityMonitoringCondition(string name, SecurityMonitoringConditionArgs args, CustomResourceOptions? opts = null)
public SecurityMonitoringCondition(String name, SecurityMonitoringConditionArgs args)
public SecurityMonitoringCondition(String name, SecurityMonitoringConditionArgs args, CustomResourceOptions options)
type: gcp:apigee:SecurityMonitoringCondition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecurityMonitoringConditionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecurityMonitoringConditionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityMonitoringConditionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityMonitoringConditionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityMonitoringConditionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var securityMonitoringConditionResource = new Gcp.Apigee.SecurityMonitoringCondition("securityMonitoringConditionResource", new()
{
ConditionId = "string",
OrgId = "string",
Profile = "string",
Scope = "string",
IncludeAllResources = null,
});
example, err := apigee.NewSecurityMonitoringCondition(ctx, "securityMonitoringConditionResource", &apigee.SecurityMonitoringConditionArgs{
ConditionId: pulumi.String("string"),
OrgId: pulumi.String("string"),
Profile: pulumi.String("string"),
Scope: pulumi.String("string"),
IncludeAllResources: &apigee.SecurityMonitoringConditionIncludeAllResourcesArgs{},
})
var securityMonitoringConditionResource = new SecurityMonitoringCondition("securityMonitoringConditionResource", SecurityMonitoringConditionArgs.builder()
.conditionId("string")
.orgId("string")
.profile("string")
.scope("string")
.includeAllResources(SecurityMonitoringConditionIncludeAllResourcesArgs.builder()
.build())
.build());
security_monitoring_condition_resource = gcp.apigee.SecurityMonitoringCondition("securityMonitoringConditionResource",
condition_id="string",
org_id="string",
profile="string",
scope="string",
include_all_resources={})
const securityMonitoringConditionResource = new gcp.apigee.SecurityMonitoringCondition("securityMonitoringConditionResource", {
conditionId: "string",
orgId: "string",
profile: "string",
scope: "string",
includeAllResources: {},
});
type: gcp:apigee:SecurityMonitoringCondition
properties:
conditionId: string
includeAllResources: {}
orgId: string
profile: string
scope: string
SecurityMonitoringCondition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecurityMonitoringCondition resource accepts the following input properties:
- Condition
Id string - Resource ID of the security monitoring condition.
- Org
Id string - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - Profile string
- ID of security profile of the security monitoring condition.
- Scope string
- ID of security profile of the security monitoring condition.
- Include
All SecurityResources Monitoring Condition Include All Resources - A nested object resource.
- Condition
Id string - Resource ID of the security monitoring condition.
- Org
Id string - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - Profile string
- ID of security profile of the security monitoring condition.
- Scope string
- ID of security profile of the security monitoring condition.
- Include
All SecurityResources Monitoring Condition Include All Resources Args - A nested object resource.
- condition
Id String - Resource ID of the security monitoring condition.
- org
Id String - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile String
- ID of security profile of the security monitoring condition.
- scope String
- ID of security profile of the security monitoring condition.
- include
All SecurityResources Monitoring Condition Include All Resources - A nested object resource.
- condition
Id string - Resource ID of the security monitoring condition.
- org
Id string - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile string
- ID of security profile of the security monitoring condition.
- scope string
- ID of security profile of the security monitoring condition.
- include
All SecurityResources Monitoring Condition Include All Resources - A nested object resource.
- condition_
id str - Resource ID of the security monitoring condition.
- org_
id str - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile str
- ID of security profile of the security monitoring condition.
- scope str
- ID of security profile of the security monitoring condition.
- include_
all_ Securityresources Monitoring Condition Include All Resources Args - A nested object resource.
- condition
Id String - Resource ID of the security monitoring condition.
- org
Id String - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile String
- ID of security profile of the security monitoring condition.
- scope String
- ID of security profile of the security monitoring condition.
- include
All Property MapResources - A nested object resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityMonitoringCondition resource produces the following output properties:
- Create
Time string - The timestamp at which this profile was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - Total
Deployed intResources - Total number of deployed resources within scope.
- Total
Monitored intResources - Total number of monitored resources within this condition.
- Update
Time string - The timestamp at which this profile was most recently updated.
- Create
Time string - The timestamp at which this profile was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - Total
Deployed intResources - Total number of deployed resources within scope.
- Total
Monitored intResources - Total number of monitored resources within this condition.
- Update
Time string - The timestamp at which this profile was most recently updated.
- create
Time String - The timestamp at which this profile was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - total
Deployed IntegerResources - Total number of deployed resources within scope.
- total
Monitored IntegerResources - Total number of monitored resources within this condition.
- update
Time String - The timestamp at which this profile was most recently updated.
- create
Time string - The timestamp at which this profile was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - total
Deployed numberResources - Total number of deployed resources within scope.
- total
Monitored numberResources - Total number of monitored resources within this condition.
- update
Time string - The timestamp at which this profile was most recently updated.
- create_
time str - The timestamp at which this profile was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - total_
deployed_ intresources - Total number of deployed resources within scope.
- total_
monitored_ intresources - Total number of monitored resources within this condition.
- update_
time str - The timestamp at which this profile was most recently updated.
- create
Time String - The timestamp at which this profile was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - total
Deployed NumberResources - Total number of deployed resources within scope.
- total
Monitored NumberResources - Total number of monitored resources within this condition.
- update
Time String - The timestamp at which this profile was most recently updated.
Look up Existing SecurityMonitoringCondition Resource
Get an existing SecurityMonitoringCondition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityMonitoringConditionState, opts?: CustomResourceOptions): SecurityMonitoringCondition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
condition_id: Optional[str] = None,
create_time: Optional[str] = None,
include_all_resources: Optional[SecurityMonitoringConditionIncludeAllResourcesArgs] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
profile: Optional[str] = None,
scope: Optional[str] = None,
total_deployed_resources: Optional[int] = None,
total_monitored_resources: Optional[int] = None,
update_time: Optional[str] = None) -> SecurityMonitoringCondition
func GetSecurityMonitoringCondition(ctx *Context, name string, id IDInput, state *SecurityMonitoringConditionState, opts ...ResourceOption) (*SecurityMonitoringCondition, error)
public static SecurityMonitoringCondition Get(string name, Input<string> id, SecurityMonitoringConditionState? state, CustomResourceOptions? opts = null)
public static SecurityMonitoringCondition get(String name, Output<String> id, SecurityMonitoringConditionState state, CustomResourceOptions options)
resources: _: type: gcp:apigee:SecurityMonitoringCondition get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Condition
Id string - Resource ID of the security monitoring condition.
- Create
Time string - The timestamp at which this profile was created.
- Include
All SecurityResources Monitoring Condition Include All Resources - A nested object resource.
- Name string
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - Org
Id string - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - Profile string
- ID of security profile of the security monitoring condition.
- Scope string
- ID of security profile of the security monitoring condition.
- Total
Deployed intResources - Total number of deployed resources within scope.
- Total
Monitored intResources - Total number of monitored resources within this condition.
- Update
Time string - The timestamp at which this profile was most recently updated.
- Condition
Id string - Resource ID of the security monitoring condition.
- Create
Time string - The timestamp at which this profile was created.
- Include
All SecurityResources Monitoring Condition Include All Resources Args - A nested object resource.
- Name string
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - Org
Id string - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - Profile string
- ID of security profile of the security monitoring condition.
- Scope string
- ID of security profile of the security monitoring condition.
- Total
Deployed intResources - Total number of deployed resources within scope.
- Total
Monitored intResources - Total number of monitored resources within this condition.
- Update
Time string - The timestamp at which this profile was most recently updated.
- condition
Id String - Resource ID of the security monitoring condition.
- create
Time String - The timestamp at which this profile was created.
- include
All SecurityResources Monitoring Condition Include All Resources - A nested object resource.
- name String
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - org
Id String - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile String
- ID of security profile of the security monitoring condition.
- scope String
- ID of security profile of the security monitoring condition.
- total
Deployed IntegerResources - Total number of deployed resources within scope.
- total
Monitored IntegerResources - Total number of monitored resources within this condition.
- update
Time String - The timestamp at which this profile was most recently updated.
- condition
Id string - Resource ID of the security monitoring condition.
- create
Time string - The timestamp at which this profile was created.
- include
All SecurityResources Monitoring Condition Include All Resources - A nested object resource.
- name string
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - org
Id string - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile string
- ID of security profile of the security monitoring condition.
- scope string
- ID of security profile of the security monitoring condition.
- total
Deployed numberResources - Total number of deployed resources within scope.
- total
Monitored numberResources - Total number of monitored resources within this condition.
- update
Time string - The timestamp at which this profile was most recently updated.
- condition_
id str - Resource ID of the security monitoring condition.
- create_
time str - The timestamp at which this profile was created.
- include_
all_ Securityresources Monitoring Condition Include All Resources Args - A nested object resource.
- name str
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - org_
id str - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile str
- ID of security profile of the security monitoring condition.
- scope str
- ID of security profile of the security monitoring condition.
- total_
deployed_ intresources - Total number of deployed resources within scope.
- total_
monitored_ intresources - Total number of monitored resources within this condition.
- update_
time str - The timestamp at which this profile was most recently updated.
- condition
Id String - Resource ID of the security monitoring condition.
- create
Time String - The timestamp at which this profile was created.
- include
All Property MapResources - A nested object resource.
- name String
- Name of the security monitoring condition resource,
in the format
organizations/{{org_name}}/securityMonitoringConditions/{{condition_id}}
. - org
Id String - The Apigee Organization associated with the Apigee Security Monitoring Condition,
in the format
organizations/{{org_name}}
. - profile String
- ID of security profile of the security monitoring condition.
- scope String
- ID of security profile of the security monitoring condition.
- total
Deployed NumberResources - Total number of deployed resources within scope.
- total
Monitored NumberResources - Total number of monitored resources within this condition.
- update
Time String - The timestamp at which this profile was most recently updated.
Import
SecurityMonitoringCondition can be imported using any of these accepted formats:
{{org_id}}/securityMonitoringConditions/{{condition_id}}
{{org_id}}/{{condition_id}}
When using the pulumi import
command, SecurityMonitoringCondition can be imported using one of the formats above. For example:
$ pulumi import gcp:apigee/securityMonitoringCondition:SecurityMonitoringCondition default {{org_id}}/securityMonitoringConditions/{{condition_id}}
$ pulumi import gcp:apigee/securityMonitoringCondition:SecurityMonitoringCondition default {{org_id}}/{{condition_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.