Class CreateFlowLogCollectorOptions

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class CreateFlowLogCollectorOptions
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    The createFlowLogCollector options.
    • Method Detail

      • storageBucket

        public LegacyCloudObjectStorageBucketIdentity storageBucket()
        Gets the storageBucket. The Cloud Object Storage bucket where the collected flows will be logged. The bucket must exist and an IAM service authorization must grant `IBM Cloud Flow Logs` resources of `VPC Infrastructure Services` writer access to the bucket. For more information, see [Creating a flow log collector](https://cloud.ibm.com/docs/vpc?topic=vpc-ordering-flow-log-collector).
        Returns:
        the storageBucket
      • target

        public FlowLogCollectorTargetPrototype target()
        Gets the target. The target this collector will collect flow logs for. If the target is an instance, subnet, or VPC, flow logs will not be collected for any instance network attachments, virtual network interfaces or instance network interfaces within the target that are themselves the target of a more specific flow log collector. The target must not be a virtual network interface that is attached to a bare metal server network attachment or to a file share mount target.
        Returns:
        the target
      • active

        public Boolean active()
        Gets the active. Indicates whether this collector will be active upon creation.
        Returns:
        the active
      • name

        public String name()
        Gets the name. The name for this flow log collector. The name must not be used by another flow log collector in the VPC. If unspecified, the name will be a hyphenated list of randomly-selected words.
        Returns:
        the name
      • resourceGroup

        public ResourceGroupIdentity resourceGroup()
        Gets the resourceGroup. The resource group to use. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) will be used.
        Returns:
        the resourceGroup