1. Packages
  2. AzureDevOps
  3. API Docs
  4. Feed
Azure DevOps v3.1.1 published on Monday, May 20, 2024 by Pulumi

azuredevops.Feed

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.1.1 published on Monday, May 20, 2024 by Pulumi

    Manages creation of the Feed within Azure DevOps organization.

    Example Usage

    Create Feed in the scope of whole Organization

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = new azuredevops.Feed("example", {name: "releases"});
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.Feed("example", name="releases")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azuredevops.NewFeed(ctx, "example", &azuredevops.FeedArgs{
    			Name: pulumi.String("releases"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AzureDevOps.Feed("example", new()
        {
            Name = "releases",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuredevops.Feed;
    import com.pulumi.azuredevops.FeedArgs;
    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) {
            var example = new Feed("example", FeedArgs.builder()        
                .name("releases")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuredevops:Feed
        properties:
          name: releases
    

    Create Feed in the scope of a Project

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = new azuredevops.Project("example", {
        name: "Example Project",
        visibility: "private",
        versionControl: "Git",
        workItemTemplate: "Agile",
        description: "Managed by Terraform",
    });
    const exampleFeed = new azuredevops.Feed("example", {
        name: "releases",
        projectId: example.id,
    });
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.Project("example",
        name="Example Project",
        visibility="private",
        version_control="Git",
        work_item_template="Agile",
        description="Managed by Terraform")
    example_feed = azuredevops.Feed("example",
        name="releases",
        project_id=example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
    			Name:             pulumi.String("Example Project"),
    			Visibility:       pulumi.String("private"),
    			VersionControl:   pulumi.String("Git"),
    			WorkItemTemplate: pulumi.String("Agile"),
    			Description:      pulumi.String("Managed by Terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewFeed(ctx, "example", &azuredevops.FeedArgs{
    			Name:      pulumi.String("releases"),
    			ProjectId: example.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AzureDevOps.Project("example", new()
        {
            Name = "Example Project",
            Visibility = "private",
            VersionControl = "Git",
            WorkItemTemplate = "Agile",
            Description = "Managed by Terraform",
        });
    
        var exampleFeed = new AzureDevOps.Feed("example", new()
        {
            Name = "releases",
            ProjectId = example.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuredevops.Project;
    import com.pulumi.azuredevops.ProjectArgs;
    import com.pulumi.azuredevops.Feed;
    import com.pulumi.azuredevops.FeedArgs;
    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) {
            var example = new Project("example", ProjectArgs.builder()        
                .name("Example Project")
                .visibility("private")
                .versionControl("Git")
                .workItemTemplate("Agile")
                .description("Managed by Terraform")
                .build());
    
            var exampleFeed = new Feed("exampleFeed", FeedArgs.builder()        
                .name("releases")
                .projectId(example.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuredevops:Project
        properties:
          name: Example Project
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Terraform
      exampleFeed:
        type: azuredevops:Feed
        name: example
        properties:
          name: releases
          projectId: ${example.id}
    

    Create Feed with Soft Delete

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = new azuredevops.Feed("example", {
        name: "releases",
        features: [{
            permanentDelete: false,
        }],
    });
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.Feed("example",
        name="releases",
        features=[azuredevops.FeedFeatureArgs(
            permanent_delete=False,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azuredevops.NewFeed(ctx, "example", &azuredevops.FeedArgs{
    			Name: pulumi.String("releases"),
    			Features: azuredevops.FeedFeatureArray{
    				&azuredevops.FeedFeatureArgs{
    					PermanentDelete: pulumi.Bool(false),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AzureDevOps.Feed("example", new()
        {
            Name = "releases",
            Features = new[]
            {
                new AzureDevOps.Inputs.FeedFeatureArgs
                {
                    PermanentDelete = false,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuredevops.Feed;
    import com.pulumi.azuredevops.FeedArgs;
    import com.pulumi.azuredevops.inputs.FeedFeatureArgs;
    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) {
            var example = new Feed("example", FeedArgs.builder()        
                .name("releases")
                .features(FeedFeatureArgs.builder()
                    .permanentDelete(false)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuredevops:Feed
        properties:
          name: releases
          features:
            - permanentDelete: false
    

    Create Feed Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Feed(name: string, args?: FeedArgs, opts?: CustomResourceOptions);
    @overload
    def Feed(resource_name: str,
             args: Optional[FeedArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Feed(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             features: Optional[Sequence[FeedFeatureArgs]] = None,
             name: Optional[str] = None,
             project_id: Optional[str] = None)
    func NewFeed(ctx *Context, name string, args *FeedArgs, opts ...ResourceOption) (*Feed, error)
    public Feed(string name, FeedArgs? args = null, CustomResourceOptions? opts = null)
    public Feed(String name, FeedArgs args)
    public Feed(String name, FeedArgs args, CustomResourceOptions options)
    
    type: azuredevops:Feed
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FeedArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FeedArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FeedArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FeedArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FeedArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var feedResource = new AzureDevOps.Feed("feedResource", new()
    {
        Features = new[]
        {
            new AzureDevOps.Inputs.FeedFeatureArgs
            {
                PermanentDelete = false,
                Restore = false,
            },
        },
        Name = "string",
        ProjectId = "string",
    });
    
    example, err := azuredevops.NewFeed(ctx, "feedResource", &azuredevops.FeedArgs{
    	Features: azuredevops.FeedFeatureArray{
    		&azuredevops.FeedFeatureArgs{
    			PermanentDelete: pulumi.Bool(false),
    			Restore:         pulumi.Bool(false),
    		},
    	},
    	Name:      pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    })
    
    var feedResource = new Feed("feedResource", FeedArgs.builder()
        .features(FeedFeatureArgs.builder()
            .permanentDelete(false)
            .restore(false)
            .build())
        .name("string")
        .projectId("string")
        .build());
    
    feed_resource = azuredevops.Feed("feedResource",
        features=[azuredevops.FeedFeatureArgs(
            permanent_delete=False,
            restore=False,
        )],
        name="string",
        project_id="string")
    
    const feedResource = new azuredevops.Feed("feedResource", {
        features: [{
            permanentDelete: false,
            restore: false,
        }],
        name: "string",
        projectId: "string",
    });
    
    type: azuredevops:Feed
    properties:
        features:
            - permanentDelete: false
              restore: false
        name: string
        projectId: string
    

    Feed Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Feed resource accepts the following input properties:

    Features List<Pulumi.AzureDevOps.Inputs.FeedFeature>

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    Name string
    The name of the Feed.
    ProjectId string
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    Features []FeedFeatureArgs

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    Name string
    The name of the Feed.
    ProjectId string
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features List<FeedFeature>

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name String
    The name of the Feed.
    projectId String
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features FeedFeature[]

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name string
    The name of the Feed.
    projectId string
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features Sequence[FeedFeatureArgs]

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name str
    The name of the Feed.
    project_id str
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features List<Property Map>

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name String
    The name of the Feed.
    projectId String
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Feed resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Feed Resource

    Get an existing Feed resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FeedState, opts?: CustomResourceOptions): Feed
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            features: Optional[Sequence[FeedFeatureArgs]] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None) -> Feed
    func GetFeed(ctx *Context, name string, id IDInput, state *FeedState, opts ...ResourceOption) (*Feed, error)
    public static Feed Get(string name, Input<string> id, FeedState? state, CustomResourceOptions? opts = null)
    public static Feed get(String name, Output<String> id, FeedState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Features List<Pulumi.AzureDevOps.Inputs.FeedFeature>

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    Name string
    The name of the Feed.
    ProjectId string
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    Features []FeedFeatureArgs

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    Name string
    The name of the Feed.
    ProjectId string
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features List<FeedFeature>

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name String
    The name of the Feed.
    projectId String
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features FeedFeature[]

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name string
    The name of the Feed.
    projectId string
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features Sequence[FeedFeatureArgs]

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name str
    The name of the Feed.
    project_id str
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
    features List<Property Map>

    A features blocks as documented below.

    Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

    name String
    The name of the Feed.
    projectId String
    The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.

    Supporting Types

    FeedFeature, FeedFeatureArgs

    PermanentDelete bool
    Determines if Feed should be Permanently removed, Defaults to false
    Restore bool
    Determines if Feed should be Restored during creation (if possible), Defaults to false
    PermanentDelete bool
    Determines if Feed should be Permanently removed, Defaults to false
    Restore bool
    Determines if Feed should be Restored during creation (if possible), Defaults to false
    permanentDelete Boolean
    Determines if Feed should be Permanently removed, Defaults to false
    restore Boolean
    Determines if Feed should be Restored during creation (if possible), Defaults to false
    permanentDelete boolean
    Determines if Feed should be Permanently removed, Defaults to false
    restore boolean
    Determines if Feed should be Restored during creation (if possible), Defaults to false
    permanent_delete bool
    Determines if Feed should be Permanently removed, Defaults to false
    restore bool
    Determines if Feed should be Restored during creation (if possible), Defaults to false
    permanentDelete Boolean
    Determines if Feed should be Permanently removed, Defaults to false
    restore Boolean
    Determines if Feed should be Restored during creation (if possible), Defaults to false

    Package Details

    Repository
    Azure DevOps pulumi/pulumi-azuredevops
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuredevops Terraform Provider.
    azuredevops logo
    Azure DevOps v3.1.1 published on Monday, May 20, 2024 by Pulumi