oci.CloudBridge.AssetSource
Explore with Pulumi AI
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:
- Assets
Compartment stringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- Compartment
Id string (Updatable) The OCID of the compartment for the resource.
- Discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- Environment
Id string The OCID of the environment.
- Inventory
Id string The OCID of the inventory that will contain created assets.
- Type string
(Updatable) Asset source type.
- Vcenter
Endpoint 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 boolMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- Are
Realtime boolMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- 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"}
- Discovery
Schedule stringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- Display
Name 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.
- 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"}
- Replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- 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}}
- Assets
Compartment stringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- Compartment
Id string (Updatable) The OCID of the compartment for the resource.
- Discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- Environment
Id string The OCID of the environment.
- Inventory
Id string The OCID of the inventory that will contain created assets.
- Type string
(Updatable) Asset source type.
- Vcenter
Endpoint 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 boolMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- Are
Realtime boolMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- 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"}
- Discovery
Schedule stringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- Display
Name 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.
- 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"}
- Replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- 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}}
- assets
Compartment StringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- compartment
Id String (Updatable) The OCID of the compartment for the resource.
- discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- environment
Id String The OCID of the environment.
- inventory
Id String The OCID of the inventory that will contain created assets.
- type String
(Updatable) Asset source type.
- vcenter
Endpoint 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 BooleanMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime BooleanMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- 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"}
- discovery
Schedule StringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- display
Name 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.
- 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"}
- replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- 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}}
- assets
Compartment stringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- compartment
Id string (Updatable) The OCID of the compartment for the resource.
- discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- environment
Id string The OCID of the environment.
- inventory
Id string The OCID of the inventory that will contain created assets.
- type string
(Updatable) Asset source type.
- vcenter
Endpoint 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 booleanMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime booleanMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- {[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"}
- discovery
Schedule stringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- display
Name 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.
- {[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"}
- replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- {[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_ strid (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 AssetSource Discovery Credentials Args (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_ boolmetrics_ collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are_
realtime_ boolmetrics_ collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- 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_ strid (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.
- 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 AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- 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}}
- assets
Compartment StringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- compartment
Id String (Updatable) The OCID of the compartment for the resource.
- discovery
Credentials Property Map (Updatable) Credentials for an asset source.
- environment
Id String The OCID of the environment.
- inventory
Id String The OCID of the inventory that will contain created assets.
- type String
(Updatable) Asset source type.
- vcenter
Endpoint 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 BooleanMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime BooleanMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- 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"}
- discovery
Schedule StringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- display
Name 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.
- 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"}
- replication
Credentials Property Map (Updatable) Credentials for an asset source.
- 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.
- Lifecycle
Details string The detailed state of the asset source.
- State string
The current state of the asset source.
- Time
Created string The time when the asset source was created in the RFC3339 format.
- Time
Updated 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.
- Lifecycle
Details string The detailed state of the asset source.
- State string
The current state of the asset source.
- Time
Created string The time when the asset source was created in the RFC3339 format.
- Time
Updated 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.
- lifecycle
Details String The detailed state of the asset source.
- state String
The current state of the asset source.
- time
Created String The time when the asset source was created in the RFC3339 format.
- time
Updated 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.
- lifecycle
Details string The detailed state of the asset source.
- state string
The current state of the asset source.
- time
Created string The time when the asset source was created in the RFC3339 format.
- time
Updated 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.
- lifecycle
Details String The detailed state of the asset source.
- state String
The current state of the asset source.
- time
Created String The time when the asset source was created in the RFC3339 format.
- time
Updated 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.
- Are
Historical boolMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- Are
Realtime boolMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- Assets
Compartment stringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- Compartment
Id string (Updatable) The OCID of the compartment for the resource.
- 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"}
- Discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- Discovery
Schedule stringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- Display
Name 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.
- Environment
Id string The OCID of the environment.
- 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"}
- Inventory
Id string The OCID of the inventory that will contain created assets.
- Lifecycle
Details string The detailed state of the asset source.
- Replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- State string
The current state of the asset source.
- 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}}
- Time
Created string The time when the asset source was created in the RFC3339 format.
- Time
Updated string The point in time that the asset source was last updated in the RFC3339 format.
- Type string
(Updatable) Asset source type.
- Vcenter
Endpoint 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 boolMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- Are
Realtime boolMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- Assets
Compartment stringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- Compartment
Id string (Updatable) The OCID of the compartment for the resource.
- 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"}
- Discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- Discovery
Schedule stringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- Display
Name 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.
- Environment
Id string The OCID of the environment.
- 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"}
- Inventory
Id string The OCID of the inventory that will contain created assets.
- Lifecycle
Details string The detailed state of the asset source.
- Replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- State string
The current state of the asset source.
- 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}}
- Time
Created string The time when the asset source was created in the RFC3339 format.
- Time
Updated string The point in time that the asset source was last updated in the RFC3339 format.
- Type string
(Updatable) Asset source type.
- Vcenter
Endpoint 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 BooleanMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime BooleanMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- assets
Compartment StringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- compartment
Id String (Updatable) The OCID of the compartment for the resource.
- 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"}
- discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- discovery
Schedule StringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- display
Name 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.
- environment
Id String The OCID of the environment.
- 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"}
- inventory
Id String The OCID of the inventory that will contain created assets.
- lifecycle
Details String The detailed state of the asset source.
- replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- state String
The current state of the asset source.
- 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}}
- time
Created String The time when the asset source was created in the RFC3339 format.
- time
Updated String The point in time that the asset source was last updated in the RFC3339 format.
- type String
(Updatable) Asset source type.
- vcenter
Endpoint 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 booleanMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime booleanMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- assets
Compartment stringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- compartment
Id string (Updatable) The OCID of the compartment for the resource.
- {[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"}
- discovery
Credentials AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- discovery
Schedule stringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- display
Name 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.
- environment
Id string The OCID of the environment.
- {[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"}
- inventory
Id string The OCID of the inventory that will contain created assets.
- lifecycle
Details string The detailed state of the asset source.
- replication
Credentials AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- state string
The current state of the asset source.
- {[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}}
- time
Created string The time when the asset source was created in the RFC3339 format.
- time
Updated string The point in time that the asset source was last updated in the RFC3339 format.
- type string
(Updatable) Asset source type.
- vcenter
Endpoint 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_ boolmetrics_ collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are_
realtime_ boolmetrics_ collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- assets_
compartment_ strid (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.
- 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 AssetSource Discovery Credentials Args (Updatable) Credentials for an asset source.
- discovery_
schedule_ strid (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.
- 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 AssetSource Replication Credentials Args (Updatable) Credentials for an asset source.
- state str
The current state of the asset source.
- 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
- are
Historical BooleanMetrics Collected (Updatable) Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime BooleanMetrics Collected (Updatable) Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- assets
Compartment StringId (Updatable) The OCID of the compartment that is going to be used to create assets.
- compartment
Id String (Updatable) The OCID of the compartment for the resource.
- 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"}
- discovery
Credentials Property Map (Updatable) Credentials for an asset source.
- discovery
Schedule StringId (Updatable) The OCID of the discovery schedule that is going to be attached to the created asset.
- display
Name 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.
- environment
Id String The OCID of the environment.
- 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"}
- inventory
Id String The OCID of the inventory that will contain created assets.
- lifecycle
Details String The detailed state of the asset source.
- replication
Credentials Property Map (Updatable) Credentials for an asset source.
- state String
The current state of the asset source.
- 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}}
- time
Created String The time when the asset source was created in the RFC3339 format.
- time
Updated String The point in time that the asset source was last updated in the RFC3339 format.
- type String
(Updatable) Asset source type.
- vcenter
Endpoint 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
AssetSourceReplicationCredentials
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.