Use this data source to get the list of Management IP Restrictions of a container registry associated with a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const mgtIprestrictionsData = ovh.CloudProject.getContainerRegistryIPRestrictionsManagement({
serviceName: "XXXXXX",
registryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
});
export const myIpRestrictions = mgtIprestrictionsData.then(mgtIprestrictionsData => mgtIprestrictionsData.ipRestrictions);
import pulumi
import pulumi_ovh as ovh
mgt_iprestrictions_data = ovh.CloudProject.get_container_registry_ip_restrictions_management(service_name="XXXXXX",
registry_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
pulumi.export("myIpRestrictions", mgt_iprestrictions_data.ip_restrictions)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
mgtIprestrictionsData, err := cloudproject.GetContainerRegistryIPRestrictionsManagement(ctx, &cloudproject.GetContainerRegistryIPRestrictionsManagementArgs{
ServiceName: "XXXXXX",
RegistryId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
}, nil)
if err != nil {
return err
}
ctx.Export("myIpRestrictions", mgtIprestrictionsData.IpRestrictions)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var mgtIprestrictionsData = Ovh.CloudProject.GetContainerRegistryIPRestrictionsManagement.Invoke(new()
{
ServiceName = "XXXXXX",
RegistryId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
});
return new Dictionary<string, object?>
{
["myIpRestrictions"] = mgtIprestrictionsData.Apply(getContainerRegistryIPRestrictionsManagementResult => getContainerRegistryIPRestrictionsManagementResult.IpRestrictions),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
import com.pulumi.ovh.CloudProject.inputs.GetContainerRegistryIPRestrictionsManagementArgs;
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 mgtIprestrictionsData = CloudProjectFunctions.getContainerRegistryIPRestrictionsManagement(GetContainerRegistryIPRestrictionsManagementArgs.builder()
.serviceName("XXXXXX")
.registryId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx")
.build());
ctx.export("myIpRestrictions", mgtIprestrictionsData.ipRestrictions());
}
}
variables:
mgtIprestrictionsData:
fn::invoke:
function: ovh:CloudProject:getContainerRegistryIPRestrictionsManagement
arguments:
serviceName: XXXXXX
registryId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
outputs:
myIpRestrictions: ${mgtIprestrictionsData.ipRestrictions}
Using getContainerRegistryIPRestrictionsManagement
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 getContainerRegistryIPRestrictionsManagement(args: GetContainerRegistryIPRestrictionsManagementArgs, opts?: InvokeOptions): Promise<GetContainerRegistryIPRestrictionsManagementResult>
function getContainerRegistryIPRestrictionsManagementOutput(args: GetContainerRegistryIPRestrictionsManagementOutputArgs, opts?: InvokeOptions): Output<GetContainerRegistryIPRestrictionsManagementResult>def get_container_registry_ip_restrictions_management(registry_id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerRegistryIPRestrictionsManagementResult
def get_container_registry_ip_restrictions_management_output(registry_id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerRegistryIPRestrictionsManagementResult]func LookupContainerRegistryIPRestrictionsManagement(ctx *Context, args *LookupContainerRegistryIPRestrictionsManagementArgs, opts ...InvokeOption) (*LookupContainerRegistryIPRestrictionsManagementResult, error)
func LookupContainerRegistryIPRestrictionsManagementOutput(ctx *Context, args *LookupContainerRegistryIPRestrictionsManagementOutputArgs, opts ...InvokeOption) LookupContainerRegistryIPRestrictionsManagementResultOutput> Note: This function is named LookupContainerRegistryIPRestrictionsManagement in the Go SDK.
public static class GetContainerRegistryIPRestrictionsManagement
{
public static Task<GetContainerRegistryIPRestrictionsManagementResult> InvokeAsync(GetContainerRegistryIPRestrictionsManagementArgs args, InvokeOptions? opts = null)
public static Output<GetContainerRegistryIPRestrictionsManagementResult> Invoke(GetContainerRegistryIPRestrictionsManagementInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContainerRegistryIPRestrictionsManagementResult> getContainerRegistryIPRestrictionsManagement(GetContainerRegistryIPRestrictionsManagementArgs args, InvokeOptions options)
public static Output<GetContainerRegistryIPRestrictionsManagementResult> getContainerRegistryIPRestrictionsManagement(GetContainerRegistryIPRestrictionsManagementArgs args, InvokeOptions options)
fn::invoke:
function: ovh:CloudProject/getContainerRegistryIPRestrictionsManagement:getContainerRegistryIPRestrictionsManagement
arguments:
# arguments dictionaryThe following arguments are supported:
- Registry
Id string - The id of the Managed Private Registry.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Registry
Id string - The id of the Managed Private Registry.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry
Id String - The id of the Managed Private Registry.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry
Id string - The id of the Managed Private Registry.
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry_
id str - The id of the Managed Private Registry.
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- registry
Id String - The id of the Managed Private Registry.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
getContainerRegistryIPRestrictionsManagement Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Restrictions List<ImmutableDictionary<string, string>> - IP restrictions applied on Harbor UI and API.
- Registry
Id string - The ID of the Managed Private Registry.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Restrictions []map[string]string - IP restrictions applied on Harbor UI and API.
- Registry
Id string - The ID of the Managed Private Registry.
- Service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Restrictions List<Map<String,String>> - IP restrictions applied on Harbor UI and API.
- registry
Id String - The ID of the Managed Private Registry.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Restrictions {[key: string]: string}[] - IP restrictions applied on Harbor UI and API.
- registry
Id string - The ID of the Managed Private Registry.
- service
Name string - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
restrictions Sequence[Mapping[str, str]] - IP restrictions applied on Harbor UI and API.
- registry_
id str - The ID of the Managed Private Registry.
- service_
name str - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Restrictions List<Map<String>> - IP restrictions applied on Harbor UI and API.
- registry
Id String - The ID of the Managed Private Registry.
- service
Name String - The ID of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
