1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudBridge
  5. AssetSource
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi

oci.CloudBridge.AssetSource

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi

    This resource provides the Asset Source resource in Oracle Cloud Infrastructure Cloud Bridge service.

    Creates an asset source.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAssetSource = new Oci.CloudBridge.AssetSource("testAssetSource", new()
        {
            AssetsCompartmentId = oci_identity_compartment.Test_compartment.Id,
            CompartmentId = @var.Compartment_id,
            DiscoveryCredentials = new Oci.CloudBridge.Inputs.AssetSourceDiscoveryCredentialsArgs
            {
                SecretId = oci_vault_secret.Test_secret.Id,
                Type = @var.Asset_source_discovery_credentials_type,
            },
            EnvironmentId = oci_cloud_bridge_environment.Test_environment.Id,
            InventoryId = oci_cloud_bridge_inventory.Test_inventory.Id,
            Type = @var.Asset_source_type,
            VcenterEndpoint = @var.Asset_source_vcenter_endpoint,
            AreHistoricalMetricsCollected = @var.Asset_source_are_historical_metrics_collected,
            AreRealtimeMetricsCollected = @var.Asset_source_are_realtime_metrics_collected,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DiscoveryScheduleId = oci_cloud_bridge_discovery_schedule.Test_discovery_schedule.Id,
            DisplayName = @var.Asset_source_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            ReplicationCredentials = new Oci.CloudBridge.Inputs.AssetSourceReplicationCredentialsArgs
            {
                SecretId = oci_vault_secret.Test_secret.Id,
                Type = @var.Asset_source_replication_credentials_type,
            },
            SystemTags = @var.Asset_source_system_tags,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudBridge"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudBridge.NewAssetSource(ctx, "testAssetSource", &CloudBridge.AssetSourceArgs{
    			AssetsCompartmentId: pulumi.Any(oci_identity_compartment.Test_compartment.Id),
    			CompartmentId:       pulumi.Any(_var.Compartment_id),
    			DiscoveryCredentials: &cloudbridge.AssetSourceDiscoveryCredentialsArgs{
    				SecretId: pulumi.Any(oci_vault_secret.Test_secret.Id),
    				Type:     pulumi.Any(_var.Asset_source_discovery_credentials_type),
    			},
    			EnvironmentId:                 pulumi.Any(oci_cloud_bridge_environment.Test_environment.Id),
    			InventoryId:                   pulumi.Any(oci_cloud_bridge_inventory.Test_inventory.Id),
    			Type:                          pulumi.Any(_var.Asset_source_type),
    			VcenterEndpoint:               pulumi.Any(_var.Asset_source_vcenter_endpoint),
    			AreHistoricalMetricsCollected: pulumi.Any(_var.Asset_source_are_historical_metrics_collected),
    			AreRealtimeMetricsCollected:   pulumi.Any(_var.Asset_source_are_realtime_metrics_collected),
    			DefinedTags: pulumi.AnyMap{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DiscoveryScheduleId: pulumi.Any(oci_cloud_bridge_discovery_schedule.Test_discovery_schedule.Id),
    			DisplayName:         pulumi.Any(_var.Asset_source_display_name),
    			FreeformTags: pulumi.AnyMap{
    				"Department": pulumi.Any("Finance"),
    			},
    			ReplicationCredentials: &cloudbridge.AssetSourceReplicationCredentialsArgs{
    				SecretId: pulumi.Any(oci_vault_secret.Test_secret.Id),
    				Type:     pulumi.Any(_var.Asset_source_replication_credentials_type),
    			},
    			SystemTags: pulumi.Any(_var.Asset_source_system_tags),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudBridge.AssetSource;
    import com.pulumi.oci.CloudBridge.AssetSourceArgs;
    import com.pulumi.oci.CloudBridge.inputs.AssetSourceDiscoveryCredentialsArgs;
    import com.pulumi.oci.CloudBridge.inputs.AssetSourceReplicationCredentialsArgs;
    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) {
            var testAssetSource = new AssetSource("testAssetSource", AssetSourceArgs.builder()        
                .assetsCompartmentId(oci_identity_compartment.test_compartment().id())
                .compartmentId(var_.compartment_id())
                .discoveryCredentials(AssetSourceDiscoveryCredentialsArgs.builder()
                    .secretId(oci_vault_secret.test_secret().id())
                    .type(var_.asset_source_discovery_credentials_type())
                    .build())
                .environmentId(oci_cloud_bridge_environment.test_environment().id())
                .inventoryId(oci_cloud_bridge_inventory.test_inventory().id())
                .type(var_.asset_source_type())
                .vcenterEndpoint(var_.asset_source_vcenter_endpoint())
                .areHistoricalMetricsCollected(var_.asset_source_are_historical_metrics_collected())
                .areRealtimeMetricsCollected(var_.asset_source_are_realtime_metrics_collected())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .discoveryScheduleId(oci_cloud_bridge_discovery_schedule.test_discovery_schedule().id())
                .displayName(var_.asset_source_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .replicationCredentials(AssetSourceReplicationCredentialsArgs.builder()
                    .secretId(oci_vault_secret.test_secret().id())
                    .type(var_.asset_source_replication_credentials_type())
                    .build())
                .systemTags(var_.asset_source_system_tags())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_asset_source = oci.cloud_bridge.AssetSource("testAssetSource",
        assets_compartment_id=oci_identity_compartment["test_compartment"]["id"],
        compartment_id=var["compartment_id"],
        discovery_credentials=oci.cloud_bridge.AssetSourceDiscoveryCredentialsArgs(
            secret_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
            type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
        ),
        environment_id=oci_cloud_bridge_environment["test_environment"]["id"],
        inventory_id=oci_cloud_bridge_inventory["test_inventory"]["id"],
        type=var["asset_source_type"],
        vcenter_endpoint=var["asset_source_vcenter_endpoint"],
        are_historical_metrics_collected=var["asset_source_are_historical_metrics_collected"],
        are_realtime_metrics_collected=var["asset_source_are_realtime_metrics_collected"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        discovery_schedule_id=oci_cloud_bridge_discovery_schedule["test_discovery_schedule"]["id"],
        display_name=var["asset_source_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        replication_credentials=oci.cloud_bridge.AssetSourceReplicationCredentialsArgs(
            secret_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
            type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
        ),
        system_tags=var["asset_source_system_tags"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAssetSource = new oci.cloudbridge.AssetSource("testAssetSource", {
        assetsCompartmentId: oci_identity_compartment.test_compartment.id,
        compartmentId: _var.compartment_id,
        discoveryCredentials: {
            secretId: oci_vault_secret.test_secret.id,
            type: _var.asset_source_discovery_credentials_type,
        },
        environmentId: oci_cloud_bridge_environment.test_environment.id,
        inventoryId: oci_cloud_bridge_inventory.test_inventory.id,
        type: _var.asset_source_type,
        vcenterEndpoint: _var.asset_source_vcenter_endpoint,
        areHistoricalMetricsCollected: _var.asset_source_are_historical_metrics_collected,
        areRealtimeMetricsCollected: _var.asset_source_are_realtime_metrics_collected,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        discoveryScheduleId: oci_cloud_bridge_discovery_schedule.test_discovery_schedule.id,
        displayName: _var.asset_source_display_name,
        freeformTags: {
            Department: "Finance",
        },
        replicationCredentials: {
            secretId: oci_vault_secret.test_secret.id,
            type: _var.asset_source_replication_credentials_type,
        },
        systemTags: _var.asset_source_system_tags,
    });
    
    resources:
      testAssetSource:
        type: oci:CloudBridge:AssetSource
        properties:
          #Required
          assetsCompartmentId: ${oci_identity_compartment.test_compartment.id}
          compartmentId: ${var.compartment_id}
          discoveryCredentials:
            secretId: ${oci_vault_secret.test_secret.id}
            type: ${var.asset_source_discovery_credentials_type}
          environmentId: ${oci_cloud_bridge_environment.test_environment.id}
          inventoryId: ${oci_cloud_bridge_inventory.test_inventory.id}
          type: ${var.asset_source_type}
          vcenterEndpoint: ${var.asset_source_vcenter_endpoint}
          #Optional
          areHistoricalMetricsCollected: ${var.asset_source_are_historical_metrics_collected}
          areRealtimeMetricsCollected: ${var.asset_source_are_realtime_metrics_collected}
          definedTags:
            Operations.CostCenter: '42'
          discoveryScheduleId: ${oci_cloud_bridge_discovery_schedule.test_discovery_schedule.id}
          displayName: ${var.asset_source_display_name}
          freeformTags:
            Department: Finance
          replicationCredentials:
            secretId: ${oci_vault_secret.test_secret.id}
            type: ${var.asset_source_replication_credentials_type}
          systemTags: ${var.asset_source_system_tags}
    

    Create AssetSource Resource

    new AssetSource(name: string, args: AssetSourceArgs, opts?: CustomResourceOptions);
    @overload
    def AssetSource(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    are_historical_metrics_collected: Optional[bool] = None,
                    are_realtime_metrics_collected: Optional[bool] = None,
                    assets_compartment_id: Optional[str] = None,
                    compartment_id: Optional[str] = None,
                    defined_tags: Optional[Mapping[str, Any]] = None,
                    discovery_credentials: Optional[_cloudbridge.AssetSourceDiscoveryCredentialsArgs] = None,
                    discovery_schedule_id: Optional[str] = None,
                    display_name: Optional[str] = None,
                    environment_id: Optional[str] = None,
                    freeform_tags: Optional[Mapping[str, Any]] = None,
                    inventory_id: Optional[str] = None,
                    replication_credentials: Optional[_cloudbridge.AssetSourceReplicationCredentialsArgs] = None,
                    system_tags: Optional[Mapping[str, Any]] = None,
                    type: Optional[str] = None,
                    vcenter_endpoint: Optional[str] = None)
    @overload
    def AssetSource(resource_name: str,
                    args: AssetSourceArgs,
                    opts: Optional[ResourceOptions] = None)
    func NewAssetSource(ctx *Context, name string, args AssetSourceArgs, opts ...ResourceOption) (*AssetSource, error)
    public AssetSource(string name, AssetSourceArgs args, CustomResourceOptions? opts = null)
    public AssetSource(String name, AssetSourceArgs args)
    public AssetSource(String name, AssetSourceArgs args, CustomResourceOptions options)
    
    type: oci:CloudBridge:AssetSource
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AssetSourceArgs
    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 AssetSourceArgs
    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 AssetSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AssetSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AssetSourceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AssetSource Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AssetSource resource accepts the following input properties:

    AssetsCompartmentId string

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    CompartmentId string

    (Updatable) The OCID of the compartment for the resource.

    DiscoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    EnvironmentId string

    The OCID of the environment.

    InventoryId string

    The OCID of the inventory that will contain created assets.

    Type string

    (Updatable) Asset source type.

    VcenterEndpoint string

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AreHistoricalMetricsCollected bool

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    AreRealtimeMetricsCollected bool

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    DefinedTags Dictionary<string, object>

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    DiscoveryScheduleId string

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    DisplayName string

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    FreeformTags Dictionary<string, object>

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    ReplicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    SystemTags Dictionary<string, object>

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    AssetsCompartmentId string

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    CompartmentId string

    (Updatable) The OCID of the compartment for the resource.

    DiscoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    EnvironmentId string

    The OCID of the environment.

    InventoryId string

    The OCID of the inventory that will contain created assets.

    Type string

    (Updatable) Asset source type.

    VcenterEndpoint string

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AreHistoricalMetricsCollected bool

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    AreRealtimeMetricsCollected bool

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    DefinedTags map[string]interface{}

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    DiscoveryScheduleId string

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    DisplayName string

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    FreeformTags map[string]interface{}

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    ReplicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    SystemTags map[string]interface{}

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    assetsCompartmentId String

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartmentId String

    (Updatable) The OCID of the compartment for the resource.

    discoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    environmentId String

    The OCID of the environment.

    inventoryId String

    The OCID of the inventory that will contain created assets.

    type String

    (Updatable) Asset source type.

    vcenterEndpoint String

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    areHistoricalMetricsCollected Boolean

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    areRealtimeMetricsCollected Boolean

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    definedTags Map<String,Object>

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discoveryScheduleId String

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    displayName String

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    freeformTags Map<String,Object>

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    replicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    systemTags Map<String,Object>

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    assetsCompartmentId string

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartmentId string

    (Updatable) The OCID of the compartment for the resource.

    discoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    environmentId string

    The OCID of the environment.

    inventoryId string

    The OCID of the inventory that will contain created assets.

    type string

    (Updatable) Asset source type.

    vcenterEndpoint string

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    areHistoricalMetricsCollected boolean

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    areRealtimeMetricsCollected boolean

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    definedTags {[key: string]: any}

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discoveryScheduleId string

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    displayName string

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    freeformTags {[key: string]: any}

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    replicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    systemTags {[key: string]: any}

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    assets_compartment_id str

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartment_id str

    (Updatable) The OCID of the compartment for the resource.

    discovery_credentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    environment_id str

    The OCID of the environment.

    inventory_id str

    The OCID of the inventory that will contain created assets.

    type str

    (Updatable) Asset source type.

    vcenter_endpoint str

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    are_historical_metrics_collected bool

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    are_realtime_metrics_collected bool

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    defined_tags Mapping[str, Any]

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discovery_schedule_id str

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    display_name str

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    freeform_tags Mapping[str, Any]

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    replication_credentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    system_tags Mapping[str, Any]

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    assetsCompartmentId String

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartmentId String

    (Updatable) The OCID of the compartment for the resource.

    discoveryCredentials Property Map

    (Updatable) Credentials for an asset source.

    environmentId String

    The OCID of the environment.

    inventoryId String

    The OCID of the inventory that will contain created assets.

    type String

    (Updatable) Asset source type.

    vcenterEndpoint String

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    areHistoricalMetricsCollected Boolean

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    areRealtimeMetricsCollected Boolean

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    definedTags Map<Any>

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discoveryScheduleId String

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    displayName String

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    freeformTags Map<Any>

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    replicationCredentials Property Map

    (Updatable) Credentials for an asset source.

    systemTags Map<Any>

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AssetSource resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    LifecycleDetails string

    The detailed state of the asset source.

    State string

    The current state of the asset source.

    TimeCreated string

    The time when the asset source was created in the RFC3339 format.

    TimeUpdated string

    The point in time that the asset source was last updated in the RFC3339 format.

    Id string

    The provider-assigned unique ID for this managed resource.

    LifecycleDetails string

    The detailed state of the asset source.

    State string

    The current state of the asset source.

    TimeCreated string

    The time when the asset source was created in the RFC3339 format.

    TimeUpdated string

    The point in time that the asset source was last updated in the RFC3339 format.

    id String

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails String

    The detailed state of the asset source.

    state String

    The current state of the asset source.

    timeCreated String

    The time when the asset source was created in the RFC3339 format.

    timeUpdated String

    The point in time that the asset source was last updated in the RFC3339 format.

    id string

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails string

    The detailed state of the asset source.

    state string

    The current state of the asset source.

    timeCreated string

    The time when the asset source was created in the RFC3339 format.

    timeUpdated string

    The point in time that the asset source was last updated in the RFC3339 format.

    id str

    The provider-assigned unique ID for this managed resource.

    lifecycle_details str

    The detailed state of the asset source.

    state str

    The current state of the asset source.

    time_created str

    The time when the asset source was created in the RFC3339 format.

    time_updated str

    The point in time that the asset source was last updated in the RFC3339 format.

    id String

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails String

    The detailed state of the asset source.

    state String

    The current state of the asset source.

    timeCreated String

    The time when the asset source was created in the RFC3339 format.

    timeUpdated String

    The point in time that the asset source was last updated in the RFC3339 format.

    Look up Existing AssetSource Resource

    Get an existing AssetSource 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?: AssetSourceState, opts?: CustomResourceOptions): AssetSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            are_historical_metrics_collected: Optional[bool] = None,
            are_realtime_metrics_collected: Optional[bool] = None,
            assets_compartment_id: Optional[str] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            discovery_credentials: Optional[_cloudbridge.AssetSourceDiscoveryCredentialsArgs] = None,
            discovery_schedule_id: Optional[str] = None,
            display_name: Optional[str] = None,
            environment_id: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            inventory_id: Optional[str] = None,
            lifecycle_details: Optional[str] = None,
            replication_credentials: Optional[_cloudbridge.AssetSourceReplicationCredentialsArgs] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            type: Optional[str] = None,
            vcenter_endpoint: Optional[str] = None) -> AssetSource
    func GetAssetSource(ctx *Context, name string, id IDInput, state *AssetSourceState, opts ...ResourceOption) (*AssetSource, error)
    public static AssetSource Get(string name, Input<string> id, AssetSourceState? state, CustomResourceOptions? opts = null)
    public static AssetSource get(String name, Output<String> id, AssetSourceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AreHistoricalMetricsCollected bool

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    AreRealtimeMetricsCollected bool

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    AssetsCompartmentId string

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    CompartmentId string

    (Updatable) The OCID of the compartment for the resource.

    DefinedTags Dictionary<string, object>

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    DiscoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    DiscoveryScheduleId string

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    DisplayName string

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    EnvironmentId string

    The OCID of the environment.

    FreeformTags Dictionary<string, object>

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    InventoryId string

    The OCID of the inventory that will contain created assets.

    LifecycleDetails string

    The detailed state of the asset source.

    ReplicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    State string

    The current state of the asset source.

    SystemTags Dictionary<string, object>

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    TimeCreated string

    The time when the asset source was created in the RFC3339 format.

    TimeUpdated string

    The point in time that the asset source was last updated in the RFC3339 format.

    Type string

    (Updatable) Asset source type.

    VcenterEndpoint string

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AreHistoricalMetricsCollected bool

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    AreRealtimeMetricsCollected bool

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    AssetsCompartmentId string

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    CompartmentId string

    (Updatable) The OCID of the compartment for the resource.

    DefinedTags map[string]interface{}

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    DiscoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    DiscoveryScheduleId string

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    DisplayName string

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    EnvironmentId string

    The OCID of the environment.

    FreeformTags map[string]interface{}

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    InventoryId string

    The OCID of the inventory that will contain created assets.

    LifecycleDetails string

    The detailed state of the asset source.

    ReplicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    State string

    The current state of the asset source.

    SystemTags map[string]interface{}

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    TimeCreated string

    The time when the asset source was created in the RFC3339 format.

    TimeUpdated string

    The point in time that the asset source was last updated in the RFC3339 format.

    Type string

    (Updatable) Asset source type.

    VcenterEndpoint string

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    areHistoricalMetricsCollected Boolean

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    areRealtimeMetricsCollected Boolean

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    assetsCompartmentId String

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartmentId String

    (Updatable) The OCID of the compartment for the resource.

    definedTags Map<String,Object>

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    discoveryScheduleId String

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    displayName String

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    environmentId String

    The OCID of the environment.

    freeformTags Map<String,Object>

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    inventoryId String

    The OCID of the inventory that will contain created assets.

    lifecycleDetails String

    The detailed state of the asset source.

    replicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    state String

    The current state of the asset source.

    systemTags Map<String,Object>

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    timeCreated String

    The time when the asset source was created in the RFC3339 format.

    timeUpdated String

    The point in time that the asset source was last updated in the RFC3339 format.

    type String

    (Updatable) Asset source type.

    vcenterEndpoint String

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    areHistoricalMetricsCollected boolean

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    areRealtimeMetricsCollected boolean

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    assetsCompartmentId string

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartmentId string

    (Updatable) The OCID of the compartment for the resource.

    definedTags {[key: string]: any}

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discoveryCredentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    discoveryScheduleId string

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    displayName string

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    environmentId string

    The OCID of the environment.

    freeformTags {[key: string]: any}

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    inventoryId string

    The OCID of the inventory that will contain created assets.

    lifecycleDetails string

    The detailed state of the asset source.

    replicationCredentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    state string

    The current state of the asset source.

    systemTags {[key: string]: any}

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    timeCreated string

    The time when the asset source was created in the RFC3339 format.

    timeUpdated string

    The point in time that the asset source was last updated in the RFC3339 format.

    type string

    (Updatable) Asset source type.

    vcenterEndpoint string

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    are_historical_metrics_collected bool

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    are_realtime_metrics_collected bool

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    assets_compartment_id str

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartment_id str

    (Updatable) The OCID of the compartment for the resource.

    defined_tags Mapping[str, Any]

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discovery_credentials AssetSourceDiscoveryCredentialsArgs

    (Updatable) Credentials for an asset source.

    discovery_schedule_id str

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    display_name str

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    environment_id str

    The OCID of the environment.

    freeform_tags Mapping[str, Any]

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    inventory_id str

    The OCID of the inventory that will contain created assets.

    lifecycle_details str

    The detailed state of the asset source.

    replication_credentials AssetSourceReplicationCredentialsArgs

    (Updatable) Credentials for an asset source.

    state str

    The current state of the asset source.

    system_tags Mapping[str, Any]

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    time_created str

    The time when the asset source was created in the RFC3339 format.

    time_updated str

    The point in time that the asset source was last updated in the RFC3339 format.

    type str

    (Updatable) Asset source type.

    vcenter_endpoint str

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    areHistoricalMetricsCollected Boolean

    (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.

    areRealtimeMetricsCollected Boolean

    (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.

    assetsCompartmentId String

    (Updatable) The OCID of the compartment that is going to be used to create assets.

    compartmentId String

    (Updatable) The OCID of the compartment for the resource.

    definedTags Map<Any>

    (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

    discoveryCredentials Property Map

    (Updatable) Credentials for an asset source.

    discoveryScheduleId String

    (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.

    displayName String

    (Updatable) A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information. The name is generated by the service if it is not explicitly provided.

    environmentId String

    The OCID of the environment.

    freeformTags Map<Any>

    (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}

    inventoryId String

    The OCID of the inventory that will contain created assets.

    lifecycleDetails String

    The detailed state of the asset source.

    replicationCredentials Property Map

    (Updatable) Credentials for an asset source.

    state String

    The current state of the asset source.

    systemTags Map<Any>

    (Updatable) The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

    timeCreated String

    The time when the asset source was created in the RFC3339 format.

    timeUpdated String

    The point in time that the asset source was last updated in the RFC3339 format.

    type String

    (Updatable) Asset source type.

    vcenterEndpoint String

    (Updatable) Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Supporting Types

    AssetSourceDiscoveryCredentials

    SecretId string

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    Type string

    (Updatable) Asset source type.

    SecretId string

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    Type string

    (Updatable) Asset source type.

    secretId String

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type String

    (Updatable) Asset source type.

    secretId string

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type string

    (Updatable) Asset source type.

    secret_id str

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type str

    (Updatable) Asset source type.

    secretId String

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type String

    (Updatable) Asset source type.

    AssetSourceReplicationCredentials

    SecretId string

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    Type string

    (Updatable) Asset source type.

    SecretId string

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    Type string

    (Updatable) Asset source type.

    secretId String

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type String

    (Updatable) Asset source type.

    secretId string

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type string

    (Updatable) Asset source type.

    secret_id str

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type str

    (Updatable) Asset source type.

    secretId String

    (Updatable) The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of { "username": "", "password": "" }`.

    type String

    (Updatable) Asset source type.

    Import

    AssetSources can be imported using the id, e.g.

     $ pulumi import oci:CloudBridge/assetSource:AssetSource test_asset_source "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the oci Terraform Provider.

    oci logo
    Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi