Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Dns.getSteeringPolicyAttachment
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSteeringPolicyAttachment = oci.Dns.getSteeringPolicyAttachment({
    steeringPolicyAttachmentId: testSteeringPolicyAttachmentOciDnsSteeringPolicyAttachment.id,
});
import pulumi
import pulumi_oci as oci
test_steering_policy_attachment = oci.Dns.get_steering_policy_attachment(steering_policy_attachment_id=test_steering_policy_attachment_oci_dns_steering_policy_attachment["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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: testSteeringPolicyAttachmentOciDnsSteeringPolicyAttachment.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 testSteeringPolicyAttachment = Oci.Dns.GetSteeringPolicyAttachment.Invoke(new()
    {
        SteeringPolicyAttachmentId = testSteeringPolicyAttachmentOciDnsSteeringPolicyAttachment.Id,
    });
});
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(testSteeringPolicyAttachmentOciDnsSteeringPolicyAttachment.id())
            .build());
    }
}
variables:
  testSteeringPolicyAttachment:
    fn::invoke:
      function: oci:Dns:getSteeringPolicyAttachment
      arguments:
        steeringPolicyAttachmentId: ${testSteeringPolicyAttachmentOciDnsSteeringPolicyAttachment.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 LookupSteeringPolicyAttachment(ctx *Context, args *LookupSteeringPolicyAttachmentArgs, opts ...InvokeOption) (*LookupSteeringPolicyAttachmentResult, error)
func LookupSteeringPolicyAttachmentOutput(ctx *Context, args *LookupSteeringPolicyAttachmentOutputArgs, opts ...InvokeOption) LookupSteeringPolicyAttachmentResultOutput> Note: This function is named LookupSteeringPolicyAttachment 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)
public static Output<GetSteeringPolicyAttachmentResult> getSteeringPolicyAttachment(GetSteeringPolicyAttachmentArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Dns/getSteeringPolicyAttachment:getSteeringPolicyAttachment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SteeringPolicy stringAttachment Id 
- The OCID of the target steering policy attachment.
- SteeringPolicy stringAttachment Id 
- The OCID of the target steering policy attachment.
- steeringPolicy StringAttachment Id 
- The OCID of the target steering policy attachment.
- steeringPolicy stringAttachment Id 
- The OCID of the target steering policy attachment.
- steering_policy_ strattachment_ id 
- The OCID of the target steering policy attachment.
- steeringPolicy StringAttachment Id 
- 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.
- SteeringPolicy stringAttachment Id 
- SteeringPolicy stringId 
- 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.
- SteeringPolicy stringAttachment Id 
- SteeringPolicy stringId 
- 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.
- steeringPolicy StringAttachment Id 
- steeringPolicy StringId 
- 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.
- steeringPolicy stringAttachment Id 
- steeringPolicy stringId 
- 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_ strattachment_ id 
- steering_policy_ strid 
- 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.
- steeringPolicy StringAttachment Id 
- steeringPolicy StringId 
- 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 ociTerraform Provider.