Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.CloudBridge.getAssetSource
Explore with Pulumi AI
This data source provides details about a specific Asset Source resource in Oracle Cloud Infrastructure Cloud Bridge service.
Gets the asset source by ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAssetSource = oci.CloudBridge.getAssetSource({
    assetSourceId: testAssetSourceOciCloudBridgeAssetSource.id,
});
import pulumi
import pulumi_oci as oci
test_asset_source = oci.CloudBridge.get_asset_source(asset_source_id=test_asset_source_oci_cloud_bridge_asset_source["id"])
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.GetAssetSource(ctx, &cloudbridge.GetAssetSourceArgs{
			AssetSourceId: testAssetSourceOciCloudBridgeAssetSource.Id,
		}, nil)
		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 = Oci.CloudBridge.GetAssetSource.Invoke(new()
    {
        AssetSourceId = testAssetSourceOciCloudBridgeAssetSource.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CloudBridge.CloudBridgeFunctions;
import com.pulumi.oci.CloudBridge.inputs.GetAssetSourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testAssetSource = CloudBridgeFunctions.getAssetSource(GetAssetSourceArgs.builder()
            .assetSourceId(testAssetSourceOciCloudBridgeAssetSource.id())
            .build());
    }
}
variables:
  testAssetSource:
    fn::invoke:
      function: oci:CloudBridge:getAssetSource
      arguments:
        assetSourceId: ${testAssetSourceOciCloudBridgeAssetSource.id}
Using getAssetSource
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAssetSource(args: GetAssetSourceArgs, opts?: InvokeOptions): Promise<GetAssetSourceResult>
function getAssetSourceOutput(args: GetAssetSourceOutputArgs, opts?: InvokeOptions): Output<GetAssetSourceResult>def get_asset_source(asset_source_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAssetSourceResult
def get_asset_source_output(asset_source_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAssetSourceResult]func LookupAssetSource(ctx *Context, args *LookupAssetSourceArgs, opts ...InvokeOption) (*LookupAssetSourceResult, error)
func LookupAssetSourceOutput(ctx *Context, args *LookupAssetSourceOutputArgs, opts ...InvokeOption) LookupAssetSourceResultOutput> Note: This function is named LookupAssetSource in the Go SDK.
public static class GetAssetSource 
{
    public static Task<GetAssetSourceResult> InvokeAsync(GetAssetSourceArgs args, InvokeOptions? opts = null)
    public static Output<GetAssetSourceResult> Invoke(GetAssetSourceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAssetSourceResult> getAssetSource(GetAssetSourceArgs args, InvokeOptions options)
public static Output<GetAssetSourceResult> getAssetSource(GetAssetSourceArgs args, InvokeOptions options)
fn::invoke:
  function: oci:CloudBridge/getAssetSource:getAssetSource
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AssetSource stringId 
- The OCID of the asset source.
- AssetSource stringId 
- The OCID of the asset source.
- assetSource StringId 
- The OCID of the asset source.
- assetSource stringId 
- The OCID of the asset source.
- asset_source_ strid 
- The OCID of the asset source.
- assetSource StringId 
- The OCID of the asset source.
getAssetSource Result
The following output properties are available:
- AreHistorical boolMetrics Collected 
- Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- AreRealtime boolMetrics Collected 
- Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- AssetSource stringId 
- AssetsCompartment stringId 
- The OCID of the compartment that is going to be used to create assets.
- CompartmentId string
- The OCID of the compartment for the resource.
- Dictionary<string, string>
- The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DiscoveryCredentials List<GetAsset Source Discovery Credential> 
- Credentials for an asset source.
- DiscoverySchedule stringId 
- The OCID of an attached discovery schedule.
- DisplayName string
- A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- EnvironmentId string
- The OCID of the environment.
- Dictionary<string, string>
- 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"}
- Id string
- The OCID of the resource.
- InventoryId string
- The OCID of the inventory that will contain created assets.
- LifecycleDetails string
- The detailed state of the asset source.
- ReplicationCredentials List<GetAsset Source Replication Credential> 
- Credentials for an asset source.
- State string
- The current state of the asset source.
- Dictionary<string, string>
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- TimeCreated string
- The time when the asset source was created in the RFC3339 format.
- TimeUpdated string
- The point in time that the asset source was last updated in the RFC3339 format.
- Type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- VcenterEndpoint string
- Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk
- AreHistorical boolMetrics Collected 
- Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- AreRealtime boolMetrics Collected 
- Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- AssetSource stringId 
- AssetsCompartment stringId 
- The OCID of the compartment that is going to be used to create assets.
- CompartmentId string
- The OCID of the compartment for the resource.
- map[string]string
- The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DiscoveryCredentials []GetAsset Source Discovery Credential 
- Credentials for an asset source.
- DiscoverySchedule stringId 
- The OCID of an attached discovery schedule.
- DisplayName string
- A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- EnvironmentId string
- The OCID of the environment.
- map[string]string
- 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"}
- Id string
- The OCID of the resource.
- InventoryId string
- The OCID of the inventory that will contain created assets.
- LifecycleDetails string
- The detailed state of the asset source.
- ReplicationCredentials []GetAsset Source Replication Credential 
- Credentials for an asset source.
- State string
- The current state of the asset source.
- map[string]string
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- TimeCreated string
- The time when the asset source was created in the RFC3339 format.
- TimeUpdated string
- The point in time that the asset source was last updated in the RFC3339 format.
- Type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- VcenterEndpoint string
- Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk
- areHistorical BooleanMetrics Collected 
- Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- areRealtime BooleanMetrics Collected 
- Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- assetSource StringId 
- assetsCompartment StringId 
- The OCID of the compartment that is going to be used to create assets.
- compartmentId String
- The OCID of the compartment for the resource.
- Map<String,String>
- The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- discoveryCredentials List<GetAsset Source Discovery Credential> 
- Credentials for an asset source.
- discoverySchedule StringId 
- The OCID of an attached discovery schedule.
- displayName String
- A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- environmentId String
- The OCID of the environment.
- Map<String,String>
- 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"}
- id String
- The OCID of the resource.
- inventoryId String
- The OCID of the inventory that will contain created assets.
- lifecycleDetails String
- The detailed state of the asset source.
- replicationCredentials List<GetAsset Source Replication Credential> 
- Credentials for an asset source.
- state String
- The current state of the asset source.
- Map<String,String>
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- timeCreated String
- The time when the asset source was created in the RFC3339 format.
- timeUpdated String
- The point in time that the asset source was last updated in the RFC3339 format.
- type String
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- vcenterEndpoint String
- Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk
- areHistorical booleanMetrics Collected 
- Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- areRealtime booleanMetrics Collected 
- Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- assetSource stringId 
- assetsCompartment stringId 
- The OCID of the compartment that is going to be used to create assets.
- compartmentId string
- The OCID of the compartment for the resource.
- {[key: string]: string}
- The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- discoveryCredentials GetAsset Source Discovery Credential[] 
- Credentials for an asset source.
- discoverySchedule stringId 
- The OCID of an attached discovery schedule.
- displayName string
- A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- environmentId string
- The OCID of the environment.
- {[key: string]: string}
- 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"}
- id string
- The OCID of the resource.
- inventoryId string
- The OCID of the inventory that will contain created assets.
- lifecycleDetails string
- The detailed state of the asset source.
- replicationCredentials GetAsset Source Replication Credential[] 
- Credentials for an asset source.
- state string
- The current state of the asset source.
- {[key: string]: string}
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- timeCreated string
- The time when the asset source was created in the RFC3339 format.
- timeUpdated string
- The point in time that the asset source was last updated in the RFC3339 format.
- type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- vcenterEndpoint string
- Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk
- are_historical_ boolmetrics_ collected 
- Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are_realtime_ boolmetrics_ collected 
- Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- asset_source_ strid 
- assets_compartment_ strid 
- The OCID of the compartment that is going to be used to create assets.
- compartment_id str
- The OCID of the compartment for the resource.
- Mapping[str, str]
- 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 Sequence[GetAsset Source Discovery Credential] 
- Credentials for an asset source.
- discovery_schedule_ strid 
- The OCID of an attached discovery schedule.
- display_name str
- A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- environment_id str
- The OCID of the environment.
- Mapping[str, str]
- 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"}
- id str
- The OCID of the resource.
- 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 Sequence[GetAsset Source Replication Credential] 
- Credentials for an asset source.
- state str
- The current state of the asset source.
- Mapping[str, str]
- 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
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- vcenter_endpoint str
- Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk
- areHistorical BooleanMetrics Collected 
- Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- areRealtime BooleanMetrics Collected 
- Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- assetSource StringId 
- assetsCompartment StringId 
- The OCID of the compartment that is going to be used to create assets.
- compartmentId String
- The OCID of the compartment for the resource.
- Map<String>
- The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- discoveryCredentials List<Property Map>
- Credentials for an asset source.
- discoverySchedule StringId 
- The OCID of an attached discovery schedule.
- displayName String
- A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- environmentId String
- The OCID of the environment.
- Map<String>
- 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"}
- id String
- The OCID of the resource.
- inventoryId String
- The OCID of the inventory that will contain created assets.
- lifecycleDetails String
- The detailed state of the asset source.
- replicationCredentials List<Property Map>
- Credentials for an asset source.
- state String
- The current state of the asset source.
- Map<String>
- The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- timeCreated String
- The time when the asset source was created in the RFC3339 format.
- timeUpdated String
- The point in time that the asset source was last updated in the RFC3339 format.
- type String
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- vcenterEndpoint String
- Endpoint for VMware asset discovery and replication in the form of https://<host>:<port>/sdk
Supporting Types
GetAssetSourceDiscoveryCredential    
- SecretId string
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- Type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- SecretId string
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- Type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secretId String
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type String
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secretId string
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secret_id str
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type str
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secretId String
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type String
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
GetAssetSourceReplicationCredential    
- SecretId string
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- Type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- SecretId string
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- Type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secretId String
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type String
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secretId string
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type string
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secret_id str
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type str
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- secretId String
- The OCID of the secret in a vault. If the the type of the credentials is BASIC, the secret must contain the username and password in JSON format, which is in the form of{ "username": "", "password": "" }`.
- type String
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.