1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. getSteeringPolicyAttachment
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi

oci.Dns.getSteeringPolicyAttachment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi

    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 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.
    oci logo
    Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi