Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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 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:
- Asset
Source stringId - The OCID of the asset source.
- Asset
Source stringId - The OCID of the asset source.
- asset
Source StringId - The OCID of the asset source.
- asset
Source stringId - The OCID of the asset source.
- asset_
source_ strid - The OCID of the asset source.
- asset
Source StringId - The OCID of the asset source.
getAssetSource Result
The following output properties are available:
- 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 stringId - Assets
Compartment stringId - The OCID of the compartment that is going to be used to create assets.
- Compartment
Id 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"}
- Discovery
Credentials List<GetAsset Source Discovery Credential> - Credentials for an asset source.
- Discovery
Schedule stringId - The OCID of an attached discovery schedule.
- Display
Name string - A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- Environment
Id 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.
- 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 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}}
- 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
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- Vcenter
Endpoint 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 stringId - Assets
Compartment stringId - The OCID of the compartment that is going to be used to create assets.
- Compartment
Id 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"}
- Discovery
Credentials []GetAsset Source Discovery Credential - Credentials for an asset source.
- Discovery
Schedule stringId - The OCID of an attached discovery schedule.
- Display
Name string - A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- Environment
Id 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.
- 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 []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}}
- 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
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- Vcenter
Endpoint string - Endpoint for VMware asset discovery and replication in the form of
https://<host>:<port>/sdk
- are
Historical BooleanMetrics Collected - Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime BooleanMetrics Collected - Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- asset
Source StringId - assets
Compartment StringId - The OCID of the compartment that is going to be used to create assets.
- compartment
Id 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"}
- discovery
Credentials List<GetAsset Source Discovery Credential> - Credentials for an asset source.
- discovery
Schedule StringId - The OCID of an attached discovery schedule.
- display
Name String - A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- environment
Id 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.
- 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 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}}
- 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
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- vcenter
Endpoint String - Endpoint for VMware asset discovery and replication in the form of
https://<host>:<port>/sdk
- are
Historical booleanMetrics Collected - Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime booleanMetrics Collected - Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- asset
Source stringId - assets
Compartment stringId - The OCID of the compartment that is going to be used to create assets.
- compartment
Id 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"}
- discovery
Credentials GetAsset Source Discovery Credential[] - Credentials for an asset source.
- discovery
Schedule stringId - The OCID of an attached discovery schedule.
- display
Name string - A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- environment
Id 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.
- 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 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}}
- 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
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- vcenter
Endpoint 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[cloudbridge.Get Asset 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[cloudbridge.Get Asset 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
- are
Historical BooleanMetrics Collected - Flag indicating whether historical metrics are collected for assets, originating from this asset source.
- are
Realtime BooleanMetrics Collected - Flag indicating whether real-time metrics are collected for assets, originating from this asset source.
- asset
Source StringId - assets
Compartment StringId - The OCID of the compartment that is going to be used to create assets.
- compartment
Id 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"}
- discovery
Credentials List<Property Map> - Credentials for an asset source.
- discovery
Schedule StringId - The OCID of an attached discovery schedule.
- display
Name String - A user-friendly name for the asset source. Does not have to be unique, and it's mutable. Avoid entering confidential information.
- environment
Id 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.
- 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 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}}
- 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
- The type of asset source. Indicates external origin of the assets that are read by assigning this asset source.
- vcenter
Endpoint String - Endpoint for VMware asset discovery and replication in the form of
https://<host>:<port>/sdk
Supporting Types
GetAssetSourceDiscoveryCredential
- Secret
Id 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 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 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 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.
- secret
Id 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
- Secret
Id 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 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 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 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.
- secret
Id 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.