octopusdeploy.NugetFeed
Explore with Pulumi AI
This resource manages a Nuget feed in Octopus Deploy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = new octopusdeploy.NugetFeed("example", {
downloadAttempts: 1,
downloadRetryBackoffSeconds: 30,
feedUri: "https://api.nuget.org/v3/index.json",
isEnhancedMode: true,
password: "test-password",
username: "test-username",
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.NugetFeed("example",
download_attempts=1,
download_retry_backoff_seconds=30,
feed_uri="https://api.nuget.org/v3/index.json",
is_enhanced_mode=True,
password="test-password",
username="test-username")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := octopusdeploy.NewNugetFeed(ctx, "example", &octopusdeploy.NugetFeedArgs{
DownloadAttempts: pulumi.Float64(1),
DownloadRetryBackoffSeconds: pulumi.Float64(30),
FeedUri: pulumi.String("https://api.nuget.org/v3/index.json"),
IsEnhancedMode: pulumi.Bool(true),
Password: pulumi.String("test-password"),
Username: pulumi.String("test-username"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() =>
{
var example = new Octopusdeploy.NugetFeed("example", new()
{
DownloadAttempts = 1,
DownloadRetryBackoffSeconds = 30,
FeedUri = "https://api.nuget.org/v3/index.json",
IsEnhancedMode = true,
Password = "test-password",
Username = "test-username",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.NugetFeed;
import com.pulumi.octopusdeploy.NugetFeedArgs;
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 NugetFeed("example", NugetFeedArgs.builder()
.downloadAttempts(1)
.downloadRetryBackoffSeconds(30)
.feedUri("https://api.nuget.org/v3/index.json")
.isEnhancedMode(true)
.password("test-password")
.username("test-username")
.build());
}
}
resources:
example:
type: octopusdeploy:NugetFeed
properties:
downloadAttempts: 1
downloadRetryBackoffSeconds: 30
feedUri: https://api.nuget.org/v3/index.json
isEnhancedMode: true
password: test-password
username: test-username
Create NugetFeed Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NugetFeed(name: string, args: NugetFeedArgs, opts?: CustomResourceOptions);
@overload
def NugetFeed(resource_name: str,
args: NugetFeedArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NugetFeed(resource_name: str,
opts: Optional[ResourceOptions] = None,
feed_uri: Optional[str] = None,
download_attempts: Optional[float] = None,
download_retry_backoff_seconds: Optional[float] = None,
is_enhanced_mode: Optional[bool] = None,
name: Optional[str] = None,
package_acquisition_location_options: Optional[Sequence[str]] = None,
password: Optional[str] = None,
space_id: Optional[str] = None,
username: Optional[str] = None)
func NewNugetFeed(ctx *Context, name string, args NugetFeedArgs, opts ...ResourceOption) (*NugetFeed, error)
public NugetFeed(string name, NugetFeedArgs args, CustomResourceOptions? opts = null)
public NugetFeed(String name, NugetFeedArgs args)
public NugetFeed(String name, NugetFeedArgs args, CustomResourceOptions options)
type: octopusdeploy:NugetFeed
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 NugetFeedArgs
- 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 NugetFeedArgs
- 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 NugetFeedArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NugetFeedArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NugetFeedArgs
- 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 nugetFeedResource = new Octopusdeploy.NugetFeed("nugetFeedResource", new()
{
FeedUri = "string",
DownloadAttempts = 0,
DownloadRetryBackoffSeconds = 0,
IsEnhancedMode = false,
Name = "string",
PackageAcquisitionLocationOptions = new[]
{
"string",
},
Password = "string",
SpaceId = "string",
Username = "string",
});
example, err := octopusdeploy.NewNugetFeed(ctx, "nugetFeedResource", &octopusdeploy.NugetFeedArgs{
FeedUri: pulumi.String("string"),
DownloadAttempts: pulumi.Float64(0),
DownloadRetryBackoffSeconds: pulumi.Float64(0),
IsEnhancedMode: pulumi.Bool(false),
Name: pulumi.String("string"),
PackageAcquisitionLocationOptions: pulumi.StringArray{
pulumi.String("string"),
},
Password: pulumi.String("string"),
SpaceId: pulumi.String("string"),
Username: pulumi.String("string"),
})
var nugetFeedResource = new NugetFeed("nugetFeedResource", NugetFeedArgs.builder()
.feedUri("string")
.downloadAttempts(0)
.downloadRetryBackoffSeconds(0)
.isEnhancedMode(false)
.name("string")
.packageAcquisitionLocationOptions("string")
.password("string")
.spaceId("string")
.username("string")
.build());
nuget_feed_resource = octopusdeploy.NugetFeed("nugetFeedResource",
feed_uri="string",
download_attempts=0,
download_retry_backoff_seconds=0,
is_enhanced_mode=False,
name="string",
package_acquisition_location_options=["string"],
password="string",
space_id="string",
username="string")
const nugetFeedResource = new octopusdeploy.NugetFeed("nugetFeedResource", {
feedUri: "string",
downloadAttempts: 0,
downloadRetryBackoffSeconds: 0,
isEnhancedMode: false,
name: "string",
packageAcquisitionLocationOptions: ["string"],
password: "string",
spaceId: "string",
username: "string",
});
type: octopusdeploy:NugetFeed
properties:
downloadAttempts: 0
downloadRetryBackoffSeconds: 0
feedUri: string
isEnhancedMode: false
name: string
packageAcquisitionLocationOptions:
- string
password: string
spaceId: string
username: string
NugetFeed Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NugetFeed resource accepts the following input properties:
- Feed
Uri string - Download
Attempts double - The number of times a deployment should attempt to download a package from this feed before failing.
- Download
Retry doubleBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- Is
Enhanced boolMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- Name string
- The name of this resource.
- Package
Acquisition List<string>Location Options - Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this nuget feed.
- Username string
- The username associated with this resource.
- Feed
Uri string - Download
Attempts float64 - The number of times a deployment should attempt to download a package from this feed before failing.
- Download
Retry float64Backoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- Is
Enhanced boolMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- Name string
- The name of this resource.
- Package
Acquisition []stringLocation Options - Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this nuget feed.
- Username string
- The username associated with this resource.
- feed
Uri String - download
Attempts Double - The number of times a deployment should attempt to download a package from this feed before failing.
- download
Retry DoubleBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- is
Enhanced BooleanMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name String
- The name of this resource.
- package
Acquisition List<String>Location Options - password String
- The password associated with this resource.
- space
Id String - The space ID associated with this nuget feed.
- username String
- The username associated with this resource.
- feed
Uri string - download
Attempts number - The number of times a deployment should attempt to download a package from this feed before failing.
- download
Retry numberBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- is
Enhanced booleanMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name string
- The name of this resource.
- package
Acquisition string[]Location Options - password string
- The password associated with this resource.
- space
Id string - The space ID associated with this nuget feed.
- username string
- The username associated with this resource.
- feed_
uri str - download_
attempts float - The number of times a deployment should attempt to download a package from this feed before failing.
- download_
retry_ floatbackoff_ seconds - The number of seconds to apply as a linear back off between download attempts.
- is_
enhanced_ boolmode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name str
- The name of this resource.
- package_
acquisition_ Sequence[str]location_ options - password str
- The password associated with this resource.
- space_
id str - The space ID associated with this nuget feed.
- username str
- The username associated with this resource.
- feed
Uri String - download
Attempts Number - The number of times a deployment should attempt to download a package from this feed before failing.
- download
Retry NumberBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- is
Enhanced BooleanMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name String
- The name of this resource.
- package
Acquisition List<String>Location Options - password String
- The password associated with this resource.
- space
Id String - The space ID associated with this nuget feed.
- username String
- The username associated with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the NugetFeed 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 NugetFeed Resource
Get an existing NugetFeed 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?: NugetFeedState, opts?: CustomResourceOptions): NugetFeed
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
download_attempts: Optional[float] = None,
download_retry_backoff_seconds: Optional[float] = None,
feed_uri: Optional[str] = None,
is_enhanced_mode: Optional[bool] = None,
name: Optional[str] = None,
package_acquisition_location_options: Optional[Sequence[str]] = None,
password: Optional[str] = None,
space_id: Optional[str] = None,
username: Optional[str] = None) -> NugetFeed
func GetNugetFeed(ctx *Context, name string, id IDInput, state *NugetFeedState, opts ...ResourceOption) (*NugetFeed, error)
public static NugetFeed Get(string name, Input<string> id, NugetFeedState? state, CustomResourceOptions? opts = null)
public static NugetFeed get(String name, Output<String> id, NugetFeedState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:NugetFeed get: id: ${id}
- 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.
- Download
Attempts double - The number of times a deployment should attempt to download a package from this feed before failing.
- Download
Retry doubleBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- Feed
Uri string - Is
Enhanced boolMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- Name string
- The name of this resource.
- Package
Acquisition List<string>Location Options - Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this nuget feed.
- Username string
- The username associated with this resource.
- Download
Attempts float64 - The number of times a deployment should attempt to download a package from this feed before failing.
- Download
Retry float64Backoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- Feed
Uri string - Is
Enhanced boolMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- Name string
- The name of this resource.
- Package
Acquisition []stringLocation Options - Password string
- The password associated with this resource.
- Space
Id string - The space ID associated with this nuget feed.
- Username string
- The username associated with this resource.
- download
Attempts Double - The number of times a deployment should attempt to download a package from this feed before failing.
- download
Retry DoubleBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- feed
Uri String - is
Enhanced BooleanMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name String
- The name of this resource.
- package
Acquisition List<String>Location Options - password String
- The password associated with this resource.
- space
Id String - The space ID associated with this nuget feed.
- username String
- The username associated with this resource.
- download
Attempts number - The number of times a deployment should attempt to download a package from this feed before failing.
- download
Retry numberBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- feed
Uri string - is
Enhanced booleanMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name string
- The name of this resource.
- package
Acquisition string[]Location Options - password string
- The password associated with this resource.
- space
Id string - The space ID associated with this nuget feed.
- username string
- The username associated with this resource.
- download_
attempts float - The number of times a deployment should attempt to download a package from this feed before failing.
- download_
retry_ floatbackoff_ seconds - The number of seconds to apply as a linear back off between download attempts.
- feed_
uri str - is_
enhanced_ boolmode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name str
- The name of this resource.
- package_
acquisition_ Sequence[str]location_ options - password str
- The password associated with this resource.
- space_
id str - The space ID associated with this nuget feed.
- username str
- The username associated with this resource.
- download
Attempts Number - The number of times a deployment should attempt to download a package from this feed before failing.
- download
Retry NumberBackoff Seconds - The number of seconds to apply as a linear back off between download attempts.
- feed
Uri String - is
Enhanced BooleanMode - This will improve performance of the NuGet feed but may not be supported by some older feeds. Disable if the operation, Create Release does not return the latest version for a package.
- name String
- The name of this resource.
- package
Acquisition List<String>Location Options - password String
- The password associated with this resource.
- space
Id String - The space ID associated with this nuget feed.
- username String
- The username associated with this resource.
Import
$ pulumi import octopusdeploy:index/nugetFeed:NugetFeed [options] octopusdeploy_nuget_feed.<name> <feed-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.