oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.Dns.getSteeringPolicyAttachment

This data source provides details about a specific Steering Policy Attachment resource in Oracle Cloud Infrastructure DNS service.

Gets information about the specified steering policy attachment.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testSteeringPolicyAttachment = Oci.Dns.GetSteeringPolicyAttachment.Invoke(new()
    {
        SteeringPolicyAttachmentId = oci_dns_steering_policy_attachment.Test_steering_policy_attachment.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dns.GetSteeringPolicyAttachment(ctx, &dns.GetSteeringPolicyAttachmentArgs{
			SteeringPolicyAttachmentId: oci_dns_steering_policy_attachment.Test_steering_policy_attachment.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.Dns.DnsFunctions;
import com.pulumi.oci.Dns.inputs.GetSteeringPolicyAttachmentArgs;
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 testSteeringPolicyAttachment = DnsFunctions.getSteeringPolicyAttachment(GetSteeringPolicyAttachmentArgs.builder()
            .steeringPolicyAttachmentId(oci_dns_steering_policy_attachment.test_steering_policy_attachment().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_steering_policy_attachment = oci.Dns.get_steering_policy_attachment(steering_policy_attachment_id=oci_dns_steering_policy_attachment["test_steering_policy_attachment"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSteeringPolicyAttachment = oci.Dns.getSteeringPolicyAttachment({
    steeringPolicyAttachmentId: oci_dns_steering_policy_attachment.test_steering_policy_attachment.id,
});
variables:
  testSteeringPolicyAttachment:
    fn::invoke:
      Function: oci:Dns:getSteeringPolicyAttachment
      Arguments:
        steeringPolicyAttachmentId: ${oci_dns_steering_policy_attachment.test_steering_policy_attachment.id}

Using getSteeringPolicyAttachment

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 getSteeringPolicyAttachment(args: GetSteeringPolicyAttachmentArgs, opts?: InvokeOptions): Promise<GetSteeringPolicyAttachmentResult>
function getSteeringPolicyAttachmentOutput(args: GetSteeringPolicyAttachmentOutputArgs, opts?: InvokeOptions): Output<GetSteeringPolicyAttachmentResult>
def get_steering_policy_attachment(steering_policy_attachment_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetSteeringPolicyAttachmentResult
def get_steering_policy_attachment_output(steering_policy_attachment_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetSteeringPolicyAttachmentResult]
func GetSteeringPolicyAttachment(ctx *Context, args *GetSteeringPolicyAttachmentArgs, opts ...InvokeOption) (*GetSteeringPolicyAttachmentResult, error)
func GetSteeringPolicyAttachmentOutput(ctx *Context, args *GetSteeringPolicyAttachmentOutputArgs, opts ...InvokeOption) GetSteeringPolicyAttachmentResultOutput

> Note: This function is named GetSteeringPolicyAttachment in the Go SDK.

public static class GetSteeringPolicyAttachment 
{
    public static Task<GetSteeringPolicyAttachmentResult> InvokeAsync(GetSteeringPolicyAttachmentArgs args, InvokeOptions? opts = null)
    public static Output<GetSteeringPolicyAttachmentResult> Invoke(GetSteeringPolicyAttachmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSteeringPolicyAttachmentResult> getSteeringPolicyAttachment(GetSteeringPolicyAttachmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Dns/getSteeringPolicyAttachment:getSteeringPolicyAttachment
  arguments:
    # arguments dictionary

The following arguments are supported:

SteeringPolicyAttachmentId string

The OCID of the target steering policy attachment.

SteeringPolicyAttachmentId string

The OCID of the target steering policy attachment.

steeringPolicyAttachmentId String

The OCID of the target steering policy attachment.

steeringPolicyAttachmentId string

The OCID of the target steering policy attachment.

steering_policy_attachment_id str

The OCID of the target steering policy attachment.

steeringPolicyAttachmentId String

The OCID of the target steering policy attachment.

getSteeringPolicyAttachment Result

The following output properties are available:

CompartmentId string

The OCID of the compartment containing the steering policy attachment.

DisplayName string

A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.

DomainName string

The attached domain within the attached zone.

Id string

The OCID of the resource.

Rtypes List<string>

The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.

Self string

The canonical absolute URL of the resource.

State string

The current state of the resource.

SteeringPolicyAttachmentId string
SteeringPolicyId string

The OCID of the attached steering policy.

TimeCreated string

The date and time the resource was created, expressed in RFC 3339 timestamp format.

ZoneId string

The OCID of the attached zone.

CompartmentId string

The OCID of the compartment containing the steering policy attachment.

DisplayName string

A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.

DomainName string

The attached domain within the attached zone.

Id string

The OCID of the resource.

Rtypes []string

The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.

Self string

The canonical absolute URL of the resource.

State string

The current state of the resource.

SteeringPolicyAttachmentId string
SteeringPolicyId string

The OCID of the attached steering policy.

TimeCreated string

The date and time the resource was created, expressed in RFC 3339 timestamp format.

ZoneId string

The OCID of the attached zone.

compartmentId String

The OCID of the compartment containing the steering policy attachment.

displayName String

A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.

domainName String

The attached domain within the attached zone.

id String

The OCID of the resource.

rtypes List<String>

The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.

self String

The canonical absolute URL of the resource.

state String

The current state of the resource.

steeringPolicyAttachmentId String
steeringPolicyId String

The OCID of the attached steering policy.

timeCreated String

The date and time the resource was created, expressed in RFC 3339 timestamp format.

zoneId String

The OCID of the attached zone.

compartmentId string

The OCID of the compartment containing the steering policy attachment.

displayName string

A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.

domainName string

The attached domain within the attached zone.

id string

The OCID of the resource.

rtypes string[]

The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.

self string

The canonical absolute URL of the resource.

state string

The current state of the resource.

steeringPolicyAttachmentId string
steeringPolicyId string

The OCID of the attached steering policy.

timeCreated string

The date and time the resource was created, expressed in RFC 3339 timestamp format.

zoneId string

The OCID of the attached zone.

compartment_id str

The OCID of the compartment containing the steering policy attachment.

display_name str

A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.

domain_name str

The attached domain within the attached zone.

id str

The OCID of the resource.

rtypes Sequence[str]

The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.

self str

The canonical absolute URL of the resource.

state str

The current state of the resource.

steering_policy_attachment_id str
steering_policy_id str

The OCID of the attached steering policy.

time_created str

The date and time the resource was created, expressed in RFC 3339 timestamp format.

zone_id str

The OCID of the attached zone.

compartmentId String

The OCID of the compartment containing the steering policy attachment.

displayName String

A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.

domainName String

The attached domain within the attached zone.

id String

The OCID of the resource.

rtypes List<String>

The record types covered by the attachment at the domain. The set of record types is determined by aggregating the record types from the answers defined in the steering policy.

self String

The canonical absolute URL of the resource.

state String

The current state of the resource.

steeringPolicyAttachmentId String
steeringPolicyId String

The OCID of the attached steering policy.

timeCreated String

The date and time the resource was created, expressed in RFC 3339 timestamp format.

zoneId String

The OCID of the attached zone.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.