oci logo
Oracle Cloud Infrastructure v0.7.0, Feb 8 23

oci.CloudBridge.getAssetSource

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAssetSource = Oci.CloudBridge.GetAssetSource.Invoke(new()
    {
        AssetSourceId = oci_cloud_bridge_asset_source.Test_asset_source.Id,
    });

});
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.GetAssetSource(ctx, &cloudbridge.GetAssetSourceArgs{
			AssetSourceId: oci_cloud_bridge_asset_source.Test_asset_source.Id,
		}, nil)
		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.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(oci_cloud_bridge_asset_source.test_asset_source().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_asset_source = oci.CloudBridge.get_asset_source(asset_source_id=oci_cloud_bridge_asset_source["test_asset_source"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAssetSource = oci.CloudBridge.getAssetSource({
    assetSourceId: oci_cloud_bridge_asset_source.test_asset_source.id,
});
variables:
  testAssetSource:
    fn::invoke:
      Function: oci:CloudBridge:getAssetSource
      Arguments:
        assetSourceId: ${oci_cloud_bridge_asset_source.test_asset_source.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 GetAssetSource(ctx *Context, args *GetAssetSourceArgs, opts ...InvokeOption) (*GetAssetSourceResult, error)
func GetAssetSourceOutput(ctx *Context, args *GetAssetSourceOutputArgs, opts ...InvokeOption) GetAssetSourceResultOutput

> Note: This function is named GetAssetSource 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:CloudBridge/getAssetSource:getAssetSource
  arguments:
    # arguments dictionary

The following arguments are supported:

AssetSourceId string

The OCID of the asset source.

AssetSourceId string

The OCID of the asset source.

assetSourceId String

The OCID of the asset source.

assetSourceId string

The OCID of the asset source.

asset_source_id str

The OCID of the asset source.

assetSourceId String

The OCID of the asset source.

getAssetSource Result

The following output properties are available:

AreHistoricalMetricsCollected bool

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

AreRealtimeMetricsCollected bool

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

AssetSourceId string
AssetsCompartmentId string

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

CompartmentId string

The OCID of the compartment for the resource.

DefinedTags Dictionary<string, object>

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<GetAssetSourceDiscoveryCredential>

Credentials for an asset source.

DiscoveryScheduleId string

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.

FreeformTags Dictionary<string, object>

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<GetAssetSourceReplicationCredential>

Credentials for an asset source.

State string

The current state of the asset source.

SystemTags Dictionary<string, object>

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

AreHistoricalMetricsCollected bool

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

AreRealtimeMetricsCollected bool

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

AssetSourceId string
AssetsCompartmentId string

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

CompartmentId string

The OCID of the compartment for the resource.

DefinedTags map[string]interface{}

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 []GetAssetSourceDiscoveryCredential

Credentials for an asset source.

DiscoveryScheduleId string

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.

FreeformTags map[string]interface{}

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 []GetAssetSourceReplicationCredential

Credentials for an asset source.

State string

The current state of the asset source.

SystemTags map[string]interface{}

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

areHistoricalMetricsCollected Boolean

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

areRealtimeMetricsCollected Boolean

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

assetSourceId String
assetsCompartmentId String

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

compartmentId String

The OCID of the compartment for the resource.

definedTags Map<String,Object>

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<GetAssetSourceDiscoveryCredential>

Credentials for an asset source.

discoveryScheduleId String

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.

freeformTags Map<String,Object>

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<GetAssetSourceReplicationCredential>

Credentials for an asset source.

state String

The current state of the asset source.

systemTags Map<String,Object>

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

areHistoricalMetricsCollected boolean

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

areRealtimeMetricsCollected boolean

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

assetSourceId string
assetsCompartmentId string

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

compartmentId string

The OCID of the compartment for the resource.

definedTags {[key: string]: any}

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 GetAssetSourceDiscoveryCredential[]

Credentials for an asset source.

discoveryScheduleId string

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.

freeformTags {[key: string]: any}

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 GetAssetSourceReplicationCredential[]

Credentials for an asset source.

state string

The current state of the asset source.

systemTags {[key: string]: any}

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_metrics_collected bool

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

are_realtime_metrics_collected bool

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

asset_source_id str
assets_compartment_id str

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.

defined_tags Mapping[str, Any]

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 GetAssetSourceDiscoveryCredential]

Credentials for an asset source.

discovery_schedule_id str

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.

freeform_tags Mapping[str, Any]

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 GetAssetSourceReplicationCredential]

Credentials for an asset source.

state str

The current state of the asset source.

system_tags Mapping[str, Any]

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

areHistoricalMetricsCollected Boolean

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

areRealtimeMetricsCollected Boolean

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

assetSourceId String
assetsCompartmentId String

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

compartmentId String

The OCID of the compartment for the resource.

definedTags Map<Any>

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.

discoveryScheduleId String

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.

freeformTags Map<Any>

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.

systemTags Map<Any>

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 oci Terraform Provider.