oci.DatabaseMigration.getAgent
Explore with Pulumi AI
This data source provides details about a specific Agent resource in Oracle Cloud Infrastructure Database Migration service.
Display the ODMS Agent configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAgent = Oci.DatabaseMigration.GetAgent.Invoke(new()
{
AgentId = oci_database_migration_agent.Test_agent.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseMigration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseMigration.GetAgent(ctx, &databasemigration.GetAgentArgs{
AgentId: oci_database_migration_agent.Test_agent.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.DatabaseMigration.DatabaseMigrationFunctions;
import com.pulumi.oci.DatabaseMigration.inputs.GetAgentArgs;
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 testAgent = DatabaseMigrationFunctions.getAgent(GetAgentArgs.builder()
.agentId(oci_database_migration_agent.test_agent().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_agent = oci.DatabaseMigration.get_agent(agent_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAgent = oci.DatabaseMigration.getAgent({
agentId: oci_database_migration_agent.test_agent.id,
});
variables:
testAgent:
fn::invoke:
Function: oci:DatabaseMigration:getAgent
Arguments:
agentId: ${oci_database_migration_agent.test_agent.id}
Using getAgent
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 getAgent(args: GetAgentArgs, opts?: InvokeOptions): Promise<GetAgentResult>
function getAgentOutput(args: GetAgentOutputArgs, opts?: InvokeOptions): Output<GetAgentResult>
def get_agent(agent_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAgentResult
def get_agent_output(agent_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAgentResult]
func GetAgent(ctx *Context, args *GetAgentArgs, opts ...InvokeOption) (*GetAgentResult, error)
func GetAgentOutput(ctx *Context, args *GetAgentOutputArgs, opts ...InvokeOption) GetAgentResultOutput
> Note: This function is named GetAgent
in the Go SDK.
public static class GetAgent
{
public static Task<GetAgentResult> InvokeAsync(GetAgentArgs args, InvokeOptions? opts = null)
public static Output<GetAgentResult> Invoke(GetAgentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAgentResult> getAgent(GetAgentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseMigration/getAgent:getAgent
arguments:
# arguments dictionary
The following arguments are supported:
- Agent
Id string The OCID of the agent
- Agent
Id string The OCID of the agent
- agent
Id String The OCID of the agent
- agent
Id string The OCID of the agent
- agent_
id str The OCID of the agent
- agent
Id String The OCID of the agent
getAgent Result
The following output properties are available:
- Agent
Id string - Compartment
Id string OCID of the compartment
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string ODMS Agent name
- Dictionary<string, object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The OCID of the resource
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Public
Key string ODMS Agent public key.
- State string
The current state of the ODMS on-premises Agent.
- Stream
Id string The OCID of the Stream
- Dictionary<string, object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the Agent was created. An RFC3339 formatted datetime string.
- Time
Updated string The time of the last Agent details update. An RFC3339 formatted datetime string.
- Version string
ODMS Agent version
- Agent
Id string - Compartment
Id string OCID of the compartment
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string ODMS Agent name
- map[string]interface{}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The OCID of the resource
- Lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Public
Key string ODMS Agent public key.
- State string
The current state of the ODMS on-premises Agent.
- Stream
Id string The OCID of the Stream
- map[string]interface{}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string The time the Agent was created. An RFC3339 formatted datetime string.
- Time
Updated string The time of the last Agent details update. An RFC3339 formatted datetime string.
- Version string
ODMS Agent version
- agent
Id String - compartment
Id String OCID of the compartment
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String ODMS Agent name
- Map<String,Object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The OCID of the resource
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- public
Key String ODMS Agent public key.
- state String
The current state of the ODMS on-premises Agent.
- stream
Id String The OCID of the Stream
- Map<String,Object>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the Agent was created. An RFC3339 formatted datetime string.
- time
Updated String The time of the last Agent details update. An RFC3339 formatted datetime string.
- version String
ODMS Agent version
- agent
Id string - compartment
Id string OCID of the compartment
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string ODMS Agent name
- {[key: string]: any}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
The OCID of the resource
- lifecycle
Details string A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- public
Key string ODMS Agent public key.
- state string
The current state of the ODMS on-premises Agent.
- stream
Id string The OCID of the Stream
- {[key: string]: any}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string The time the Agent was created. An RFC3339 formatted datetime string.
- time
Updated string The time of the last Agent details update. An RFC3339 formatted datetime string.
- version string
ODMS Agent version
- agent_
id str - compartment_
id str OCID of the compartment
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str ODMS Agent name
- Mapping[str, Any]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
The OCID of the resource
- lifecycle_
details str A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- public_
key str ODMS Agent public key.
- state str
The current state of the ODMS on-premises Agent.
- stream_
id str The OCID of the Stream
- Mapping[str, Any]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str The time the Agent was created. An RFC3339 formatted datetime string.
- time_
updated str The time of the last Agent details update. An RFC3339 formatted datetime string.
- version str
ODMS Agent version
- agent
Id String - compartment
Id String OCID of the compartment
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String ODMS Agent name
- Map<Any>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The OCID of the resource
- lifecycle
Details String A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- public
Key String ODMS Agent public key.
- state String
The current state of the ODMS on-premises Agent.
- stream
Id String The OCID of the Stream
- Map<Any>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String The time the Agent was created. An RFC3339 formatted datetime string.
- time
Updated String The time of the last Agent details update. An RFC3339 formatted datetime string.
- version String
ODMS Agent version
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.