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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAssetSource = new oci.cloudbridge.AssetSource("test_asset_source", {
assetsCompartmentId: testCompartment.id,
compartmentId: compartmentId,
discoveryCredentials: {
secretId: testSecret.id,
type: assetSourceDiscoveryCredentialsType,
},
environmentId: testEnvironment.id,
inventoryId: testInventory.id,
type: assetSourceType,
vcenterEndpoint: assetSourceVcenterEndpoint,
areHistoricalMetricsCollected: assetSourceAreHistoricalMetricsCollected,
areRealtimeMetricsCollected: assetSourceAreRealtimeMetricsCollected,
definedTags: {
"Operations.CostCenter": "42",
},
discoveryScheduleId: testDiscoverySchedule.id,
displayName: assetSourceDisplayName,
freeformTags: {
Department: "Finance",
},
replicationCredentials: {
secretId: testSecret.id,
type: assetSourceReplicationCredentialsType,
},
systemTags: assetSourceSystemTags,
});
import pulumi
import pulumi_oci as oci
test_asset_source = oci.cloud_bridge.AssetSource("test_asset_source",
assets_compartment_id=test_compartment["id"],
compartment_id=compartment_id,
discovery_credentials={
"secret_id": test_secret["id"],
"type": asset_source_discovery_credentials_type,
},
environment_id=test_environment["id"],
inventory_id=test_inventory["id"],
type=asset_source_type,
vcenter_endpoint=asset_source_vcenter_endpoint,
are_historical_metrics_collected=asset_source_are_historical_metrics_collected,
are_realtime_metrics_collected=asset_source_are_realtime_metrics_collected,
defined_tags={
"Operations.CostCenter": "42",
},
discovery_schedule_id=test_discovery_schedule["id"],
display_name=asset_source_display_name,
freeform_tags={
"Department": "Finance",
},
replication_credentials={
"secret_id": test_secret["id"],
"type": asset_source_replication_credentials_type,
},
system_tags=asset_source_system_tags)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CloudBridge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CloudBridge.NewAssetSource(ctx, "test_asset_source", &CloudBridge.AssetSourceArgs{
AssetsCompartmentId: pulumi.Any(testCompartment.Id),
CompartmentId: pulumi.Any(compartmentId),
DiscoveryCredentials: &cloudbridge.AssetSourceDiscoveryCredentialsArgs{
SecretId: pulumi.Any(testSecret.Id),
Type: pulumi.Any(assetSourceDiscoveryCredentialsType),
},
EnvironmentId: pulumi.Any(testEnvironment.Id),
InventoryId: pulumi.Any(testInventory.Id),
Type: pulumi.Any(assetSourceType),
VcenterEndpoint: pulumi.Any(assetSourceVcenterEndpoint),
AreHistoricalMetricsCollected: pulumi.Any(assetSourceAreHistoricalMetricsCollected),
AreRealtimeMetricsCollected: pulumi.Any(assetSourceAreRealtimeMetricsCollected),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
DiscoveryScheduleId: pulumi.Any(testDiscoverySchedule.Id),
DisplayName: pulumi.Any(assetSourceDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
ReplicationCredentials: &cloudbridge.AssetSourceReplicationCredentialsArgs{
SecretId: pulumi.Any(testSecret.Id),
Type: pulumi.Any(assetSourceReplicationCredentialsType),
},
SystemTags: pulumi.Any(assetSourceSystemTags),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAssetSource = new Oci.CloudBridge.AssetSource("test_asset_source", new()
{
AssetsCompartmentId = testCompartment.Id,
CompartmentId = compartmentId,
DiscoveryCredentials = new Oci.CloudBridge.Inputs.AssetSourceDiscoveryCredentialsArgs
{
SecretId = testSecret.Id,
Type = assetSourceDiscoveryCredentialsType,
},
EnvironmentId = testEnvironment.Id,
InventoryId = testInventory.Id,
Type = assetSourceType,
VcenterEndpoint = assetSourceVcenterEndpoint,
AreHistoricalMetricsCollected = assetSourceAreHistoricalMetricsCollected,
AreRealtimeMetricsCollected = assetSourceAreRealtimeMetricsCollected,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DiscoveryScheduleId = testDiscoverySchedule.Id,
DisplayName = assetSourceDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
ReplicationCredentials = new Oci.CloudBridge.Inputs.AssetSourceReplicationCredentialsArgs
{
SecretId = testSecret.Id,
Type = assetSourceReplicationCredentialsType,
},
SystemTags = assetSourceSystemTags,
});
});
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(testCompartment.id())
.compartmentId(compartmentId)
.discoveryCredentials(AssetSourceDiscoveryCredentialsArgs.builder()
.secretId(testSecret.id())
.type(assetSourceDiscoveryCredentialsType)
.build())
.environmentId(testEnvironment.id())
.inventoryId(testInventory.id())
.type(assetSourceType)
.vcenterEndpoint(assetSourceVcenterEndpoint)
.areHistoricalMetricsCollected(assetSourceAreHistoricalMetricsCollected)
.areRealtimeMetricsCollected(assetSourceAreRealtimeMetricsCollected)
.definedTags(Map.of("Operations.CostCenter", "42"))
.discoveryScheduleId(testDiscoverySchedule.id())
.displayName(assetSourceDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.replicationCredentials(AssetSourceReplicationCredentialsArgs.builder()
.secretId(testSecret.id())
.type(assetSourceReplicationCredentialsType)
.build())
.systemTags(assetSourceSystemTags)
.build());
}
}
resources:
testAssetSource:
type: oci:CloudBridge:AssetSource
name: test_asset_source
properties:
assetsCompartmentId: ${testCompartment.id}
compartmentId: ${compartmentId}
discoveryCredentials:
secretId: ${testSecret.id}
type: ${assetSourceDiscoveryCredentialsType}
environmentId: ${testEnvironment.id}
inventoryId: ${testInventory.id}
type: ${assetSourceType}
vcenterEndpoint: ${assetSourceVcenterEndpoint}
areHistoricalMetricsCollected: ${assetSourceAreHistoricalMetricsCollected}
areRealtimeMetricsCollected: ${assetSourceAreRealtimeMetricsCollected}
definedTags:
Operations.CostCenter: '42'
discoveryScheduleId: ${testDiscoverySchedule.id}
displayName: ${assetSourceDisplayName}
freeformTags:
Department: Finance
replicationCredentials:
secretId: ${testSecret.id}
type: ${assetSourceReplicationCredentialsType}
systemTags: ${assetSourceSystemTags}
Create AssetSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AssetSource(name: string, args: AssetSourceArgs, opts?: CustomResourceOptions);
@overload
def AssetSource(resource_name: str,
args: AssetSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AssetSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
vcenter_endpoint: Optional[str] = None,
assets_compartment_id: Optional[str] = None,
compartment_id: Optional[str] = None,
type: Optional[str] = None,
discovery_credentials: Optional[_cloudbridge.AssetSourceDiscoveryCredentialsArgs] = None,
inventory_id: Optional[str] = None,
discovery_schedule_id: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
are_historical_metrics_collected: Optional[bool] = None,
replication_credentials: Optional[_cloudbridge.AssetSourceReplicationCredentialsArgs] = None,
system_tags: Optional[Mapping[str, str]] = None,
defined_tags: Optional[Mapping[str, str]] = None,
are_realtime_metrics_collected: Optional[bool] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var assetSourceResource = new Oci.CloudBridge.AssetSource("assetSourceResource", new()
{
EnvironmentId = "string",
VcenterEndpoint = "string",
AssetsCompartmentId = "string",
CompartmentId = "string",
Type = "string",
DiscoveryCredentials = new Oci.CloudBridge.Inputs.AssetSourceDiscoveryCredentialsArgs
{
SecretId = "string",
Type = "string",
},
InventoryId = "string",
DiscoveryScheduleId = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
AreHistoricalMetricsCollected = false,
ReplicationCredentials = new Oci.CloudBridge.Inputs.AssetSourceReplicationCredentialsArgs
{
SecretId = "string",
Type = "string",
},
SystemTags =
{
{ "string", "string" },
},
DefinedTags =
{
{ "string", "string" },
},
AreRealtimeMetricsCollected = false,
});
example, err := CloudBridge.NewAssetSource(ctx, "assetSourceResource", &CloudBridge.AssetSourceArgs{
EnvironmentId: pulumi.String("string"),
VcenterEndpoint: pulumi.String("string"),
AssetsCompartmentId: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
Type: pulumi.String("string"),
DiscoveryCredentials: &cloudbridge.AssetSourceDiscoveryCredentialsArgs{
SecretId: pulumi.String("string"),
Type: pulumi.String("string"),
},
InventoryId: pulumi.String("string"),
DiscoveryScheduleId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AreHistoricalMetricsCollected: pulumi.Bool(false),
ReplicationCredentials: &cloudbridge.AssetSourceReplicationCredentialsArgs{
SecretId: pulumi.String("string"),
Type: pulumi.String("string"),
},
SystemTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AreRealtimeMetricsCollected: pulumi.Bool(false),
})
var assetSourceResource = new AssetSource("assetSourceResource", AssetSourceArgs.builder()
.environmentId("string")
.vcenterEndpoint("string")
.assetsCompartmentId("string")
.compartmentId("string")
.type("string")
.discoveryCredentials(AssetSourceDiscoveryCredentialsArgs.builder()
.secretId("string")
.type("string")
.build())
.inventoryId("string")
.discoveryScheduleId("string")
.displayName("string")
.freeformTags(Map.of("string", "string"))
.areHistoricalMetricsCollected(false)
.replicationCredentials(AssetSourceReplicationCredentialsArgs.builder()
.secretId("string")
.type("string")
.build())
.systemTags(Map.of("string", "string"))
.definedTags(Map.of("string", "string"))
.areRealtimeMetricsCollected(false)
.build());
asset_source_resource = oci.cloud_bridge.AssetSource("assetSourceResource",
environment_id="string",
vcenter_endpoint="string",
assets_compartment_id="string",
compartment_id="string",
type="string",
discovery_credentials={
"secret_id": "string",
"type": "string",
},
inventory_id="string",
discovery_schedule_id="string",
display_name="string",
freeform_tags={
"string": "string",
},
are_historical_metrics_collected=False,
replication_credentials={
"secret_id": "string",
"type": "string",
},
system_tags={
"string": "string",
},
defined_tags={
"string": "string",
},
are_realtime_metrics_collected=False)
const assetSourceResource = new oci.cloudbridge.AssetSource("assetSourceResource", {
environmentId: "string",
vcenterEndpoint: "string",
assetsCompartmentId: "string",
compartmentId: "string",
type: "string",
discoveryCredentials: {
secretId: "string",
type: "string",
},
inventoryId: "string",
discoveryScheduleId: "string",
displayName: "string",
freeformTags: {
string: "string",
},
areHistoricalMetricsCollected: false,
replicationCredentials: {
secretId: "string",
type: "string",
},
systemTags: {
string: "string",
},
definedTags: {
string: "string",
},
areRealtimeMetricsCollected: false,
});
type: oci:CloudBridge:AssetSource
properties:
areHistoricalMetricsCollected: false
areRealtimeMetricsCollected: false
assetsCompartmentId: string
compartmentId: string
definedTags:
string: string
discoveryCredentials:
secretId: string
type: string
discoveryScheduleId: string
displayName: string
environmentId: string
freeformTags:
string: string
inventoryId: string
replicationCredentials:
secretId: string
type: string
systemTags:
string: string
type: string
vcenterEndpoint: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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 - (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, string>
- (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, string>
- (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 - (Updatable) Credentials for an asset source.
- Dictionary<string, string>
- (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]string
- (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]string
- (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]string
- (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 - (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,String>
- (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,String>
- (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 - (Updatable) Credentials for an asset source.
- Map<String,String>
- (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 - (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]: string}
- (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]: string}
- (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 - (Updatable) Credentials for an asset source.
- {[key: string]: string}
- (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 cloudbridge.Asset Source 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, str]
- (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, str]
- (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 cloudbridge.Asset Source Replication Credentials Args - (Updatable) Credentials for an asset source.
- Mapping[str, str]
- (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<String>
- (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>
- (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<String>
- (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, str]] = 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, str]] = 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, str]] = 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, string>
- (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 - (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, string>
- (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 - (Updatable) Credentials for an asset source.
- State string
- The current state of the asset source.
- Dictionary<string, string>
- (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]string
- (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]string
- (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]string
- (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,String>
- (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 - (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,String>
- (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 - (Updatable) Credentials for an asset source.
- state String
- The current state of the asset source.
- Map<String,String>
- (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]: string}
- (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 - (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]: string}
- (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 - (Updatable) Credentials for an asset source.
- state string
- The current state of the asset source.
- {[key: string]: string}
- (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, str]
- (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 cloudbridge.Asset Source 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, str]
- (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 cloudbridge.Asset Source Replication Credentials Args - (Updatable) Credentials for an asset source.
- state str
- The current state of the asset source.
- Mapping[str, str]
- (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<String>
- (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<String>
- (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<String>
- (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, AssetSourceDiscoveryCredentialsArgs
AssetSourceReplicationCredentials, AssetSourceReplicationCredentialsArgs
Import
AssetSources can be imported using the id
, e.g.
$ pulumi import oci:CloudBridge/assetSource:AssetSource test_asset_source "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.