Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Dns.getSteeringPolicyAttachments
Explore with Pulumi AI
This data source provides the list of Steering Policy Attachments in Oracle Cloud Infrastructure DNS service.
Lists the steering policy attachments in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSteeringPolicyAttachments = oci.Dns.getSteeringPolicyAttachments({
compartmentId: compartmentId,
displayName: steeringPolicyAttachmentDisplayName,
domain: steeringPolicyAttachmentDomain,
domainContains: steeringPolicyAttachmentDomainContains,
id: steeringPolicyAttachmentId,
state: steeringPolicyAttachmentState,
steeringPolicyId: testSteeringPolicy.id,
timeCreatedGreaterThanOrEqualTo: steeringPolicyAttachmentTimeCreatedGreaterThanOrEqualTo,
timeCreatedLessThan: steeringPolicyAttachmentTimeCreatedLessThan,
zoneId: testZone.id,
});
import pulumi
import pulumi_oci as oci
test_steering_policy_attachments = oci.Dns.get_steering_policy_attachments(compartment_id=compartment_id,
display_name=steering_policy_attachment_display_name,
domain=steering_policy_attachment_domain,
domain_contains=steering_policy_attachment_domain_contains,
id=steering_policy_attachment_id,
state=steering_policy_attachment_state,
steering_policy_id=test_steering_policy["id"],
time_created_greater_than_or_equal_to=steering_policy_attachment_time_created_greater_than_or_equal_to,
time_created_less_than=steering_policy_attachment_time_created_less_than,
zone_id=test_zone["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.GetSteeringPolicyAttachments(ctx, &dns.GetSteeringPolicyAttachmentsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(steeringPolicyAttachmentDisplayName),
Domain: pulumi.StringRef(steeringPolicyAttachmentDomain),
DomainContains: pulumi.StringRef(steeringPolicyAttachmentDomainContains),
Id: pulumi.StringRef(steeringPolicyAttachmentId),
State: pulumi.StringRef(steeringPolicyAttachmentState),
SteeringPolicyId: pulumi.StringRef(testSteeringPolicy.Id),
TimeCreatedGreaterThanOrEqualTo: pulumi.StringRef(steeringPolicyAttachmentTimeCreatedGreaterThanOrEqualTo),
TimeCreatedLessThan: pulumi.StringRef(steeringPolicyAttachmentTimeCreatedLessThan),
ZoneId: pulumi.StringRef(testZone.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 testSteeringPolicyAttachments = Oci.Dns.GetSteeringPolicyAttachments.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = steeringPolicyAttachmentDisplayName,
Domain = steeringPolicyAttachmentDomain,
DomainContains = steeringPolicyAttachmentDomainContains,
Id = steeringPolicyAttachmentId,
State = steeringPolicyAttachmentState,
SteeringPolicyId = testSteeringPolicy.Id,
TimeCreatedGreaterThanOrEqualTo = steeringPolicyAttachmentTimeCreatedGreaterThanOrEqualTo,
TimeCreatedLessThan = steeringPolicyAttachmentTimeCreatedLessThan,
ZoneId = testZone.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.GetSteeringPolicyAttachmentsArgs;
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 testSteeringPolicyAttachments = DnsFunctions.getSteeringPolicyAttachments(GetSteeringPolicyAttachmentsArgs.builder()
.compartmentId(compartmentId)
.displayName(steeringPolicyAttachmentDisplayName)
.domain(steeringPolicyAttachmentDomain)
.domainContains(steeringPolicyAttachmentDomainContains)
.id(steeringPolicyAttachmentId)
.state(steeringPolicyAttachmentState)
.steeringPolicyId(testSteeringPolicy.id())
.timeCreatedGreaterThanOrEqualTo(steeringPolicyAttachmentTimeCreatedGreaterThanOrEqualTo)
.timeCreatedLessThan(steeringPolicyAttachmentTimeCreatedLessThan)
.zoneId(testZone.id())
.build());
}
}
variables:
testSteeringPolicyAttachments:
fn::invoke:
Function: oci:Dns:getSteeringPolicyAttachments
Arguments:
compartmentId: ${compartmentId}
displayName: ${steeringPolicyAttachmentDisplayName}
domain: ${steeringPolicyAttachmentDomain}
domainContains: ${steeringPolicyAttachmentDomainContains}
id: ${steeringPolicyAttachmentId}
state: ${steeringPolicyAttachmentState}
steeringPolicyId: ${testSteeringPolicy.id}
timeCreatedGreaterThanOrEqualTo: ${steeringPolicyAttachmentTimeCreatedGreaterThanOrEqualTo}
timeCreatedLessThan: ${steeringPolicyAttachmentTimeCreatedLessThan}
zoneId: ${testZone.id}
Using getSteeringPolicyAttachments
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 getSteeringPolicyAttachments(args: GetSteeringPolicyAttachmentsArgs, opts?: InvokeOptions): Promise<GetSteeringPolicyAttachmentsResult>
function getSteeringPolicyAttachmentsOutput(args: GetSteeringPolicyAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetSteeringPolicyAttachmentsResult>
def get_steering_policy_attachments(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
domain: Optional[str] = None,
domain_contains: Optional[str] = None,
filters: Optional[Sequence[_dns.GetSteeringPolicyAttachmentsFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
steering_policy_id: Optional[str] = None,
time_created_greater_than_or_equal_to: Optional[str] = None,
time_created_less_than: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSteeringPolicyAttachmentsResult
def get_steering_policy_attachments_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
domain: Optional[pulumi.Input[str]] = None,
domain_contains: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_dns.GetSteeringPolicyAttachmentsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
steering_policy_id: Optional[pulumi.Input[str]] = None,
time_created_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_created_less_than: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSteeringPolicyAttachmentsResult]
func GetSteeringPolicyAttachments(ctx *Context, args *GetSteeringPolicyAttachmentsArgs, opts ...InvokeOption) (*GetSteeringPolicyAttachmentsResult, error)
func GetSteeringPolicyAttachmentsOutput(ctx *Context, args *GetSteeringPolicyAttachmentsOutputArgs, opts ...InvokeOption) GetSteeringPolicyAttachmentsResultOutput
> Note: This function is named GetSteeringPolicyAttachments
in the Go SDK.
public static class GetSteeringPolicyAttachments
{
public static Task<GetSteeringPolicyAttachmentsResult> InvokeAsync(GetSteeringPolicyAttachmentsArgs args, InvokeOptions? opts = null)
public static Output<GetSteeringPolicyAttachmentsResult> Invoke(GetSteeringPolicyAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSteeringPolicyAttachmentsResult> getSteeringPolicyAttachments(GetSteeringPolicyAttachmentsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Dns/getSteeringPolicyAttachments:getSteeringPolicyAttachments
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment the resource belongs to.
- Display
Name string - The displayName of a resource.
- Domain string
- Search by domain. Will match any record whose domain (case-insensitive) equals the provided value.
- Domain
Contains string - Search by domain. Will match any record whose domain (case-insensitive) contains the provided value.
- Filters
List<Get
Steering Policy Attachments Filter> - Id string
- The OCID of a resource.
- State string
- The state of a resource.
- Steering
Policy stringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- Time
Created stringGreater Than Or Equal To - An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- Time
Created stringLess Than - An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- Zone
Id string - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- Compartment
Id string - The OCID of the compartment the resource belongs to.
- Display
Name string - The displayName of a resource.
- Domain string
- Search by domain. Will match any record whose domain (case-insensitive) equals the provided value.
- Domain
Contains string - Search by domain. Will match any record whose domain (case-insensitive) contains the provided value.
- Filters
[]Get
Steering Policy Attachments Filter - Id string
- The OCID of a resource.
- State string
- The state of a resource.
- Steering
Policy stringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- Time
Created stringGreater Than Or Equal To - An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- Time
Created stringLess Than - An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- Zone
Id string - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment
Id String - The OCID of the compartment the resource belongs to.
- display
Name String - The displayName of a resource.
- domain String
- Search by domain. Will match any record whose domain (case-insensitive) equals the provided value.
- domain
Contains String - Search by domain. Will match any record whose domain (case-insensitive) contains the provided value.
- filters
List<Get
Steering Policy Attachments Filter> - id String
- The OCID of a resource.
- state String
- The state of a resource.
- steering
Policy StringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time
Created StringGreater Than Or Equal To - An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time
Created StringLess Than - An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- zone
Id String - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment
Id string - The OCID of the compartment the resource belongs to.
- display
Name string - The displayName of a resource.
- domain string
- Search by domain. Will match any record whose domain (case-insensitive) equals the provided value.
- domain
Contains string - Search by domain. Will match any record whose domain (case-insensitive) contains the provided value.
- filters
Get
Steering Policy Attachments Filter[] - id string
- The OCID of a resource.
- state string
- The state of a resource.
- steering
Policy stringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time
Created stringGreater Than Or Equal To - An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time
Created stringLess Than - An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- zone
Id string - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment_
id str - The OCID of the compartment the resource belongs to.
- display_
name str - The displayName of a resource.
- domain str
- Search by domain. Will match any record whose domain (case-insensitive) equals the provided value.
- domain_
contains str - Search by domain. Will match any record whose domain (case-insensitive) contains the provided value.
- filters
Sequence[dns.
Get Steering Policy Attachments Filter] - id str
- The OCID of a resource.
- state str
- The state of a resource.
- steering_
policy_ strid - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time_
created_ strgreater_ than_ or_ equal_ to - An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time_
created_ strless_ than - An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- zone_
id str - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment
Id String - The OCID of the compartment the resource belongs to.
- display
Name String - The displayName of a resource.
- domain String
- Search by domain. Will match any record whose domain (case-insensitive) equals the provided value.
- domain
Contains String - Search by domain. Will match any record whose domain (case-insensitive) contains the provided value.
- filters List<Property Map>
- id String
- The OCID of a resource.
- state String
- The state of a resource.
- steering
Policy StringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time
Created StringGreater Than Or Equal To - An RFC 3339 timestamp that states all returned resources were created on or after the indicated time.
- time
Created StringLess Than - An RFC 3339 timestamp that states all returned resources were created before the indicated time.
- zone
Id String - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
getSteeringPolicyAttachments Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the steering policy attachment.
- Steering
Policy List<GetAttachments Steering Policy Attachments Steering Policy Attachment> - The list of steering_policy_attachments.
- Display
Name string - A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.
- Domain string
- Domain
Contains string - Filters
List<Get
Steering Policy Attachments Filter> - Id string
- The OCID of the resource.
- State string
- The current state of the resource.
- Steering
Policy stringId - The OCID of the attached steering policy.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Zone
Id string - The OCID of the attached zone.
- Compartment
Id string - The OCID of the compartment containing the steering policy attachment.
- Steering
Policy []GetAttachments Steering Policy Attachments Steering Policy Attachment - The list of steering_policy_attachments.
- Display
Name string - A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.
- Domain string
- Domain
Contains string - Filters
[]Get
Steering Policy Attachments Filter - Id string
- The OCID of the resource.
- State string
- The current state of the resource.
- Steering
Policy stringId - The OCID of the attached steering policy.
- Time
Created stringGreater Than Or Equal To - Time
Created stringLess Than - Zone
Id string - The OCID of the attached zone.
- compartment
Id String - The OCID of the compartment containing the steering policy attachment.
- steering
Policy List<GetAttachments Steering Policy Attachments Steering Policy Attachment> - The list of steering_policy_attachments.
- display
Name String - A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.
- domain String
- domain
Contains String - filters
List<Get
Steering Policy Attachments Filter> - id String
- The OCID of the resource.
- state String
- The current state of the resource.
- steering
Policy StringId - The OCID of the attached steering policy.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - zone
Id String - The OCID of the attached zone.
- compartment
Id string - The OCID of the compartment containing the steering policy attachment.
- steering
Policy GetAttachments Steering Policy Attachments Steering Policy Attachment[] - The list of steering_policy_attachments.
- display
Name string - A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.
- domain string
- domain
Contains string - filters
Get
Steering Policy Attachments Filter[] - id string
- The OCID of the resource.
- state string
- The current state of the resource.
- steering
Policy stringId - The OCID of the attached steering policy.
- time
Created stringGreater Than Or Equal To - time
Created stringLess Than - zone
Id string - The OCID of the attached zone.
- compartment_
id str - The OCID of the compartment containing the steering policy attachment.
- steering_
policy_ Sequence[dns.attachments Get Steering Policy Attachments Steering Policy Attachment] - The list of steering_policy_attachments.
- 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 str
- domain_
contains str - filters
Sequence[dns.
Get Steering Policy Attachments Filter] - id str
- The OCID of the resource.
- state str
- The current state of the resource.
- steering_
policy_ strid - The OCID of the attached steering policy.
- time_
created_ strgreater_ than_ or_ equal_ to - time_
created_ strless_ than - zone_
id str - The OCID of the attached zone.
- compartment
Id String - The OCID of the compartment containing the steering policy attachment.
- steering
Policy List<Property Map>Attachments - The list of steering_policy_attachments.
- display
Name String - A user-friendly name for the steering policy attachment. Does not have to be unique and can be changed. Avoid entering confidential information.
- domain String
- domain
Contains String - filters List<Property Map>
- id String
- The OCID of the resource.
- state String
- The current state of the resource.
- steering
Policy StringId - The OCID of the attached steering policy.
- time
Created StringGreater Than Or Equal To - time
Created StringLess Than - zone
Id String - The OCID of the attached zone.
Supporting Types
GetSteeringPolicyAttachmentsFilter
GetSteeringPolicyAttachmentsSteeringPolicyAttachment
- Compartment
Id string - The OCID of the compartment the resource belongs to.
- Display
Name string - The displayName of a resource.
- Domain
Name string - The attached domain within the attached zone.
- Id string
- The OCID of a 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 state of a resource.
- Steering
Policy stringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- Time
Created string - The date and time the resource was created, expressed in RFC 3339 timestamp format.
- Zone
Id string - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- Compartment
Id string - The OCID of the compartment the resource belongs to.
- Display
Name string - The displayName of a resource.
- Domain
Name string - The attached domain within the attached zone.
- Id string
- The OCID of a 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 state of a resource.
- Steering
Policy stringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- Time
Created string - The date and time the resource was created, expressed in RFC 3339 timestamp format.
- Zone
Id string - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment
Id String - The OCID of the compartment the resource belongs to.
- display
Name String - The displayName of a resource.
- domain
Name String - The attached domain within the attached zone.
- id String
- The OCID of a 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 state of a resource.
- steering
Policy StringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time
Created String - The date and time the resource was created, expressed in RFC 3339 timestamp format.
- zone
Id String - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment
Id string - The OCID of the compartment the resource belongs to.
- display
Name string - The displayName of a resource.
- domain
Name string - The attached domain within the attached zone.
- id string
- The OCID of a 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 state of a resource.
- steering
Policy stringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time
Created string - The date and time the resource was created, expressed in RFC 3339 timestamp format.
- zone
Id string - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment_
id str - The OCID of the compartment the resource belongs to.
- display_
name str - The displayName of a resource.
- domain_
name str - The attached domain within the attached zone.
- id str
- The OCID of a 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 state of a resource.
- steering_
policy_ strid - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time_
created str - The date and time the resource was created, expressed in RFC 3339 timestamp format.
- zone_
id str - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
- compartment
Id String - The OCID of the compartment the resource belongs to.
- display
Name String - The displayName of a resource.
- domain
Name String - The attached domain within the attached zone.
- id String
- The OCID of a 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 state of a resource.
- steering
Policy StringId - Search by steering policy OCID. Will match any resource whose steering policy ID matches the provided value.
- time
Created String - The date and time the resource was created, expressed in RFC 3339 timestamp format.
- zone
Id String - Search by zone OCID. Will match any resource whose zone ID matches the provided value.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.