getPropertyRules

Use the akamai.getPropertyRules data source to query and retrieve the rule tree of an existing property version. This data source lets you search across the contracts and groups you have access to.

Basic usage

This example returns the rule tree for version 3 of a property based on the selected contract and group:

import * as pulumi from "@pulumi/pulumi";

export const propertyMatch = data.akamai_property_rules["my-example"];
import pulumi

pulumi.export("propertyMatch", data["akamai_property_rules"]["my-example"])
using Pulumi;

class MyStack : Stack
{
    public MyStack()
    {
        this.PropertyMatch = data.Akamai_property_rules.My_example;
    }

    [Output("propertyMatch")]
    public Output<string> PropertyMatch { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ctx.Export("propertyMatch", data.Akamai_property_rules.My-example)
		return nil
	})
}

Argument reference

This data source supports these arguments:

  • contract_id - (Required) A contract’s unique ID, including the ctr_ prefix.
  • group_id - (Required) A group’s unique ID, including the grp_ prefix.
  • property_id - (Required) A property’s unique ID, including the prp_ prefix.
  • version - (Optional) The version to return. Returns the latest version by default.

Attributes reference

This data source returns these attributes:

  • rules - A JSON-encoded rule tree for the property.
  • errors - A list of validation errors for the rule tree object returned. For more information see Errors in the Property Manager API documentation.

Using getPropertyRules

function getPropertyRules(args: GetPropertyRulesArgs, opts?: InvokeOptions): Promise<GetPropertyRulesResult>
def get_property_rules(contract_id: Optional[str] = None,
                       group_id: Optional[str] = None,
                       property_id: Optional[str] = None,
                       version: Optional[int] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPropertyRulesResult
func GetPropertyRules(ctx *Context, args *GetPropertyRulesArgs, opts ...InvokeOption) (*GetPropertyRulesResult, error)

Note: This function is named GetPropertyRules in the Go SDK.

public static class GetPropertyRules {
    public static Task<GetPropertyRulesResult> InvokeAsync(GetPropertyRulesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

PropertyId string
ContractId string
GroupId string
Version int
PropertyId string
ContractId string
GroupId string
Version int
propertyId string
contractId string
groupId string
version number

getPropertyRules Result

The following output properties are available:

ContractId string
Errors string
GroupId string
Id string
The provider-assigned unique ID for this managed resource.
PropertyId string
Rules string
Version int
ContractId string
Errors string
GroupId string
Id string
The provider-assigned unique ID for this managed resource.
PropertyId string
Rules string
Version int
contractId string
errors string
groupId string
id string
The provider-assigned unique ID for this managed resource.
propertyId string
rules string
version number
contract_id str
errors str
group_id str
id str
The provider-assigned unique ID for this managed resource.
property_id str
rules str
version int

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes
This Pulumi package is based on the akamai Terraform Provider.