Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Use this data source to get a log subscription for a Managed Kubernetes cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
export = async () => {
const sub = await ovh.getCloudProjectKubeLogSubscription({
serviceName: "XXXXXX",
kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
subscriptionId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
});
return {
"resource-name": sub.resources?.[0]?.name,
};
}
import pulumi
import pulumi_ovh as ovh
sub = ovh.get_cloud_project_kube_log_subscription(service_name="XXXXXX",
kube_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
subscription_id="yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy")
pulumi.export("resource-name", sub.resources[0].name)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
sub, err := ovh.LookupCloudProjectKubeLogSubscription(ctx, &ovh.LookupCloudProjectKubeLogSubscriptionArgs{
ServiceName: "XXXXXX",
KubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
SubscriptionId: "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
}, nil)
if err != nil {
return err
}
ctx.Export("resource-name", sub.Resources[0].Name)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var sub = Ovh.GetCloudProjectKubeLogSubscription.Invoke(new()
{
ServiceName = "XXXXXX",
KubeId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
SubscriptionId = "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
});
return new Dictionary<string, object?>
{
["resource-name"] = sub.Apply(getCloudProjectKubeLogSubscriptionResult => getCloudProjectKubeLogSubscriptionResult.Resources[0]?.Name),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetCloudProjectKubeLogSubscriptionArgs;
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 sub = OvhFunctions.getCloudProjectKubeLogSubscription(GetCloudProjectKubeLogSubscriptionArgs.builder()
.serviceName("XXXXXX")
.kubeId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.subscriptionId("yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy")
.build());
ctx.export("resource-name", sub.resources()[0].name());
}
}
variables:
sub:
fn::invoke:
function: ovh:getCloudProjectKubeLogSubscription
arguments:
serviceName: XXXXXX
kubeId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
subscriptionId: yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
outputs:
resource-name: ${sub.resources[0].name}
Example coming soon!
Using getCloudProjectKubeLogSubscription
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 getCloudProjectKubeLogSubscription(args: GetCloudProjectKubeLogSubscriptionArgs, opts?: InvokeOptions): Promise<GetCloudProjectKubeLogSubscriptionResult>
function getCloudProjectKubeLogSubscriptionOutput(args: GetCloudProjectKubeLogSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetCloudProjectKubeLogSubscriptionResult>def get_cloud_project_kube_log_subscription(kube_id: Optional[str] = None,
service_name: Optional[str] = None,
subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudProjectKubeLogSubscriptionResult
def get_cloud_project_kube_log_subscription_output(kube_id: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
subscription_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudProjectKubeLogSubscriptionResult]func LookupCloudProjectKubeLogSubscription(ctx *Context, args *LookupCloudProjectKubeLogSubscriptionArgs, opts ...InvokeOption) (*LookupCloudProjectKubeLogSubscriptionResult, error)
func LookupCloudProjectKubeLogSubscriptionOutput(ctx *Context, args *LookupCloudProjectKubeLogSubscriptionOutputArgs, opts ...InvokeOption) LookupCloudProjectKubeLogSubscriptionResultOutput> Note: This function is named LookupCloudProjectKubeLogSubscription in the Go SDK.
public static class GetCloudProjectKubeLogSubscription
{
public static Task<GetCloudProjectKubeLogSubscriptionResult> InvokeAsync(GetCloudProjectKubeLogSubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetCloudProjectKubeLogSubscriptionResult> Invoke(GetCloudProjectKubeLogSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudProjectKubeLogSubscriptionResult> getCloudProjectKubeLogSubscription(GetCloudProjectKubeLogSubscriptionArgs args, InvokeOptions options)
public static Output<GetCloudProjectKubeLogSubscriptionResult> getCloudProjectKubeLogSubscription(GetCloudProjectKubeLogSubscriptionArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudProjectKubeLogSubscription:getCloudProjectKubeLogSubscription
arguments:
# arguments dictionarydata "ovh_get_cloud_project_kube_log_subscription" "name" {
# arguments
}The following arguments are supported:
- Kube
Id string - The id of the managed kubernetes cluster.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - Subscription
Id string - The id of the log subscription.
- Kube
Id string - The id of the managed kubernetes cluster.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - Subscription
Id string - The id of the log subscription.
- kube_
id string - The id of the managed kubernetes cluster.
- service_
name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - subscription_
id string - The id of the log subscription.
- kube
Id String - The id of the managed kubernetes cluster.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - subscription
Id String - The id of the log subscription.
- kube
Id string - The id of the managed kubernetes cluster.
- service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - subscription
Id string - The id of the log subscription.
- kube_
id str - The id of the managed kubernetes cluster.
- service_
name str - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - subscription_
id str - The id of the log subscription.
- kube
Id String - The id of the managed kubernetes cluster.
- service
Name String - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment variable is used. - subscription
Id String - The id of the log subscription.
getCloudProjectKubeLogSubscription Result
The following output properties are available:
- Created
At string - Creation date of the subscription.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Log kind name of this subscription. Only
auditis currently supported. - Kube
Id string - See Argument Reference above.
- Resources
List<Get
Cloud Project Kube Log Subscription Resource> - Information about the subscribed resource.
- Service
Name string - See Argument Reference above.
- Stream
Id string - Id of the target Log data platform stream.
- Subscription
Id string - See Argument Reference above.
- Updated
At string - Last update date of the subscription.
- Created
At string - Creation date of the subscription.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Log kind name of this subscription. Only
auditis currently supported. - Kube
Id string - See Argument Reference above.
- Resources
[]Get
Cloud Project Kube Log Subscription Resource - Information about the subscribed resource.
- Service
Name string - See Argument Reference above.
- Stream
Id string - Id of the target Log data platform stream.
- Subscription
Id string - See Argument Reference above.
- Updated
At string - Last update date of the subscription.
- created_
at string - Creation date of the subscription.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- Log kind name of this subscription. Only
auditis currently supported. - kube_
id string - See Argument Reference above.
- resources list(object)
- Information about the subscribed resource.
- service_
name string - See Argument Reference above.
- stream_
id string - Id of the target Log data platform stream.
- subscription_
id string - See Argument Reference above.
- updated_
at string - Last update date of the subscription.
- created
At String - Creation date of the subscription.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Log kind name of this subscription. Only
auditis currently supported. - kube
Id String - See Argument Reference above.
- resources
List<Get
Cloud Project Kube Log Subscription Resource> - Information about the subscribed resource.
- service
Name String - See Argument Reference above.
- stream
Id String - Id of the target Log data platform stream.
- subscription
Id String - See Argument Reference above.
- updated
At String - Last update date of the subscription.
- created
At string - Creation date of the subscription.
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- Log kind name of this subscription. Only
auditis currently supported. - kube
Id string - See Argument Reference above.
- resources
Get
Cloud Project Kube Log Subscription Resource[] - Information about the subscribed resource.
- service
Name string - See Argument Reference above.
- stream
Id string - Id of the target Log data platform stream.
- subscription
Id string - See Argument Reference above.
- updated
At string - Last update date of the subscription.
- created_
at str - Creation date of the subscription.
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- Log kind name of this subscription. Only
auditis currently supported. - kube_
id str - See Argument Reference above.
- resources
Sequence[Get
Cloud Project Kube Log Subscription Resource] - Information about the subscribed resource.
- service_
name str - See Argument Reference above.
- stream_
id str - Id of the target Log data platform stream.
- subscription_
id str - See Argument Reference above.
- updated_
at str - Last update date of the subscription.
- created
At String - Creation date of the subscription.
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Log kind name of this subscription. Only
auditis currently supported. - kube
Id String - See Argument Reference above.
- resources List<Property Map>
- Information about the subscribed resource.
- service
Name String - See Argument Reference above.
- stream
Id String - Id of the target Log data platform stream.
- subscription
Id String - See Argument Reference above.
- updated
At String - Last update date of the subscription.
Supporting Types
GetCloudProjectKubeLogSubscriptionResource
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud